/* --- CSS VARIABLES & THEME SYSTEM --- */
:root {
    --bg-dark: #05070f;
    --bg-card: rgba(12, 16, 35, 0.75);
    --bg-card-hover: rgba(18, 25, 54, 0.85);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-active: rgba(0, 242, 254, 0.4);
    
    /* Neon Synapse Gradients */
    --neon-cyan: #00f2fe;
    --neon-blue: #4facfe;
    --neon-violet: #b100ff;
    --neon-pink: #f35588;
    
    /* Academic/Psychological Colors */
    --tech-color: #00f2fe;
    --psych-color: #ffd200;
    --philosophy-color: #a855f7;
    --pedagogy-color: #10b981;
    --math-color: #ff6b6b;
    --pathology-color: #f97316;
    
    /* Functional Colors */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    
    /* Shadows & Glows */
    --glow-cyan: 0 0 15px rgba(0, 242, 254, 0.3);
    --glow-violet: 0 0 15px rgba(177, 0, 255, 0.3);
    --shadow-premium: 0 15px 35px rgba(0, 0, 0, 0.4);
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET & BASIC STYLES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Neural Network Background Canvas */
#neuron-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: auto; /* Allow mouse movement interaction */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 242, 254, 0.4);
}

/* --- APP CONTAINER & GRID LAYOUT --- */
.app-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-height: 100vh;
}

/* --- HEADER AREA --- */
.main-header {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 18px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-premium);
    z-index: 10;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #030712;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
}

.logo-icon i {
    animation: brainPulse 3s infinite ease-in-out;
}

@keyframes brainPulse {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(0,0,0,0.5)); }
    50% { transform: scale(1.08); filter: drop-shadow(0 0 8px rgba(255,255,255,0.8)); }
}

.logo-text h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.5px;
    background: linear-gradient(to right, #ffffff, #88d3ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text span {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    font-weight: 500;
    display: block;
}

.week-selector {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 30px;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: var(--neon-cyan);
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.header-actions {
    display: flex;
    gap: 12px;
}

/* --- BUTTONS --- */
.btn {
    font-family: 'Outfit', sans-serif;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
    color: #030712;
    box-shadow: var(--glow-cyan);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 8px 14px;
    font-size: 13px;
    border-radius: 8px;
}

/* --- DAYS NAVBAR --- */
.days-navbar {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 8px;
    box-shadow: var(--shadow-premium);
}

.nav-scroll {
    display: flex;
    justify-content: space-between;
    overflow-x: auto;
    gap: 8px;
}

.day-btn {
    flex: 1;
    min-width: 110px;
    background: transparent;
    border: none;
    padding: 12px 6px;
    border-radius: 14px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
}

.day-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(to right, var(--neon-cyan), var(--neon-blue));
    transition: var(--transition-smooth);
    border-radius: 3px 3px 0 0;
}

.day-btn:hover {
    background: rgba(255, 255, 255, 0.02);
}

.day-btn.active {
    background: rgba(0, 242, 254, 0.06);
    box-shadow: inset 0 0 10px rgba(0, 242, 254, 0.05);
}

.day-btn.active::before {
    width: 60%;
}

.day-name {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.day-btn.active .day-name {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.day-progress {
    display: flex;
    gap: 4px;
}

.day-progress .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transition: var(--transition-smooth);
}

/* States of active indicators */
.day-progress .dot.completed {
    background: var(--success);
    box-shadow: 0 0 6px var(--success);
}
.day-progress .dot.active-study {
    background: var(--neon-cyan);
    box-shadow: 0 0 6px var(--neon-cyan);
}

/* --- MAIN WORKSPACE --- */
.main-content {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 24px;
    flex: 1;
    align-items: start;
}

/* --- TOPICS SECTION (LEFT) --- */
.topics-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    padding-left: 8px;
    text-transform: uppercase;
}

.topics-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* --- TOPIC CARD --- */
.topic-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 20px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
}

.topic-card::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: transparent;
    transition: var(--transition-smooth);
}

