/* CSS Design System for AI Teen Skill Library */

:root {
    /* HSL Theme Colors - Dark Theme (Default) */
    --bg-app: #090d16;
    --bg-sidebar: #0f1422;
    --bg-card: rgba(20, 27, 45, 0.7);
    --bg-card-hover: rgba(28, 38, 62, 0.9);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.16);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    /* Neon Accents */
    --accent-primary: #8b5cf6; /* Violet */
    --accent-primary-glow: rgba(139, 92, 246, 0.35);
    
    --accent-reflection: #f59e0b; /* Amber */
    --accent-learning: #a855f7; /* Purple */
    --accent-productivity: #10b981; /* Emerald */
    --accent-coding: #06b6d4; /* Cyan */
    --accent-creativity: #ec4899; /* Pink */
    
    /* System States */
    --state-success: #10b981;
    --state-warning: #f59e0b;
    --state-error: #ef4444;
    
    --shadow-main: 0 10px 30px rgba(0, 0, 0, 0.3);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

/* Light Theme Variables */
body.light-theme {
    --bg-app: #f4f6fa;
    --bg-sidebar: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 255, 255, 0.98);
    --border-color: rgba(0, 0, 0, 0.06);
    --border-hover: rgba(0, 0, 0, 0.12);
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --accent-primary: #6366f1; /* Indigo */
    --accent-primary-glow: rgba(99, 102, 241, 0.2);
    
    --shadow-main: 0 10px 35px rgba(0, 0, 0, 0.05);
}

/* Global Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-app);
    color: var(--text-primary);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-app);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}

/* App Container Layout */
.app-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    width: 100%;
    min-height: 100vh;
}

/* Sidebar Navigation */
.sidebar {
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
    position: sticky;
    top: 0;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.logo-icon {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--accent-primary), #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text h1 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #a855f7, #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text span {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-menu {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s ease;
}

.nav-item:hover, .nav-item.active {
    color: var(--text-primary);
    background: var(--bg-card-hover);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-item.active {
    border-left: 3px solid var(--accent-primary);
    padding-left: calc(1rem - 3px);
}

.sidebar-footer {
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.theme-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 500;
    transition: all 0.2s ease;
}

.theme-btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
}

/* Main Content Area */
.main-content {
    padding: 2.5rem;
    overflow-y: auto;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Top Header */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.top-header h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.text-muted {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.search-box {
    position: relative;
    width: 320px;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-primary-glow);
}

/* Tab Panels */
.tab-panel {
    display: none;
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.tab-panel.active {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), #6366f1);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--accent-primary-glow);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--text-secondary);
}

/* TAB 1: HERO & HOME */
.hero-section {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
    background: linear-gradient(135deg, rgba(20, 27, 45, 0.4), rgba(49, 46, 129, 0.1));
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    align-items: center;
    backdrop-filter: blur(12px);
}

.badge {
    background: var(--bg-card-hover);
    border: 1px solid var(--border-color);
    color: var(--accent-primary);
    padding: 0.35rem 0.75rem;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    display: inline-block;
    margin-bottom: 1rem;
}

.hero-content h2 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-content h2 span {
    background: linear-gradient(135deg, #38bdf8, var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.25rem;
    text-align: center;
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateX(-5px);
    border-color: var(--accent-primary);
}

.stat-num {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--accent-primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.2s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-main);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.info-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.info-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.quick-start-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
}

.quick-start-box h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin-bottom: 1.5rem;
}

.quick-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.step-item {
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    transition: all 0.2s ease;
}

.step-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-primary);
}

.step-no {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    opacity: 0.15;
}

.step-item h4 {
    margin-bottom: 0.5rem;
}

.step-item p {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* TAB 2: LIBRARY EXPLORER */
.category-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.category-pill {
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-pill:hover, .category-pill.active {
    background: var(--accent-primary-glow);
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.prompts-grid, .my-prompts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.prompt-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 240px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.prompt-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--card-accent, var(--accent-primary));
}

.prompt-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-main);
}

.card-top {
    margin-bottom: 1.5rem;
}

.card-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--card-accent, var(--accent-primary));
    margin-bottom: 0.5rem;
    display: inline-block;
}

.prompt-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.prompt-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.use-case-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.read-more-btn {
    background: transparent;
    border: none;
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
}

/* TAB 3: RUBRICS CALCULATOR */
.rubrics-header-section {
    margin-bottom: 1.5rem;
}

.rubrics-header-section h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

.rubrics-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.rubrics-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.prompt-input-area {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.prompt-input-area textarea {
    width: 100%;
    height: 120px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    resize: none;
}

.rubrics-criteria-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.criteria-group {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.criteria-group:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.criteria-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.criteria-badge {
    background: var(--border-color);
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-weight: 600;
}

.criteria-title-row h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.selected-level-label {
    margin-left: auto;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-primary);
}

.criteria-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.level-selector {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.lvl-btn {
    padding: 0.5rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lvl-btn:hover {
    background: var(--border-color);
}

.lvl-btn.active {
    background: var(--accent-primary);
    color: white;
    border-color: var(--accent-primary);
}

.level-desc-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Rubrics Sidebar */
.rubrics-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.score-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
}

.score-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}

.score-value {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0.5rem 0;
}

.max-score {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.score-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    background: var(--accent-primary-glow);
    color: var(--accent-primary);
    font-weight: 700;
    font-size: 0.9rem;
}

.gauge-container {
    height: 8px;
    background: var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.gauge-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), #10b981);
    transition: width 0.3s ease;
}

