@charset "utf-8";
/* CSS Document */

 :root {
            --primary: #1a237e;
            --primary-light: #534bae;
            --secondary: #0d47a1;
            --sc-color: #2196f3;
            --hsc-color: #ff9800;
            --success: #4caf50;
            --warning: #ff9800;
            --light: #f5f5f5;
            --dark: #212121;
            --gray: #757575;
            --border: #e0e0e0;
            --shadow: 0 2px 8px rgba(0,0,0,0.1);
            --shadow-lg: 0 4px 20px rgba(0,0,0,0.15);
            --radius: 10px;
            --new-year-color: #9c27b0; /* Purple color for 2025 highlight */
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', system-ui, sans-serif;
        }

        body {
            background: linear-gradient(135deg, #f8f9fa 0%, #e8f4fd 100%);
            color: var(--dark);
            line-height: 1.6;
            min-height: 100vh;
        }

        /* Header */
        .header {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            padding: 1.5rem 0;
            position: relative;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 2rem;
            position: relative;
            z-index: 1;
        }

        .page-title {
            text-align: center;
            font-size: 2rem;
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .page-subtitle {
            text-align: center;
            opacity: 0.9;
            font-size: 1.1rem;
            max-width: 800px;
            margin: 0 auto;
        }

        /* 2025 Announcement Banner */
        .year-announcement {
            background: linear-gradient(135deg, var(--new-year-color), #7b1fa2);
            color: white;
            padding: 1rem;
            border-radius: var(--radius);
            margin: 1.5rem 0;
            text-align: center;
            box-shadow: var(--shadow);
            animation: pulseBanner 3s infinite;
            position: relative;
            overflow: hidden;
        }

        .year-announcement::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
        }

        @keyframes pulseBanner {
            0%, 100% { box-shadow: 0 0 0 0 rgba(156, 39, 176, 0.7); }
            50% { box-shadow: 0 0 0 10px rgba(156, 39, 176, 0); }
        }

        .year-announcement-content {
            position: relative;
            z-index: 1;
        }

        .year-announcement h3 {
            font-size: 1.5rem;
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .year-announcement-stats {
            display: flex;
            justify-content: center;
            gap: 2rem;
            margin-top: 0.75rem;
            flex-wrap: wrap;
        }

        .announcement-stat {
            background: rgba(255, 255, 255, 0.2);
            padding: 0.5rem 1rem;
            border-radius: var(--radius);
            backdrop-filter: blur(10px);
        }

        /* Dashboard Controls */
        .dashboard-controls {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
            margin: 1.5rem 0;
            padding: 1rem;
            background: white;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
        }

        .control-group {
            display: flex;
            align-items: center;
            gap: 1rem;
        }

        .control-label {
            font-weight: 600;
            color: var(--primary);
        }

        .year-slider-container {
            flex: 1;
            min-width: 200px;
            max-width: 400px;
        }

        .year-slider {
            width: 100%;
            height: 8px;
            border-radius: 4px;
            background: var(--light);
            outline: none;
            opacity: 0.9;
            transition: opacity 0.2s;
        }

        .year-slider:hover {
            opacity: 1;
        }

        .year-slider::-webkit-slider-thumb {
            appearance: none;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: var(--primary);
            cursor: pointer;
            box-shadow: var(--shadow);
        }

        .year-display {
            font-weight: 600;
            color: var(--primary);
            min-width: 100px;
            text-align: center;
        }

        .filter-buttons {
            display: flex;
            gap: 0.5rem;
        }

        .filter-btn {
            padding: 0.5rem 1rem;
            border: 1px solid var(--border);
            background: white;
            border-radius: var(--radius);
            cursor: pointer;
            transition: all 0.3s ease;
            font-size: 0.9rem;
        }

        .filter-btn:hover {
            background: var(--light);
            transform: translateY(-2px);
        }

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

        /* Toggle Section */
        .exam-toggle {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin: 1.5rem auto;
            max-width: 600px;
        }

        .toggle-btn {
            flex: 1;
            padding: 1rem 2rem;
            border: none;
            border-radius: var(--radius);
            background: white;
            color: var(--gray);
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: var(--shadow);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
        }

        .toggle-btn:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }

        .toggle-btn.active {
            background: var(--primary);
            color: white;
        }

        /* Summary Cards */
        .summary-cards {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1.5rem;
            margin: 2rem 0;
        }

        .summary-card {
            background: white;
            border-radius: var(--radius);
            padding: 1.5rem;
            box-shadow: var(--shadow);
            text-align: center;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .summary-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-lg);
        }

        .summary-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: var(--primary);
            opacity: 0.7;
        }

        .summary-value {
            font-size: 2.5rem;
            font-weight: 700;
            margin: 0.5rem 0;
            transition: all 0.3s ease;
        }

        .summary-label {
            color: var(--gray);
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .summary-detail {
            font-size: 0.9rem;
            color: var(--dark);
            margin-top: 0.5rem;
        }

        .summary-change {
            font-size: 0.8rem;
            margin-top: 0.25rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.25rem;
        }

        .positive {
            color: var(--success);
        }

        .negative {
            color: #f44336;
        }

        /* Main Content Area - REARRANGED: Charts above Table */
        .content-area {
            display: flex;
            flex-direction: column;
            gap: 2rem;
            margin: 2rem 0;
        }

        /* Charts Section - Now on top */
        .charts-section {
            background: white;
            border-radius: var(--radius);
            padding: 1.5rem;
            box-shadow: var(--shadow);
            height: fit-content;
            transition: all 0.3s ease;
        }

        .chart-container {
            height: 300px;
            margin: 1.5rem 0;
            position: relative;
        }

        .chart-controls {
            display: flex;
            justify-content: center;
            gap: 1rem;
            margin-top: 1rem;
        }

        .chart-btn {
            padding: 0.5rem 1rem;
            border: 1px solid var(--border);
            background: white;
            border-radius: var(--radius);
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .chart-btn:hover {
            background: var(--light);
        }

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

        .legend {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            margin-top: 1rem;
            flex-wrap: wrap;
        }

        .legend-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 0.9rem;
            cursor: pointer;
            padding: 0.25rem 0.5rem;
            border-radius: 4px;
            transition: background-color 0.2s;
        }

        .legend-item:hover {
            background: var(--light);
        }

        .legend-color {
            width: 15px;
            height: 15px;
            border-radius: 3px;
        }

        .legend-color.sc {
            background: var(--sc-color);
        }

        .legend-color.hsc {
            background: var(--hsc-color);
        }

        .legend-color.new-year {
            background: var(--new-year-color);
        }

        /* Data Table Section - Now below charts */
        .data-section {
            background: white;
            border-radius: var(--radius);
            padding: 1.5rem;
            box-shadow: var(--shadow);
            height: fit-content;
            transition: all 0.3s ease;
        }

        .section-title {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
            margin-bottom: 1.5rem;
            padding-bottom: 0.75rem;
            border-bottom: 2px solid var(--border);
            color: var(--primary);
        }

        .table-actions {
            display: flex;
            gap: 0.5rem;
        }

        .table-btn {
            padding: 0.4rem 0.8rem;
            border: 1px solid var(--border);
            background: white;
            border-radius: 6px;
            cursor: pointer;
            transition: all 0.2s;
            font-size: 0.8rem;
        }

        .table-btn:hover {
            background: var(--light);
        }

        .data-table-container {
            overflow-x: auto;
            margin-top: 1rem;
            max-height: 500px;
            overflow-y: auto;
        }

        .data-table {
            width: 100%;
            border-collapse: collapse;
            min-width: 600px;
        }

        .data-table th {
            background: var(--light);
            padding: 1rem;
            text-align: left;
            font-weight: 600;
            color: var(--primary);
            border-bottom: 2px solid var(--border);
            position: sticky;
            top: 0;
            z-index: 10;
        }

        .data-table td {
            padding: 1rem;
            border-bottom: 1px solid var(--border);
            transition: background-color 0.2s;
        }

        .data-table tr:hover {
            background: #f8f9fa;
        }

        .data-table tr.selected {
            background: rgba(33, 150, 243, 0.1);
        }

        .pass-rate {
            display: inline-block;
            padding: 0.25rem 0.75rem;
            border-radius: 20px;
            font-weight: 600;
            font-size: 0.85rem;
            text-align: center;
            min-width: 70px;
            transition: all 0.3s ease;
        }

        .high-pass {
            background: #d4edda;
            color: #155724;
        }

        .medium-pass {
            background: #fff3cd;
            color: #856404;
        }

        .low-pass {
            background: #f8d7da;
            color: #721c24;
        }

        .new-year-pass {
            background: #e8d4f2;
            color: #4a148c;
            border: 1px solid var(--new-year-color);
            box-shadow: 0 0 5px rgba(156, 39, 176, 0.3);
        }

        .trend-indicator {
            font-size: 1.2rem;
            margin-left: 0.5rem;
        }

        .trend-up {
            color: #4caf50;
        }

        .trend-down {
            color: #f44336;
        }

        /* Footer */
        .footer {
            background: var(--dark);
            color: white;
            padding: 2rem 0;
            margin-top: 3rem;
            text-align: center;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .container {
                padding: 0 1rem;
            }
            
            .page-title {
                font-size: 1.75rem;
            }
            
            .exam-toggle {
                flex-direction: column;
            }
            
            .summary-cards {
                grid-template-columns: 1fr;
            }
            
            .dashboard-controls {
                flex-direction: column;
                align-items: stretch;
            }
            
            .year-slider-container {
                max-width: 100%;
            }
            
            .section-title {
                flex-direction: column;
                align-items: flex-start;
                gap: 1rem;
            }
            
            .table-actions {
                align-self: flex-end;
            }
            
            .year-announcement-stats {
                flex-direction: column;
                gap: 0.5rem;
            }
        }

        /* Animation */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }

        @keyframes highlightNew {
            0% { background-color: rgba(156, 39, 176, 0.3); }
            100% { background-color: rgba(156, 39, 176, 0.1); }
        }

        .fade-in {
            animation: fadeIn 0.5s ease-out;
        }

        .pulse {
            animation: pulse 2s infinite;
        }

        .highlight-new {
            animation: highlightNew 2s ease-out;
        }

        /* Best Year Styling */
        .best-year {
            background-color: rgba(76, 175, 80, 0.1);
            font-weight: bold;
            position: relative;
        }

        .best-year::after {
            content: "🏆 Best";
            font-size: 0.7em;
            background: #4caf50;
            color: white;
            padding: 2px 6px;
            border-radius: 10px;
            margin-left: 8px;
            font-weight: normal;
        }

        .new-year-row {
            background-color: rgba(156, 39, 176, 0.1) !important;
            font-weight: bold;
            position: relative;
        }

        .new-year-row::after {
            content: "✨ 2025";
            font-size: 0.7em;
            background: var(--new-year-color);
            color: white;
            padding: 2px 6px;
            border-radius: 10px;
            margin-left: 8px;
            font-weight: normal;
        }

        .summary-card.best-sc {
            border-left: 4px solid var(--sc-color);
        }

        .summary-card.best-hsc {
            border-left: 4px solid var(--hsc-color);
        }

        .summary-card.best-sc .summary-value {
            color: var(--sc-color);
        }

        .summary-card.best-hsc .summary-value {
            color: var(--hsc-color);
        }

        /* Loading Animation */
        .loader {
            display: inline-block;
            width: 20px;
            height: 20px;
            border: 3px solid var(--light);
            border-top-color: var(--primary);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* Tooltip */
        .tooltip {
            position: relative;
            display: inline-block;
        }

        .tooltip .tooltip-text {
            visibility: hidden;
            width: 200px;
            background-color: var(--dark);
            color: white;
            text-align: center;
            border-radius: 6px;
            padding: 10px;
            position: absolute;
            z-index: 100;
            bottom: 125%;
            left: 50%;
            transform: translateX(-50%);
            opacity: 0;
            transition: opacity 0.3s;
            font-size: 0.85rem;
            font-weight: normal;
        }

        .tooltip:hover .tooltip-text {
            visibility: visible;
            opacity: 1;
        }

        /* Highlight Animation */
        @keyframes highlight {
            0% { background-color: rgba(76, 175, 80, 0.3); }
            100% { background-color: rgba(76, 175, 80, 0.1); }
        }

        .highlight {
            animation: highlight 2s ease-out;
        }
        
        /* For compare view: show tables side by side */
        .tables-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
        }
        
        @media (max-width: 1024px) {
            .tables-container {
                grid-template-columns: 1fr;
            }
        }