.topic-card:hover {
    transform: translateX(4px) translateY(-2px);
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.topic-card.active {
    background: rgba(14, 24, 54, 0.95);
    border-color: var(--border-active);
    box-shadow: var(--glow-cyan), var(--shadow-premium);
}

.topic-card.active::after {
    background: linear-gradient(to bottom, var(--neon-cyan), var(--neon-blue));
}

/* Status dots on card */
.topic-card.completed-status::after {
    background: var(--success);
}
.topic-card.completed-status {
    border-color: rgba(16, 185, 129, 0.3);
}

.card-header-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.badge {
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Subject badge colors */
.badge.materia-tecnología {
    color: var(--tech-color);
    background: rgba(0, 242, 254, 0.08);
    border-color: rgba(0, 242, 254, 0.2);
}
.badge.materia-psicología {
    color: var(--psych-color);
    background: rgba(255, 210, 0, 0.08);
    border-color: rgba(255, 210, 0, 0.2);
}
.badge.materia-filosofía {
    color: var(--philosophy-color);
    background: rgba(168, 85, 247, 0.08);
    border-color: rgba(168, 85, 247, 0.2);
}
.badge.materia-pedagogía {
    color: var(--pedagogy-color);
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.2);
}
.badge.materia-matemáticas {
    color: var(--math-color);
    background: rgba(255, 107, 107, 0.08);
    border-color: rgba(255, 107, 107, 0.2);
}
.badge.materia-patologías {
    color: var(--pathology-color);
    background: rgba(249, 115, 22, 0.08);
    border-color: rgba(249, 115, 22, 0.2);
}

.card-status-icon {
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.topic-card.completed-status .card-status-icon {
    color: var(--success);
}

.card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    color: #ffffff;
}

.card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted);
}

.card-action-btn {
    color: var(--neon-cyan);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-action-btn i {
    font-size: 8px;
    transition: var(--transition-smooth);
}

.topic-card:hover .card-action-btn i {
    transform: translateX(3px);
}

/* Skeletons */
.skeleton-card {
    height: 140px;
    background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.07) 50%, rgba(255,255,255,0.03) 75%);
    background-size: 200% 100%;
    animation: loadingSkeleton 1.5s infinite;
    border-radius: 18px;
    border: 1px solid var(--border-color);
}

@keyframes loadingSkeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}


/* --- READING SECTION (RIGHT) --- */
.reading-section {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    min-height: 500px;
    box-shadow: var(--shadow-premium);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Empty State */
.empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px;
    gap: 16px;
}

.empty-icon {
    font-size: 60px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(0, 242, 254, 0.4));
    animation: floatAnimation 4s infinite ease-in-out;
}

@keyframes floatAnimation {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.empty-state h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 700;
}

.empty-state p {
    color: var(--text-secondary);
    max-width: 440px;
    font-size: 14px;
}

/* Active Report Page styling */
.active-report-container {
    padding: 35px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    overflow-y: auto;
    max-height: calc(100vh - 200px);
}

