/* Static Examination Demo: styles.css */
:root {
    --container-sm: 896px;
    --container-md: 1024px;
    --container-lg: 1280px;
    --brand-primary: #101E3D;
    --brand-accent: #F7A621;
}

/* ===========================================
   BASE STYLES & RESET
   =========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f0f4f8;
    margin: 0;
    padding: 0;
}

h1, h2, h3 {
    color: var(--brand-primary);
    font-weight: 700;
}

/* ===========================================
   LAYOUT & CONTAINERS
   =========================================== */
main.container {
    min-height: calc(100vh - 200px);
}

.container {
    max-width: var(--container-sm);
    margin: 0 auto;
    padding: 20px;
    padding-top: 120px;
    position: relative;
}

.container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #f0f4f8;
    background-image: radial-gradient(#101E3D 0.5px, transparent 0.5px), radial-gradient(#101E3D 0.5px, #f0f4f8 0.5px);
    background-size: 20px 20px;
    background-position: 0 0,10px 10px;
    opacity: 0.05;
    z-index: -1;
}

/* ===========================================
    Start Test Button Styles 
=========================================== */
#startTestButton:hover {
    background: linear-gradient(135deg, #E69A0C, #D4940A) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(247, 166, 33, 0.4) !important;
}

#startTestButton:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(247, 166, 33, 0.3) !important;
}

/* ===========================================
   UTILITY CLASSES
   =========================================== */
.hidden {
    display: none;
}

.nav-shadow {
    box-shadow: 0 4px 6px rgba(16, 30, 61, 0.1);
}

.brand-primary-text {
    color: var(--brand-primary);
}

.brand-accent-text {
    color: var(--brand-accent);
}

.timer-border {
    border: 1px solid rgba(16, 30, 61, 0.1);
}

.gradient-text {
    background: linear-gradient(45deg, #F7A621, #45E6C0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===========================================
   ANIMATIONS
   =========================================== */
@keyframes shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(400%); }
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* ===========================================
   LOGO & TIMER
   =========================================== */
.logo-shine {
    position: relative;
    overflow: hidden;
}

.logo-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

.timer {
    font-size: 1em;
    font-weight: bold;
    color: #e74c3c;
}

/* ===========================================
   HOME BUTTON STYLES
   =========================================== */
.home-button {
    font-size: 1em;
    font-weight: 600;
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 1px solid rgba(16, 30, 61, 0.1);
    transition: all 0.3s ease;
    min-height: 44px; /* Touch-friendly size */
    min-width: 44px;
}

.home-button:hover {
    background: #f8f9fa !important;
    border-color: var(--brand-accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 30, 61, 0.15);
}

.home-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(16, 30, 61, 0.1);
}

.home-button svg {
    flex-shrink: 0;
}

/* Mobile optimization for home button */
@media (max-width: 768px) {
    .home-button {
        font-size: 0.9em;
        padding: 10px 12px;
        min-height: 44px;
        min-width: 44px;
    }
    
    .home-button svg {
        width: 18px;
        height: 18px;
        margin-right: 6px;
    }
    #startTestButton {
        padding: 12px 25px !important;
        font-size: 1em !important;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        display: block;
    }
}

/* ===========================================
   BUTTONS
   =========================================== */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-primary {
    background: var(--brand-accent);
    color: white;
}