.feedback-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
}

.feedback-box h4 {
    margin-bottom: 0.75rem;
    font-family: var(--font-heading);
}

.feedback-box p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.rubric-reference-table {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.5rem;
}

.rubric-reference-table h4 {
    margin-bottom: 0.75rem;
    font-family: var(--font-heading);
}

.rubric-reference-table ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rubric-reference-table li {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* TAB 4: ROADMAP */
.roadmap-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.roadmap-intro h3 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.roadmap-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 1000px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 2rem;
    right: 2rem;
    height: 4px;
    background: var(--border-color);
    z-index: 1;
}

.roadmap-node {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 16%;
    cursor: pointer;
}

.node-marker {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 3px solid var(--border-color);
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    transition: all 0.3s ease;
}

.roadmap-node.active .node-marker {
    background: var(--accent-primary);
    border-color: var(--accent-primary-glow);
    color: white;
    box-shadow: 0 0 15px var(--accent-primary-glow);
}

.node-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.roadmap-node.active .node-content {
    opacity: 1;
    border-color: var(--accent-primary);
}

.node-level {
    font-weight: 700;
    font-size: 0.7rem;
    color: var(--accent-primary);
    text-transform: uppercase;
}

.node-content h4 {
    margin: 0.25rem 0;
}

.node-content p {
    color: var(--text-muted);
    font-size: 0.7rem;
}

.node-badge {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--state-success);
}

.node-badge.locked {
    color: var(--text-muted);
}

/* Roadmap Details box */
.roadmap-detail-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.roadmap-detail-panel h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}

.roadmap-detail-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-section h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.detail-section p, .detail-section ul {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.detail-section ul {
    padding-left: 1.25rem;
}

.text-highlight {
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--accent-primary);
    padding: 0.75rem 1rem;
    border-radius: 0 8px 8px 0;
}

/* TAB 5: MY LIBRARY */
.my-library-intro {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.my-library-intro h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

.my-prompt-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
    border-radius: 8px;
}

/* MODALS */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: var(--bg-sidebar);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.custom-modal-size {
    max-width: 600px;
}

@keyframes scaleUp {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--bg-card-hover);
    color: var(--accent-primary);
}

.modal-header {
    margin-bottom: 2rem;
}

.modal-tag {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--accent-primary);
    letter-spacing: 0.05em;
}

.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-top: 0.25rem;
}

.modal-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.modal-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.modal-tab-btn.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

.modal-tab-panel {
    display: none;
}

.modal-tab-panel.active {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Prompt Box */
.prompt-box {
    position: relative;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
}

.prompt-box pre {
    white-space: pre-wrap;
    word-break: break-all;
    font-family: monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-primary);
}

.btn-copy {
    margin-top: 1rem;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.meta-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.meta-info-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 1.5rem;
    border-top: 4px solid var(--state-success);
}

.meta-info-card.negative {
    border-top-color: var(--state-error);
}

.meta-info-card h4 {
    font-family: var(--font-heading);
    margin-bottom: 0.75rem;
}

.meta-info-card ul {
    padding-left: 1.25rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Examples list */
.examples-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.example-item {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
}

.example-item h4 {
    font-family: var(--font-heading);
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.example-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Improvement Comparison */
.improvement-comparison {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.imp-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    border-left: 5px solid var(--state-error);
}

.imp-card.okay {
    border-left-color: var(--state-warning);
}

.imp-card.good {
    border-left-color: var(--state-success);
}

.imp-status {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.imp-card.bad .imp-status { color: var(--state-error); }
.imp-card.okay .imp-status { color: var(--state-warning); }
.imp-card.good .imp-status { color: var(--state-success); }

.imp-text {
    font-family: monospace;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.15);
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.imp-reason {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Pattern analysis box */
.pattern-analysis-box {
    background: rgba(139, 92, 246, 0.05);
    border: 1px dashed var(--accent-primary);
    border-radius: 16px;
    padding: 1.5rem;
}

.pattern-analysis-box h4 {
    font-family: var(--font-heading);
    color: var(--accent-primary);
    margin-bottom: 0.75rem;
}

.pattern-analysis-box ul {
    padding-left: 1.25rem;
}

.pattern-analysis-box li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* Forms */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
}

.form-group input, .form-group select, .form-group textarea {
    padding: 0.75rem;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-body);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Responsiveness */
@media (max-width: 1024px) {
    .app-container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: none; /* simple hidden for mobile, can add simple burger if needed */
    }
    
    .hero-section {
        grid-template-columns: 1fr;
        padding: 2rem;
    }
    
    .rubrics-container {
        grid-template-columns: 1fr;
    }
    
    .roadmap-timeline {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .roadmap-timeline::before {
        display: none;
    }
    
    .roadmap-node {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 1rem;
        text-align: left;
    }
    
    .node-marker {
        margin: 0;
    }
    
    .node-content {
        flex-grow: 1;
    }
}