.report-article {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.report-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.report-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.read-time {
    font-size: 13px;
    color: var(--text-muted);
}

.report-title {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.5px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.report-intro {
    font-size: 16px;
    color: var(--text-primary);
    line-height: 1.7;
    font-weight: 500;
    padding-left: 16px;
    border-left: 3px solid var(--neon-cyan);
    background: rgba(255, 255, 255, 0.01);
    padding-top: 8px;
    padding-bottom: 8px;
}

.report-body {
    font-size: 15px;
    color: #d1d5db;
    line-height: 1.8;
}

.report-body p {
    margin-bottom: 16px;
}

.report-body h3, .report-body h4 {
    font-family: 'Outfit', sans-serif;
    color: #ffffff;
    margin-top: 24px;
    margin-bottom: 12px;
    font-weight: 700;
}

.report-body h3 {
    font-size: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 6px;
}

.report-body h4 {
    font-size: 17px;
}

.report-body ul, .report-body ol {
    margin-bottom: 16px;
    padding-left: 20px;
}

.report-body li {
    margin-bottom: 8px;
}

.report-body blockquote {
    background: rgba(255, 255, 255, 0.02);
    border-left: 4px solid var(--neon-violet);
    padding: 16px 20px;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    margin: 24px 0;
}

.report-body strong {
    color: #ffffff;
}

.science-callout {
    background: rgba(0, 242, 254, 0.03);
    border: 1px solid rgba(0, 242, 254, 0.1);
    border-radius: 14px;
    padding: 18px;
    margin: 20px 0;
    display: flex;
    gap: 16px;
}

.science-callout i {
    font-size: 20px;
    color: var(--neon-cyan);
    margin-top: 3px;
}

.science-callout div h5 {
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.science-callout div p {
    margin: 0;
    font-size: 13.5px;
    color: var(--text-secondary);
}

.report-application {
    background: linear-gradient(135deg, rgba(255, 210, 0, 0.03) 0%, rgba(249, 115, 22, 0.03) 100%);
    border: 1px solid rgba(255, 210, 0, 0.1);
    border-radius: 16px;
    padding: 22px;
    margin-top: 10px;
}

.report-application h4 {
    font-family: 'Outfit', sans-serif;
    color: var(--psych-color);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.report-application p {
    font-size: 14px;
    color: #d1d5db;
    margin: 0;
}

/* --- QUIZ BOX --- */
.quiz-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.quiz-title-area h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quiz-title-area p {
    font-size: 12px;
    color: var(--text-secondary);
}

.quiz-progress {
    font-family: 'Fira Code', monospace;
    font-size: 12px;
    color: var(--neon-cyan);
    background: rgba(0, 242, 254, 0.05);
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid rgba(0, 242, 254, 0.1);
}

.quiz-question {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 16px;
    color: #ffffff;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-opt {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px 18px;
    cursor: pointer;
    font-size: 14px;
    text-align: left;
    transition: var(--transition-smooth);
    color: var(--text-primary);
    outline: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quiz-opt:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* Quiz Option States */
.quiz-opt.correct {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.5);
    color: #a7f3d0;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.quiz-opt.incorrect {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.5);
    color: #fca5a5;
}

.quiz-opt i {
    font-size: 16px;
}

.quiz-opt.correct i {
    color: var(--success);
}

.quiz-opt.incorrect i {
    color: var(--error);
}

/* Scientific Explanation */
.quiz-explanation-box {
    margin-top: 18px;
    background: rgba(0, 180, 216, 0.04);
    border: 1px solid rgba(0, 180, 216, 0.12);
    padding: 16px;
    border-radius: 12px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.explanation-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--neon-cyan);
    margin-bottom: 6px;
    text-transform: uppercase;
}

.quiz-explanation-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.quiz-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}

/* Completed banner */
.completed-banner {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(5, 150, 105, 0.08) 100%);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 22px;
    border-radius: 18px;
    display: flex;
    gap: 16px;
    align-items: center;
    animation: glowPulse 2s infinite ease-in-out;
}

@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(16, 185, 129, 0.1); }
    50% { box-shadow: 0 0 20px rgba(16, 185, 129, 0.25); }
}

.completed-banner-icon {
    font-size: 32px;
    color: var(--success);
}

.completed-banner-text h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 2px;
}

.completed-banner-text p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

/* --- MODAL DIALOGS --- */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(2, 3, 10, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: var(--transition-smooth);
}

.modal-card {
    background: rgba(10, 14, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.6), var(--glow-cyan);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: modalScaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalScaleUp {
    from { transform: scale(0.9) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.btn-close {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-close:hover {
    color: #ffffff;
    transform: rotate(90deg);
}

.modal-tabs {
    display: flex;
    background: rgba(0,0,0,0.2);
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    padding: 14px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    color: var(--neon-cyan);
    border-bottom-color: var(--neon-cyan);
    background: rgba(255,255,255,0.01);
}

.modal-tab-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 480px;
    overflow-y: auto;
}

.prompt-instruction, .json-instruction {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.prompt-text-container {
    position: relative;
    border-radius: 12px;
    background: #03050a;
    border: 1px solid var(--border-color);
    padding: 18px;
}

#prompt-text-display {
    font-family: 'Fira Code', monospace;
    font-size: 12px;
    color: #c5cdd8;
    white-space: pre-wrap;
    word-break: break-all;
    max-height: 250px;
    overflow-y: auto;
    line-height: 1.5;
}

.btn-copy {
    margin-top: 14px;
    width: 100%;
    justify-content: center;
}

.textarea-container textarea {
    width: 100%;
    height: 200px;
    background: #03050a;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 14px;
    color: #f1f5f9;
    font-family: 'Fira Code', monospace;
    font-size: 12px;
    resize: none;
    outline: none;
    transition: var(--transition-smooth);
}

.textarea-container textarea:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.1);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.error-msg {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
}

/* --- UTILITY CLASSES --- */
.hide {
    display: none !important;
}

/* --- RESPONSIVE STYLES --- */
@media (max-width: 992px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .main-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
        text-align: center;
    }
    
    .logo-area {
        justify-content: center;
    }
    
    .week-selector {
        align-self: center;
    }
    
    .header-actions {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .app-container {
        padding: 12px;
    }
    
    .active-report-container {
        padding: 20px;
    }
    
    .report-title {
        font-size: 22px;
    }
    
    .btn span {
        display: none;
    }
    
    .btn {
        padding: 10px;
    }
}