.btn-primary:hover {
    background: #E69A0C;
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.btn-secondary {
    background: var(--brand-primary);
    color: white;
}

.btn-secondary:hover {
    background: #1a2951;
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* ===========================================
   EXAM INTERFACE
   =========================================== */
.exam-header {
    margin-top: 80px;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(16, 30, 61, 0.15);
    border: 1px solid rgba(16, 30, 61, 0.1);
    margin-bottom: 20px;
    text-align: center;
}

.hero-subtitle {
    font-size: 1.1em;
    color: #6c757d;
    margin: 10px 0 20px 0;
    font-weight: 500;
}

.demo-info {
    text-align: left;
    animation: slideInUp 0.6s ease-out;
}

.header {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(16, 30, 61, 0.15);
    border: 1px solid rgba(16, 30, 61, 0.1);
    margin-bottom: 20px;
    text-align: center;
}

.question-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(16, 30, 61, 0.15);
    border: 1px solid rgba(16, 30, 61, 0.1);
    margin-bottom: 20px;
}

.question-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.question-number {
    font-weight: bold;
    color: var(--brand-accent);
    font-size: 1.1em;
}

.question-text {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.7;
    color: var(--brand-primary);
}

.options {
    margin-bottom: 20px;
}

.options-spacing {
    margin: 15px 0;
}

.option {
    display: flex;
    align-items: center;
    padding: 15px;
    margin: 10px 0;
    border: 2px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option:hover {
    border-color: var(--brand-accent);
    background: #FFF7ED;
}

.option.selected {
    border-color: var(--brand-accent);
    background: #FEF3E2;
}

.option input[type="radio"] {
    margin-right: 15px;
    transform: scale(1.2);
}

.navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

.question-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 10px;
    margin: 20px 0;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(16, 30, 61, 0.1);
    border: 1px solid rgba(16, 30, 61, 0.1);
}

.question-nav-btn {
    padding: 10px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.question-nav-btn.answered {
    background: #10B981;
    color: white;
    border-color: #10B981;
}

.question-nav-btn.current {
    background: #F7A621;
    color: white;
    border-color: #F7A621;
}

/* ===========================================
   LOADING SCREEN
   =========================================== */
.loading {
    text-align: center;
    padding: 50px;
    font-size: 1.2em;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* ===========================================
   DASHBOARD STYLES
   =========================================== */
.dashboard-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: transparent;
}

.hero-section {
    background: linear-gradient(135deg, #101E3D 0%, #1a2951 100%);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    color: white;
    box-shadow: 0 20px 40px rgba(16, 30, 61, 0.3);
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.hero-text {
    flex: 1;
    padding-right: 20px;
}

.hero-text h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    color: white;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.2em;
    opacity: 0.9;
    margin: 0;
    line-height: 1.4;
}

.hero-score {
    flex-shrink: 0;
}

.score-circle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
}

.score-circle svg {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
}

.score-text {
    position: absolute;
    text-align: center;
    color: white;
}

.score-text span {
    font-size: 1.8em;
    font-weight: bold;
    display: block;
}

.score-text small {
    font-size: 0.9em;
    opacity: 0.8;
}

/* ===========================================
   RESULTS & ANALYTICS
   =========================================== */
.results-container {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(16, 30, 61, 0.15);
    border: 1px solid rgba(16, 30, 61, 0.1);
}

.score-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    color: #333;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 30px;
    border: 1px solid #dee2e6;
}

.score-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #F7A621;
}

.score-main {
    font-size: 2.5em;
    font-weight: bold;
    color: #F7A621;
}

.score-percentage {
    font-size: 1.2em;
    color: #6c757d;
}

.score-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.score-item {
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9em;
}

.score-item.correct {
    background: #d4edda;
    border: 1px solid #c3e6cb;
}

.score-item.incorrect {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
}

.score-item.unattempted {
    background: #e2e3e5;
    border: 1px solid #d6d8db;
}

.score-number {
    font-size: 1.4em;
    font-weight: bold;
    display: block;
}

.score-value {
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 10px;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.analytics-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--brand-accent);
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.analytics-card h3 {
    color: #101E3D;
    margin-bottom: 15px;
    font-size: 1.1em;
    flex-shrink: 0;
}

.analytics-card > div:last-child {
    flex-grow: 1;
}

.analytics-card p {
    margin: 6px 0;
    font-size: 0.9em;
}

.analytics-card p:last-child {
    margin-bottom: 0;
}

.subject-breakdown {
    margin: 8px 0;
}

.subject-breakdown:last-child {
    margin-bottom: 0;
}

.subject-bar {
    background: #e9ecef;
    height: 20px;
    border-radius: 10px;
    overflow: hidden;
    margin: 5px 0;
}

