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

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            padding: 20px;
        }
        
        /* Stat Box Hover Effects */
        #statBoxActive:hover, #statBoxExpiring:hover, #statBoxExpired:hover, #statBoxAll:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(0,0,0,0.2);
        }
        
        #statBoxActive.selected {
            border: 3px solid rgba(79, 172, 254, 0.5) !important;
            box-shadow: 0 0 20px rgba(79, 172, 254, 0.4);
        }
        
        #statBoxExpiring.selected {
            border: 3px solid rgba(245, 158, 11, 0.5) !important;
            box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
        }
        
        #statBoxExpired.selected {
            border: 3px solid rgba(239, 68, 68, 0.5) !important;
            box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
        }
        
        #statBoxAll.selected {
            border: 3px solid rgba(102, 126, 234, 0.5) !important;
            box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
        }

        .login-container {
            max-width: 440px;
            margin: 60px auto;
            background: #ffffff;
            border-radius: 20px;
            padding: 44px 48px;
            box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
            border: 1px solid rgba(0,0,0,0.06);
        }

        .login-container h1 {
            text-align: center;
            color: #1a1a2e;
            margin-bottom: 6px;
            font-size: 26px;
            font-weight: 700;
            letter-spacing: -0.5px;
        }

        .form-group {
            margin-bottom: 18px;
        }

        .form-group label {
            display: block;
            margin-bottom: 6px;
            font-weight: 600;
            font-size: 13px;
            color: #555;
            letter-spacing: 0.3px;
            text-transform: uppercase;
        }

        .form-group input {
            width: 100%;
            padding: 12px 16px;
            border: 1.5px solid #e8e8ee;
            border-radius: 10px;
            font-size: 15px;
            color: #1a1a2e;
            background: #fafafa;
            transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
            box-sizing: border-box;
        }

        .form-group input:focus {
            outline: none;
            border-color: #667eea;
            background: #fff;
            box-shadow: 0 0 0 3px rgba(102,126,234,0.12);
        }

        .form-group input::placeholder {
            color: #bbb;
        }

        .user-info {
            background: #f7f7f7;
            padding: 10px 15px;
            border-radius: 6px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .user-info span {
            font-weight: 500;
            color: #333;
        }

        .btn-logout {
            background: #dc3545;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.3s ease;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .btn-logout:hover {
            background: #c82333;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
            transform: translateY(-1px);
        }

        .btn-change-password {
            background: #667eea;
            color: white;
            border: none;
            padding: 10px 20px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.3s ease;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            margin-right: 10px;
        }

        .btn-change-password:hover {
            background: #5568d3;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
            transform: translateY(-1px);
        }

        .user-info > div {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .analytics-subtab:hover {
            opacity: 0.8;
        }

        .analytics-subtab-content {
            animation: fadeIn 0.3s ease-in;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .hidden {
            display: none !important;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            background: white;
            border-radius: 12px;
            box-shadow: 0 20px 60px rgba(0,0,0,0.3);
            overflow: hidden;
        }

        .header {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 30px;
            text-align: center;
        }

        .header h1 {
            font-size: 2em;
            margin-bottom: 10px;
        }

        .tabs {
            display: flex;
            background: linear-gradient(to bottom, #ffffff, #f5f5f5);
            border-bottom: 3px solid #e0e0e0;
            padding: 10px 10px 0 10px;
            gap: 8px;
            overflow-x: auto;
            scrollbar-width: thin;
        }
        
        .tabs::-webkit-scrollbar {
            height: 6px;
        }
        
        .tabs::-webkit-scrollbar-track {
            background: #f1f1f1;
        }
        
        .tabs::-webkit-scrollbar-thumb {
            background: #667eea;
            border-radius: 3px;
        }

        .tab {
            flex: 0 0 auto;
            min-width: 140px;
            padding: 12px 20px;
            text-align: center;
            cursor: pointer;
            background: white;
            border: 2px solid #e0e0e0;
            border-bottom: none;
            border-radius: 12px 12px 0 0;
            font-size: 14px;
            font-weight: 600;
            transition: all 0.3s;
            color: #555;
            position: relative;
            box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
        }

        .tab:hover {
            background: linear-gradient(to bottom, #f8f9ff, #ffffff);
            border-color: #667eea;
            color: #667eea;
            transform: translateY(-2px);
            box-shadow: 0 -4px 8px rgba(102, 126, 234, 0.15);
        }

        .tab.active {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border-color: #667eea;
            transform: translateY(-4px);
            box-shadow: 0 -6px 12px rgba(102, 126, 234, 0.3);
            font-weight: 700;
        }
        
        .tab.active::after {
            content: '';
            position: absolute;
            bottom: -3px;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }

        /* Subtab styles for Data & Analytics */
        .subtab-button {
            padding: 12px 24px;
            border: 2px solid #e0e0e0;
            background: white;
            border-radius: 8px 8px 0 0;
            cursor: pointer;
            font-size: 15px;
            font-weight: 500;
            transition: all 0.3s;
            color: #666;
        }

        .subtab-button:hover {
            background: #f5f5f5;
            border-color: #667eea;
        }

        .subtab-button.active {
            background: #667eea;
            color: white;
            border-color: #667eea;
        }

        .data-subtab {
            display: none;
        }

        .data-subtab.active {
            display: block;
        }

        .content {
            padding: 30px;
        }

        .tab-content {
            display: none;
        }

        .tab-content.active {
            display: block;
        }

        .upload-section {
            border: 2px dashed #667eea;
            border-radius: 8px;
            padding: 30px;
            text-align: center;
            margin-bottom: 20px;
            background: #f9f9ff;
        }

        .upload-section input[type="file"] {
            margin: 15px 0;
        }

        .btn {
            background: #667eea;
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 16px;
            font-weight: 500;
            transition: all 0.2s;
        }

        .btn:hover {
            background: #5568d3;
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
        }

        .btn-secondary {
            background: #6c757d;
            margin-left: 10px;
        }

        .btn-success {
            background: #28a745;
        }

        .btn-danger {
            background: #dc3545;
        }
        
        /* Toggle Switch Styles */
        .switch {
            position: relative;
            display: inline-block;
            width: 60px;
            height: 34px;
        }

        .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: .4s;
        }

        .slider:before {
            position: absolute;
            content: "";
            height: 26px;
            width: 26px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            transition: .4s;
        }

        input:checked + .slider {
            background-color: #10b981;
        }

        input:focus + .slider {
            box-shadow: 0 0 1px #10b981;
        }

        input:checked + .slider:before {
            transform: translateX(26px);
        }

        .slider.round {
            border-radius: 34px;
        }

        .slider.round:before {
            border-radius: 50%;
        }
        
        /* Time Filter Buttons */
        .time-filter-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        }

        .stats {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }

        .stat-card {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 20px;
            border-radius: 8px;
            text-align: center;
        }

        .stat-card h3 {
            font-size: 2em;
            margin-bottom: 5px;
        }

        .stat-card p {
            opacity: 0.9;
        }

        .search-bar {
            margin-bottom: 20px;
        }

        .search-bar input {
            width: 100%;
            padding: 12px;
            border: 2px solid #e0e0e0;
            border-radius: 6px;
            font-size: 16px;
        }

        .search-bar input:focus {
            outline: none;
            border-color: #667eea;
        }

        table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 20px;
        }

        th, td {
            padding: 12px;
            text-align: left;
            border-bottom: 1px solid #e0e0e0;
        }

        th {
            background: #f7f7f7;
            font-weight: 600;
            color: #333;
        }
        
        /* Override for gradient table headers */
        table thead tr[style*="gradient"] th {
            background: transparent !important;
            color: #ffffff !important;
        }

        tr:hover {
            background: #f9f9f9;
        }

        .ticket-input {
            display: flex;
            gap: 10px;
            align-items: center;
            margin: 20px 0;
        }

        .ticket-input input, .ticket-input select {
            padding: 10px;
            border: 2px solid #e0e0e0;
            border-radius: 6px;
            font-size: 14px;
        }

        .ticket-input select {
            flex: 1;
        }

        .ticket-input input[type="number"] {
            width: 80px;
        }

        .winner-box {
            background: #fff3cd;
            border: 2px solid #ffc107;
            border-radius: 8px;
            padding: 30px;
            text-align: center;
            margin: 20px 0;
        }

        .winner-box h2 {
            color: #856404;
            font-size: 2em;
            margin-bottom: 10px;
        }

        .winner-box p {
            font-size: 1.2em;
            color: #856404;
        }

        .raffle-controls {
            display: flex;
            gap: 10px;
            margin-bottom: 20px;
            align-items: center;
        }

        .raffle-controls select {
            flex: 1;
            padding: 10px;
            border: 2px solid #e0e0e0;
            border-radius: 6px;
            font-size: 16px;
        }

        .alert {
            padding: 15px;
            border-radius: 6px;
            margin-bottom: 20px;
        }

        .alert-success {
            background: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }

        .alert-info {
            background: #d1ecf1;
            color: #0c5460;
            border: 1px solid #bee5eb;
        }

        .week-tracker {
            background: #f7f7f7;
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 20px;
        }

        .week-tracker h3 {
            margin-bottom: 15px;
            color: #333;
        }

        .week-buttons {
            display: flex;
            gap: 10px;
        }

        .checkbox-cell {
            text-align: center;
        }

        .checkbox-cell input[type="checkbox"] {
            width: 20px;
            height: 20px;
            cursor: pointer;
        }

        .qualified-badge {
            background: #28a745;
            color: white;
            padding: 4px 8px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 600;
        }

        .admin-only {
            /* Will be hidden for teachers via JS */
        }

        .admin-only.disabled {
            display: none !important;
        }

        .super-admin-only.disabled {
            display: none !important;
        }

        .log-table {
            font-size: 14px;
        }

        .log-table td {
            padding: 8px;
        }

        .teacher-badge {
            background: #667eea;
            color: white;
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 12px;
        }

        .error-message {
            color: #dc3545;
            font-size: 14px;
            margin-top: 10px;
        }

        /* Mobile Optimization */
        @media screen and (max-width: 768px) {
            body {
                padding: 10px;
            }

            /* Login Screen Mobile */
            .login-container {
                margin: 20px auto;
                padding: 25px;
                max-width: 100%;
            }

            .login-container h1 {
                font-size: 24px;
            }

            .login-container img {
                max-width: 280px !important;
            }

            /* Main App Mobile */
            .container {
                padding: 15px;
            }

            .header h1 {
                font-size: 20px;
            }

            .header p {
                font-size: 13px;
            }

            .header img {
                height: 40px !important;
            }

            /* User Info Stack */
            .user-info {
                flex-direction: column;
                gap: 10px;
                align-items: flex-start;
            }

            .user-info > div {
                display: flex;
                gap: 8px;
                width: 100%;
            }

            /* Tabs - Horizontal Scroll */
            .tabs {
                overflow-x: auto;
                overflow-y: hidden;
                white-space: nowrap;
                -webkit-overflow-scrolling: touch;
                padding: 8px 8px 0 8px;
                gap: 6px;
            }

            .tabs::-webkit-scrollbar {
                height: 4px;
            }

            .tabs::-webkit-scrollbar-track {
                background: #f1f1f1;
                border-radius: 10px;
            }

            .tabs::-webkit-scrollbar-thumb {
                background: #667eea;
                border-radius: 10px;
            }

            .tabs::-webkit-scrollbar-thumb:hover {
                background: #764ba2;
            }

            .tab {
                display: inline-block;
                font-size: 13px;
                min-width: 120px;
                padding: 10px 16px;
            }
                padding: 10px 16px;
                min-width: 100px;
            }

            /* Mobile Helper Text */
            .mobile-hint {
                display: block;
                text-align: center;
                color: #999;
                font-size: 12px;
                margin-top: -10px;
                margin-bottom: 15px;
            }

            /* Buttons - Bigger Touch Targets */
            .btn {
                padding: 14px 20px;
                font-size: 16px;
                min-height: 44px;
            }

            .btn-logout {
                padding: 10px 16px;
                font-size: 14px;
                width: 100%;
            }

            /* Forms */
            .form-group input,
            .form-group select {
                font-size: 16px; /* Prevents zoom on iOS */
                padding: 12px;
            }

            /* Ticket Input */
            .ticket-input {
                flex-direction: column;
                gap: 10px;
            }

            .ticket-input select,
            .ticket-input input {
                width: 100%;
            }

            /* Stats Cards */
            .stats {
                grid-template-columns: 1fr;
                gap: 15px;
            }

            .stat-card {
                padding: 15px;
            }

            .stat-card h3 {
                font-size: 28px;
            }

            /* Tables */
            table {
                font-size: 14px;
            }

            table th,
            table td {
                padding: 10px 6px;
            }

            /* Hide some columns on very small screens */
            @media screen and (max-width: 480px) {
                .student-id-col {
                    display: none;
                }
            }

            /* Week Tracker */
            .week-tracker h3 {
                font-size: 18px;
            }

            .week-buttons {
                flex-direction: column;
                gap: 8px;
            }

            .week-buttons button {
                width: 100%;
            }

            /* Search Bar */
            .search-bar input {
                font-size: 16px;
                padding: 12px;
            }

            /* Raffle Controls */
            .raffle-controls {
                flex-direction: column;
                gap: 10px;
            }

            .raffle-controls select,
            .raffle-controls button {
                width: 100%;
            }

            /* Alert Messages */
            .alert {
                font-size: 14px;
                padding: 12px;
            }

            /* Leaderboard Grid */
            #leaderboard > div:last-child {
                grid-template-columns: 1fr !important;
            }

            /* Data Analytics Toggle */
            .view-toggle {
                flex-direction: column;
            }

            .view-toggle button {
                width: 100%;
            }

            /* Login Buttons Stack */
            #loginScreen > div:first-of-type {
                flex-direction: column;
            }

            /* Student Login Large Button */
            .student-login-btn {
                min-height: 60px;
                font-size: 18px;
            }

            /* Checkbox Cells */
            .checkbox-cell {
                min-width: 40px;
            }

            /* Import Section */
            .import-section textarea {
                min-height: 150px;
                font-size: 14px;
            }
        }

        /* Small Mobile (phones in portrait) */
        @media screen and (max-width: 480px) {
            .header h1 {
                font-size: 18px;
            }

            .header {
                padding: 15px;
            }

            .tab {
                font-size: 13px;
                padding: 8px 12px;
                min-width: 80px;
            }

            .stat-card h3 {
                font-size: 24px;
            }

            table {
                font-size: 12px;
            }

            .btn {
                font-size: 15px;
                padding: 12px 16px;
            }
        }

        /* Landscape Mobile */
        @media screen and (max-height: 500px) and (orientation: landscape) {
            .login-container {
                margin: 10px auto;
                padding: 20px;
            }

            .header {
                padding: 10px 20px;
            }
        }

        /* Tablet Optimization */
        @media screen and (min-width: 769px) and (max-width: 1024px) {
            .tabs {
                justify-content: center;
            }

            .stats {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        .modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
        }

        .modal.hidden {
            display: none;
        }

        .modal-content {
            background: white;
            padding: 30px;
            border-radius: 12px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
            max-width: 90%;
            max-height: 90%;
            overflow-y: auto;
        }

        .modal-content h2 {
            margin-top: 0;
        }
        
        /* Audit Log Animations */
        @keyframes pulse {
            0%, 100% {
                box-shadow: 0 2px 4px rgba(240, 147, 251, 0.4);
                transform: scale(1);
            }
            50% {
                box-shadow: 0 4px 12px rgba(240, 147, 251, 0.6);
                transform: scale(1.02);
            }
        }
        
        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateX(-10px);
            }
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }
        
        /* ========================================
           WILDCAT CASH MODE - TAB VISIBILITY
           ======================================== */
        /* Hide raffle tabs when in cash mode */
        body.cash-mode #studentsTab,
        body.cash-mode #ticketsTab,
        body.cash-mode #myActivityTab,
        body.cash-mode #leaderboardTab,
        body.cash-mode #dataTab,
        body.cash-mode #raffleTab,
        body.cash-mode #bigRaffleTab,
        body.cash-mode #auditTab,
        body.cash-mode #teachersTab,
        body.cash-mode #settingsTab {
            display: none !important;
        }

        /* Hide cash tabs when in raffle mode */
        body.raffle-mode #awardCashTabBtn,
        body.raffle-mode #cashActivityTabBtn,
        body.raffle-mode #cashLeaderboardTabBtn,
        body.raffle-mode #rewardsStoreTabBtn,
        body.raffle-mode #studentAccountsTabBtn,
        body.raffle-mode #cashAnalyticsTabBtn,
        body.raffle-mode #cashAuditTabBtn,
        body.raffle-mode #cashSettingsTabBtn {
            display: none !important;
        }
        
        /* Discipline Mode: show only Settings and System tabs */
        body.discipline-mode .tabs {
            display: none !important;
        }
        body.discipline-mode .content > .tab-content {
            display: none !important;
        }
        body.discipline-mode #disciplineContent {
            display: block !important;
        }
        
        /* ============================================
           RAFFLE MODE VISUAL ENHANCEMENTS
           ============================================ */
        
        /* Animated Dashboard Cards */
        .stats-dashboard {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 20px;
            margin-bottom: 30px;
        }
        
        .dashboard-stat-card {
            background: white;
            border-radius: 16px;
            padding: 25px;
            box-shadow: 0 4px 15px rgba(0,0,0,0.08);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        
        .dashboard-stat-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
            transition: height 0.3s ease;
        }
        
        .dashboard-stat-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.15);
        }
        
        .dashboard-stat-card:hover::before {
            height: 6px;
        }
        
        .stat-card-icon {
            font-size: 36px;
            margin-bottom: 10px;
            display: block;
        }
        
        .stat-card-value {
            font-size: 42px;
            font-weight: 700;
            color: #333;
            margin: 10px 0 5px 0;
            font-family: 'Segoe UI', system-ui, sans-serif;
        }
        
        .stat-card-label {
            font-size: 14px;
            color: #666;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-weight: 600;
        }
        
        .stat-card-trend {
            display: inline-block;
            margin-left: 8px;
            font-size: 18px;
            color: #10b981;
        }
        
        /* Animated Counter */
        @keyframes countUp {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .stat-card-value.animated {
            animation: countUp 0.6s ease;
        }
        
        /* Circular Progress Ring */
        .progress-ring-container {
            position: relative;
            display: inline-block;
            width: 120px;
            height: 120px;
        }
        
        .progress-ring {
            transform: rotate(-90deg);
        }
        
        .progress-ring-circle {
            transition: stroke-dashoffset 0.8s ease;
            stroke: #667eea;
            stroke-width: 8;
            fill: none;
        }
        
        .progress-ring-bg {
            stroke: #e5e7eb;
            stroke-width: 8;
            fill: none;
        }
        
        .progress-ring-text {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            font-size: 24px;
            font-weight: 700;
            color: #667eea;
        }
        
        /* Ticket Type Badges */
        .ticket-badge {
            display: inline-block;
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 600;
            margin: 4px;
            transition: all 0.3s ease;
        }
        
        .ticket-badge:hover {
            transform: scale(1.05);
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        }
        
        .ticket-badge.pbis {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }
        
        .ticket-badge.attendance {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            color: white;
        }
        
        .ticket-badge.academic {
            background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
            color: white;
        }
        
        /* Enhanced Buttons */
        .btn-gradient {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 8px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
        }
        
        .btn-gradient:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
        }
        
        .btn-gradient:active {
            transform: translateY(0);
        }
        
        /* Card Animations */
        @keyframes slideInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
        
        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        
        .animate-slide-in {
            animation: slideInUp 0.5s ease;
        }
        
        .animate-fade-in {
            animation: fadeIn 0.5s ease;
        }
        
        /* Confetti Animation - Enhanced */
        @keyframes confetti-fall {
            0% {
                transform: translateY(-100vh) translateX(0) rotate(0deg);
                opacity: 1;
            }
            100% {
                transform: translateY(100vh) translateX(var(--drift, 0)) rotate(var(--rotation, 720deg));
                opacity: 0.3;
            }
        }
        
        /* Pulse Animation for Achievements */
        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }
        
        .pulse-animation {
            animation: pulse 2s infinite;
        }
        
        /* Checkbox selection animation */
        .student-checkbox:checked {
            transform: scale(1.2);
            accent-color: #667eea;
        }
        
        .student-checkbox {
            transition: transform 0.2s ease;
        }
        
        /* Award button glow animation */
        @keyframes button-glow {
            0%, 100% {
                box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
            }
            50% {
                box-shadow: 0 8px 30px rgba(102, 126, 234, 0.8);
            }
        }
        
        .btn-award-glow:hover {
            animation: button-glow 1.5s infinite;
            transform: translateY(-2px);
        }
        
        .btn-award-glow:active {
            transform: scale(0.95);
        }
        
        /* Sortable table styling */
        .sortable-table th {
            transition: background 0.2s ease;
        }
        
        .sortable-table th:hover {
            background: linear-gradient(135deg, #5568d3 0%, #6a3b8a 100%);
        }
        
        .sort-arrow {
            margin-left: 5px;
            opacity: 0.3;
            transition: opacity 0.2s ease;
        }
        
        /* Gradient Text */
        .gradient-text {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            font-weight: 700;
        }
        
        /* Improved Table Styling */
        .enhanced-table {
            width: 100%;
            border-collapse: collapse;
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0,0,0,0.08);
        }
        
        .enhanced-table thead {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }
        
        .enhanced-table th {
            padding: 16px;
            text-align: left;
            font-weight: 600;
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        
        .enhanced-table tbody tr {
            transition: background 0.2s ease;
        }
        
        .enhanced-table tbody tr:nth-child(even) {
            background: #f9fafb;
        }
        
        .enhanced-table tbody tr:hover {
            background: #f3f4f6;
        }
        
        .enhanced-table td {
            padding: 14px 16px;
            border-bottom: 1px solid #e5e7eb;
        }
        
        /* Success Toast */
        @keyframes toast-slide-in {
            from {
                transform: translateX(400px);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }
        
        .success-toast {
            position: fixed;
            top: 20px;
            right: 20px;
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            color: white;
            padding: 16px 24px;
            border-radius: 12px;
            box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
            animation: toast-slide-in 0.5s ease;
            z-index: 10000;
            font-weight: 600;
        }
