        /* --- General Reset & Font Update --- */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        /* --- New Colorful Body Background --- */
        body {
            font-family: 'Poppins', sans-serif;
            background: linear-gradient(135deg, #f9f9f9 0%, #e8edf5 100%);
            min-height: 100vh;
            padding: 30px; /* Increased padding */
        }

        /* --- Container with enhanced shadow --- */
        .container {
            max-width: 1400px;
            margin: 0 auto;
            background: #ffffff;
            border-radius: 30px; /* More rounded */
            box-shadow: 0 40px 100px rgba(0,0,0,0.15); /* Stronger shadow */
            overflow: hidden;
        }

        /* --- Header with Flexbox, Developer Profile, and New Color --- */
        .header {
            background: linear-gradient(135deg, #0f1c48 0%, #153c6e 100%); /* Deep Blue/Navy */
            color: white;
            padding: 30px 40px;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        
        /* --- Flash Light Heading Style (Text Shadow) --- */
        .header h1 {
            font-size: 3em;
            margin-bottom: 10px;
            /* Simple neon/flash effect using text-shadow */
            text-shadow: 0 0 5px #00e0ff, 0 0 10px #00e0ff, 0 0 15px rgba(255, 255, 255, 0.7); 
            letter-spacing: 1px;
        }
        
        .header-content {
            flex-grow: 1;
            text-align: center;
        }
        
        /* --- Developer Image & Profile Styling (Left Side) --- */
        .developer-profile {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            margin: 0; /* Proper margin from the edge */
            padding: 10px;
            border-radius: 15px;
            //background: rgba(255, 255, 255, 0.1);
        }

        .developer-profile img {
            width: 80px;
            height: 80px;
            border-radius: 50%; /* Round shape */
            border: 4px solid #ffc371; /* Highlight border */
            object-fit: cover;
            margin-bottom: 5px;
            box-shadow: 0 0 10px rgba(255, 195, 113, 0.8);
        }

        .developer-profile p {
            font-size: 0.85em;
            font-weight: 600;
            color: #ffc371;
            margin-top: 5px;
        }
        
        /* --- Upload Section --- */
        .upload-section {
            padding: 40px;
            text-align: center;
            background: #ffffff;
            border-bottom: 2px solid #e9ecef;
        }

        .upload-box {
            border: 3px dashed #153c6e;
            border-radius: 15px;
            padding: 40px;
            background: #f8faff;
            cursor: pointer;
            transition: all 0.3s;
        }

        .upload-box:hover {
            border-color: #0f1c48;
            background: #eef2ff;
        }

        .upload-icon {
            font-size: 3em;
            color: #153c6e;
            margin-bottom: 15px;
        }
        
        /* --- Group Button New Colors --- */
        .group-buttons {
            display: flex;
            gap: 20px;
            margin-bottom: 30px;
            flex-wrap: wrap;
        }

        .group-btn {
            flex: 1;
            min-width: 200px;
            padding: 20px;
            border: none;
            border-radius: 12px;
            font-size: 1.1em;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s;
            color: white;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }

        .group-btn.science {
            background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%); /* Green */
        }

        .group-btn.humanities {
            background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%); /* Purple */
        }

        .group-btn.commerce {
            background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%); /* Orange */
        }

        .group-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        }

        .group-btn.active {
            box-shadow: 0 0 0 4px white, 0 0 0 8px currentColor;
        }

        /* --- Category Button Styles --- */
        .category-buttons {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 15px;
            margin-bottom: 25px;
        }

        .category-btn {
            padding: 15px 20px;
            border: 2px solid #0f1c48;
            background: white;
            border-radius: 10px;
            font-size: 1em;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            color: #0f1c48;
        }

        .category-btn:hover, .category-btn.active {
            background: #0f1c48;
            color: white;
        }
        
        /* --- Results Display & Table Styles --- */
        .analysis-section {
            padding: 40px;
            display: none;
        }
        
        .results-display {
            background: #f4f7f6;
            border-radius: 12px;
            padding: 25px;
            margin-top: 20px;
            display: none;
        }
        
        .results-display h3 {
            color: #0f1c48;
            margin-bottom: 20px;
            font-size: 1.5em;
        }

        .export-btn {
            background: linear-gradient(135deg, #ff5f6d 0%, #ffc371 100%);
            color: white;
            padding: 12px 24px;
            border: none;
            border-radius: 8px;
            font-weight: bold;
            cursor: pointer;
            margin: 10px 10px 10px 0;
            transition: all 0.3s;
            box-shadow: 0 5px 10px rgba(0,0,0,0.2);
        }

        .results-table thead {
            background: linear-gradient(135deg, #0f1c48 0%, #153c6e 100%);
            color: white;
        }
        
        .results-table tbody tr.failed-row {
            background: #ffe6e6; /* Light red for failed students */
        }
        
        .results-table tbody tr:hover {
            background: #eef2ff; /* Light blue on hover */
        }

        .section-title {
            border-left: 5px solid #ff5f6d; /* Accent color */
        }
        
        /* Other styles remain for functionality, updated with Poppins font and better spacing */
        
        .upload-box input { display: none; }
        .analysis-section.active { display: block; }
        .dropdown-section { display: none; }
        .dropdown-section.active { display: block; animation: slideDown 0.3s ease-out; }
        @keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
        .subject-dropdown { margin: 20px 0; padding: 15px; background: white; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); display: none; }
        .subject-dropdown.active { display: block; }
        .subject-dropdown select { width: 100%; padding: 12px; font-size: 1em; border: 2px solid #0f1c48; border-radius: 8px; background: white; cursor: pointer; }
        .results-display.active { display: block; animation: fadeIn 0.3s ease-out; }
        @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
        .stats-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin: 20px 0; }
        .stat-box { padding: 15px; border-radius: 10px; text-align: center; color: white; font-weight: bold; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
        .stat-box.passed { background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%); }
        .stat-box.failed { background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); }
        .stat-box.absent { background: linear-gradient(135deg, #bdc3c7 0%, #95a5a6 100%); }
        .stat-box.fail-count-6 { background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%); }
        .stat-box.fail-count-4 { background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%); }
        .stat-box.fail-count-2 { background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); }
        .stat-box .number { font-size: 2em; margin-bottom: 5px; }
        .stat-box .label { font-size: 0.9em; opacity: 0.9; }
        .results-table { width: 100%; border-collapse: collapse; background: white; box-shadow: 0 5px 15px rgba(0,0,0,0.05); border-radius: 10px; overflow: hidden; margin-bottom: 20px; }
        .results-table th { padding: 15px; text-align: left; font-weight: 600; font-size: 0.95em; text-transform: uppercase; }
        .results-table td { padding: 12px 15px; border-bottom: 1px solid #e9ecef; }
        .rank-cell { background: linear-gradient(135deg, #ff5f6d 0%, #ffc371 100%); color: white; font-weight: bold; text-align: center; border-radius: 8px; padding: 5px 10px !important; display: inline-block; min-width: 40px; }
        .grade-badge { display: inline-block; padding: 5px 12px; border-radius: 20px; font-size: 0.85em; font-weight: bold; }
        .grade-a-plus { background: #d4edda; color: #155724; }
        .grade-a { background: #d1ecf1; color: #0c5460; }
        .grade-b-plus { background: #fff3cd; color: #856404; }
        .grade-b { background: #ffeaa7; color: #856404; }
        .grade-c-plus { background: #f8d7da; color: #721c24; }
        .grade-c { background: #f5c6cb; color: #721c24; }
        .grade-d { background: #ff6b6b; color: white; }
        .grade-ab { background: #95a5a6; color: white; }
        .fail-badge { display: inline-block; padding: 5px 12px; border-radius: 20px; font-size: 0.85em; font-weight: bold; background: #dc3545; color: white; }
        .pass-badge { display: inline-block; padding: 5px 12px; border-radius: 20px; font-size: 0.85em; font-weight: bold; background: #28a745; color: white; }
        .status-badge { padding: 5px 12px; border-radius: 20px; font-weight: bold; font-size: 0.9em; }
        .status-passed-all { background: #e6ffed; color: #007e33; border: 1px solid #007e33; }
        .status-failed-some { background: #ffe6e6; color: #cc0000; border: 1px solid #cc0000; }
        .section-title { font-size: 1.3em; color: #333; margin: 25px 0 15px 0; padding: 10px; background: white; border-left: 5px solid #ff5f6d; }
        .no-data { text-align: center; padding: 40px; color: #999; font-size: 1.1em; }
        .loading { text-align: center; padding: 20px; color: #153c6e; font-size: 1.1em; }
        
        @media (max-width: 768px) {
            .header { flex-direction: column; }
            .developer-profile { margin: 10px 0 20px 0; }
            .header-content h1 { font-size: 2em; }
            .group-buttons { flex-direction: column; gap: 10px; }
            .container { border-radius: 15px; }
        }