.subject-progress {
    height: 100%;
    background: linear-gradient(90deg, #F7A621, #45E6C0);
    transition: width 0.5s ease;
}

/* ===========================================
   QUICK STATS
   =========================================== */
.section-title {
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #101E3D;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(16, 30, 61, 0.08);
    border: 1px solid rgba(16, 30, 61, 0.05);
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #101E3D;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9em;
    color: #6c757d;
    margin-bottom: 8px;
}

.stat-change {
    font-size: 0.8em;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.stat-change.positive {
    background: #d4edda;
    color: #155724;
}

.stat-change.neutral {
    background: #e2e3e5;
    color: #383d41;
}

.stat-change.improvement {
    background: #fff3cd;
    color: #856404;
}

/* ===========================================
   PERFORMANCE MATRIX
   =========================================== */
.performance-matrix {
    margin-bottom: 30px;
}

.matrix-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.matrix-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(16, 30, 61, 0.08);
    border: 1px solid rgba(16, 30, 61, 0.05);
}

.matrix-card h3 {
    margin-bottom: 20px;
    color: #101E3D;
    font-size: 1.1em;
}

.percentile-display {
    text-align: center;
    padding: 20px;
}

.percentile-number {
    font-size: 2.5em;
    font-weight: bold;
    background: linear-gradient(45deg, #F7A621, #45E6C0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.percentile-text {
    color: #6c757d;
    font-size: 0.9em;
}

/* ===========================================
   AI INSIGHTS
   =========================================== */
.ai-insights-section {
    margin-bottom: 30px;
}

.insights-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-height: 800px;
    overflow-y: auto;
}

.insight-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(16, 30, 61, 0.1);
    border: 1px solid rgba(16, 30, 61, 0.05);
    transition: all 0.3s ease;
    max-height: 250px;
    display: flex;
    flex-direction: column;
}

.insight-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(16, 30, 61, 0.15);
}

.primary-insight {
    background: linear-gradient(135deg, #FEF3E2 0%, #FFF7ED 100%);
    border-left: 4px solid #F7A621;
    max-height: 180px;
}

.insight-content {
    flex: 1;
    overflow-y: auto;
    font-size: 0.9em;
    line-height: 1.6;
    padding-right: 8px;
}

.insight-content::-webkit-scrollbar {
    width: 4px;
}

.insight-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.insight-content::-webkit-scrollbar-thumb {
    background: #F7A621;
    border-radius: 2px;
}

.insight-content::-webkit-scrollbar-thumb:hover {
    background: #E69A0C;
}

.insight-icon {
    font-size: 1em;
    margin-bottom: 2px;
    display: block;
}

.insight-card h3 {
    margin-bottom: 15px;
    color: #101E3D;
    font-size: 1.1em;
}

.insight-loader, .plan-loader {
    width: 100%;
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin: 10px 0;
}

.insight-loader::after, .plan-loader::after {
    content: '';
    display: block;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, #F7A621, #45E6C0);
    animation: loading 2s infinite;
}

/* ===========================================
   STUDY PLAN SECTION
   =========================================== */
.study-plan-section {
    margin-bottom: 30px;
}

.study-plan-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
}

.study-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(16, 30, 61, 0.08);
    border: 1px solid rgba(16, 30, 61, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.study-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(16, 30, 61, 0.12);
}

.study-card h3 {
    margin-bottom: 20px;
    color: #101E3D;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.daily-card {
    background: linear-gradient(135deg, #FEF3E2 0%, #FFF7ED 100%);
    border-left: 4px solid #F7A621;
}

.weekly-card {
    background: linear-gradient(135deg, #E8F5E8 0%, #F0FFF0 100%);
    border-left: 4px solid #10B981;
}

.monthly-card {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #E6F3FF 0%, #F0F8FF 100%);
    border-left: 4px solid #6366f1;
}

.timeline-day {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    border-left: 3px solid #F7A621;
}

.timeline-day h4 {
    margin: 0 0 12px 0;
    color: #101E3D;
    font-size: 0.95em;
    font-weight: 600;
}

.time-slot {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(16, 30, 61, 0.1);
}

.time-slot:last-child {
    border-bottom: none;
}

.time-indicator {
    font-size: 0.8em;
    color: #6c757d;
    font-weight: 500;
    min-width: 80px;
}

.subject-tag {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 500;
    color: white;
    flex-grow: 1;
}

.subject-tag.study {
    background: linear-gradient(135deg, #F7A621, #E69A0C);
}

.subject-tag.practice {
    background: linear-gradient(135deg, #10B981, #059669);
}

.subject-tag.rest {
    background: linear-gradient(135deg, #6c757d, #495057);
}

.subject-tag.review {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.weekly-subject {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(16, 30, 61, 0.1);
}

.weekly-subject:last-child {
    border-bottom: none;
}

.subject-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.subject-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.subject-hours {
    font-weight: 600;
    color: #101E3D;
}

.priority-badge {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7em;
    font-weight: 500;
    text-transform: uppercase;
}

.priority-high {
    background: #fee2e2;
    color: #dc2626;
}

.priority-medium {
    background: #fef3c7;
    color: #d97706;
}

.monthly-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.monthly-week {
    background: rgba(255, 255, 255, 0.7);
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.monthly-week:hover {
    border-color: #6366f1;
    transform: translateY(-2px);
}

.week-number {
    font-size: 0.8em;
    color: #6c757d;
    margin-bottom: 5px;
}

.week-target {
    font-weight: 600;
    color: #101E3D;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.week-hours {
    font-size: 1.2em;
    font-weight: bold;
    color: #6366f1;
}

/* ===========================================
   GROWTH OPPORTUNITIES
   =========================================== */
.growth-section {
    margin-bottom: 30px;
}

.growth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
}

.growth-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 8px 25px rgba(16, 30, 61, 0.08);
    border: 1px solid rgba(16, 30, 61, 0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.growth-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(16, 30, 61, 0.12);
}

.growth-card h3 {
    margin-bottom: 20px;
    color: #101E3D;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.performance-radar {
    background: linear-gradient(135deg, #E8F5E8 0%, #F0FFF0 100%);
    border-left: 4px solid #10B981;
}

.target-gauge {
    background: linear-gradient(135deg, #FEF3E2 0%, #FFF7ED 100%);
    border-left: 4px solid #F7A621;
}

.growth-trajectory {
    background: linear-gradient(135deg, #E6F3FF 0%, #F0F8FF 100%);
    border-left: 4px solid #6366f1;
}

.focus-matrix {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #F3E8FF 0%, #FAF5FF 100%);
    border-left: 4px solid #8B5CF6;
}

.chart-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #F7A621;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

.chart-loader.hidden {
    display: none;
}

.chart-container {
    position: relative;
    height: 200px;
    margin-bottom: 15px;
}

.gauge-container {
    position: relative;
    height: 180px;
    margin-bottom: 15px;
}

.radar-legend {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    font-size: 0.8em;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.gauge-info {
    text-align: center;
    font-size: 0.9em;
}

.current-score {
    font-size: 1.8em;
    font-weight: bold;
    color: #F7A621;
    margin-bottom: 5px;
}

.target-score {
    color: #6c757d;
    margin-bottom: 10px;
}

.progress-message {
    color: #101E3D;
    font-weight: 500;
}

.trajectory-stats {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    text-align: center;
    font-size: 0.8em;
}

.stat-item {
    padding: 8px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
}

.stat-value {
    font-weight: bold;
    color: #6366f1;
    font-size: 1.2em;
}

.stat-label {
    color: #6c757d;
    margin-top: 2px;
}

.priority-matrix {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.priority-item {
    background: rgba(255, 255, 255, 0.7);
    padding: 15px;
    border-radius: 12px;
    text-align: left;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.priority-item:hover {
    transform: translateY(-2px);
    border-color: #8B5CF6;
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.15);
}

.priority-item:active {
    transform: translateY(0px);
}

.priority-urgent {
    border-left: 4px solid #EF4444;
}

.priority-important {
    border-left: 4px solid #F7A621;
}

.priority-nice {
    border-left: 4px solid #10B981;
}

.priority-title {
    font-weight: 600;
    color: #101E3D;
    margin-bottom: 5px;
    font-size: 0.9em;
}

.priority-subject {
    font-size: 0.9em;
    color: #101E3D;
    margin-bottom: 8px;
    font-weight: 500;
    word-wrap: break-word;
    line-height: 1.3;
}

.priority-score {
    font-size: 1.1em;
    font-weight: bold;
}

.score-low { color: #EF4444; }
.score-medium { color: #F7A621; }
.score-high { color: #10B981; }

/* ===========================================
   ACTION CENTER
   =========================================== */
.action-center {
    margin-bottom: 30px;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-family: inherit;
}

.action-btn.primary {
    background: #F7A621;
    color: white;
}

.action-btn.secondary {
    background: #101E3D;
    color: white;
}

.action-btn.accent {
    background: linear-gradient(135deg, #45E6C0, #4ECDC4);
    color: white;
}

.action-btn.outline {
    background: white;
    color: #101E3D;
    border: 2px solid #101E3D;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.action-icon {
    font-size: 1.5em;
    flex-shrink: 0;
}

.action-btn strong {
    display: block;
    margin-bottom: 2px;
}

.action-btn small {
    opacity: 0.8;
}

/* ===========================================
   REVIEW SECTION
   =========================================== */
.review-question {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.answer-status {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: bold;
    margin-bottom: 15px;
}

.correct {
    background: #d4edda;
    color: #155724;
}

.incorrect {
    background: #f8d7da;
    color: #721c24;
}

.unanswered {
    background: #fff3cd;
    color: #856404;
}

.solution-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid #28a745;
}

.steps-section {
    background: #e3f2fd;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid #2196f3;
}

.tips-section {
    background: #fff8e1;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid #ff9800;
}

.step-item {
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
}

.step-item:last-child {
    border-bottom: none;
}

.tip-item {
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
}

.tip-item:last-child {
    border-bottom: none;
}

.review-meta {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
    font-size: 0.9em;
    color: #666;
}

/* ===========================================
   RESPONSIVE DESIGN - DESKTOP FIRST
   =========================================== */
@media (min-width: 1024px) {
    .container {
        max-width: 896px;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1024px;
    }
}

@media (min-width: 1536px) {
    .container {
        max-width: 1280px;
    }
}

/* ===========================================
   MOBILE STYLES (CONSOLIDATED)
   =========================================== */
@media (max-width: 768px) {
    /* Base Layout */
    .container {
        padding: 15px;
        padding-top: 100px;
    }

    /* Hero Section - FIXED */
    .hero-section {
        padding: 20px;
        margin-top: 80px;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        align-items: center;
    }
    
    .hero-text {
        order: 1;
        width: 100%;
        padding-right: 0;
    }
    
    .hero-score {
        order: 2;
        display: flex;
        justify-content: center;
        align-items: center;
        width: auto;
    }
    
    .hero-text h1 {
        font-size: 1.8em;
        margin-bottom: 8px;
        line-height: 1.2;
    }
    
    .hero-text p {
        font-size: 1em;
        line-height: 1.4;
        margin: 0;
    }
    
    .score-circle {
        width: 100px;
        height: 100px;
    }
    
    .score-circle svg {
        width: 100px;
        height: 100px;
    }
    
    .score-text span {
        font-size: 1.4em;
    }
    
    .score-text small {
        font-size: 0.8em;
    }

    /* Header */
    .header {
        padding: 15px;
        flex-direction: column;
        gap: 10px;
        text-align: center;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    .header h1 {
        font-size: 1.5em;
        margin-bottom: 5px;
    }

    .header p {
        font-size: 0.9em;
        margin: 0;
        color: #6c757d;
    }

    /* Results container */
    .results-container {
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    .results-container h1 {
        font-size: 1.8em !important;
        margin-bottom: 20px;
        color: #101E3D;
    }

    /* Score card */
    .score-card {
        padding: 15px;
        margin-bottom: 20px;
        border-radius: 10px;
        background: linear-gradient(135deg, #f8f9fa, #e9ecef);
        border: 1px solid #dee2e6;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    .score-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
        margin-bottom: 15px;
        padding-bottom: 15px;
        border-bottom: 2px solid #F7A621;
    }

    .score-header > div:first-child > div:first-child {
        font-size: 0.75em !important;
        color: #6c757d;
    }

    .score-main {
        font-size: 1.6em !important;
        color: #F7A621;
        font-weight: bold;
    }

    .score-percentage {
        font-size: 1.1em !important;
        color: #6c757d;
        margin-top: 5px;
    }

    .score-breakdown {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-top: 15px;
    }

    .score-item {
        padding: 12px;
        text-align: center;
        border-radius: 8px;
        font-size: 0.9em;
    }

    .score-number {
        font-size: 1.3em !important;
        margin-bottom: 3px;
        font-weight: bold;
        display: block;
    }

    /* Analytics cards */
    .analytics-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .analytics-card {
        min-height: auto;
        padding: 15px;
        background: #f8f9fa;
        border-radius: 8px;
        border-left: 4px solid #F7A621;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }

    .analytics-card h3 {
        font-size: 1em;
        margin-bottom: 12px;
        color: #101E3D;
        font-weight: bold;
    }

    .analytics-card p {
        font-size: 0.8em;
        margin: 4px 0;
        line-height: 1.4;
        color: #333;
    }

    /* Subject breakdown */
    .subject-breakdown {
        margin: 6px 0;
    }

    .subject-breakdown > div {
        font-size: 0.8em;
        color: #333;
    }

    .subject-bar {
        height: 16px;
        margin: 3px 0;
        background: #e9ecef;
        border-radius: 10px;
        overflow: hidden;
    }

    .subject-progress {
        height: 100%;
        background: linear-gradient(90deg, #F7A621, #45E6C0);
        transition: width 0.5s ease;
    }

    /* Navigation */
    .navigation {
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
    }

    .btn {
        padding: 12px 20px;
        font-size: 0.9em;
        width: 100%;
        border-radius: 6px;
        transition: all 0.3s ease;
    }

    .btn-primary {
        background: #F7A621;
        color: white;
    }

    .btn-primary:hover {
        background: #E69A0C;
    }

    .btn-secondary {
        background: #6c757d;
        color: white;
    }

    /* Modal */
    .modal-content {
        max-width: 95vw !important;
        padding: 15px !important;
        margin: 10px !important;
        border-radius: 10px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    }

    .modal-content h3 {
        font-size: 1.1em;
        margin-bottom: 15px;
        padding-right: 25px;
        color: #101E3D;
    }

    /* Dashboard Components */
    .insights-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .insight-card {
        max-height: 280px;
        padding: 20px;
    }
    
    .insight-card h3 {
        font-size: 0.95em;
        margin-bottom: 10px;
    }
    
    canvas {
        max-width: 100% !important;
        height: auto !important;
    }
    
    .quick-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .stat-card {
        padding: 15px 10px;
    }
    
    .stat-number {
        font-size: 1.5em;
    }
    
    .matrix-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .matrix-card {
        padding: 20px;
    }
    
    .action-grid {
        grid-template-columns: 1fr;
    }

    /* Study Plan */
    .study-plan-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .monthly-card {
        grid-column: 1;
    }
    
    .monthly-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .time-slot {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .time-indicator {
        min-width: auto;
    }
    
    .study-card {
        padding: 20px;
    }

    /* Growth Section */
    .growth-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .focus-matrix {
        grid-column: 1;
    }
    
    .priority-matrix {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .chart-container {
        height: 180px;
    }
    
    .gauge-container {
        height: 160px;
    }
    
    .trajectory-stats {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .growth-card {
        padding: 20px;
    }

    /* Video */
    .aspect-video {
        height: 200px;
    }
}

/* ===========================================
   EXTRA SMALL SCREENS
   =========================================== */
@media (max-width: 480px) {
    .insight-card {
        padding: 15px;
        max-height: 320px;
    }
    
    .hero-section {
        padding: 18px 12px;
    }
    
    .hero-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        align-items: center;
    }
    
    .hero-text {
        order: 1;
        width: 100%;
    }
    
    .hero-score {
        order: 2;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .hero-text h1 {
        font-size: 1.5em;
        margin-bottom: 6px;
        line-height: 1.2;
    }
    
    .hero-text p {
        font-size: 0.95em;
        line-height: 1.3;
        margin: 0;
    }
    
    .score-circle {
        width: 80px;
        height: 80px;
        margin: 0 auto;
    }
    
    .score-circle svg {
        width: 80px !important;
        height: 80px !important;
    }
    
    .score-text {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
    }
    
    .score-text span {
        font-size: 1.2em !important;
        display: block;
        line-height: 1;
    }
    
    .score-text small {
        font-size: 0.7em !important;
        display: block;
        margin-top: 2px;
    }

    .monthly-grid {
        grid-template-columns: 1fr !important;
        gap: 8px;
    }

    .monthly-week {
        padding: 12px 8px;
        font-size: 0.85em;
    }

    .week-number {
        font-size: 0.75em;
        margin-bottom: 4px;
    }

    .week-target {
        font-size: 0.8em;
        margin-bottom: 6px;
        line-height: 1.2;
    }

    .week-hours {
        font-size: 1.1em;
    }

    .study-card {
        padding: 15px 12px;
    }

    .study-card h3 {
        font-size: 0.95em;
        margin-bottom: 15px;
    }
}

/* ===========================================
   VIDEO CONTAINER WRAPPER
   =========================================== */
.video-container-wrapper {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
}

/* Update the mobile styles */
@media (max-width: 768px) {
    .video-container-wrapper {
        max-width: 100%;
        padding: 0 15px;
    }
    
    /* Remove this existing rule to prevent aspect ratio breaking */
    .aspect-video {
        height: auto; /* Change from 200px to auto */
    }
}

/* ===========================================
   FOOTER
   =========================================== */
footer {
    margin-top: 60px;
    clear: both;
}