
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Poppins', sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            min-height: 100vh;
            color: #2d3748;
        }

        /* Login Page Styles */
        .login-container {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            padding: 20px;
        }

        .login-box {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            padding: 50px 40px;
            border-radius: 20px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            width: 100%;
            max-width: 450px;
            animation: slideUp 0.5s ease;
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .login-box h2 {
            text-align: center;
            color: #667eea;
            margin-bottom: 10px;
            font-size: 32px;
            font-weight: 700;
        }

        .login-box p {
            text-align: center;
            color: #718096;
            margin-bottom: 35px;
            font-size: 14px;
        }

        .form-group {
            margin-bottom: 25px;
            position: relative;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: 500;
            color: #4a5568;
            font-size: 14px;
        }

        .form-group input,
        .form-group select,
        .form-group textarea {
            width: 100%;
            padding: 14px 16px;
            border: 2px solid #e2e8f0;
            border-radius: 12px;
            font-size: 15px;
            font-family: 'Poppins', sans-serif;
            transition: all 0.3s ease;
            background: white;
        }

        .form-group input:focus,
        .form-group select:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        .btn {
            width: 100%;
            padding: 14px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: 'Poppins', sans-serif;
            box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
        }

        .btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
        }

        .btn:active {
            transform: translateY(0);
        }

        .btn-secondary {
            background: linear-gradient(135deg, #64748b 0%, #475569 100%);
            box-shadow: 0 4px 15px rgba(100, 116, 139, 0.4);
        }

        .btn-secondary:hover {
            box-shadow: 0 6px 20px rgba(100, 116, 139, 0.5);
        }

        .btn-danger {
            background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
            box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
        }

        .btn-danger:hover {
            box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
        }

        .btn-success {
            background: linear-gradient(135deg, #10b981 0%, #059669 100%);
            box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
        }

        .btn-success:hover {
            box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
        }

        .btn-warning {
            background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
            box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
        }

        .btn-warning:hover {
            box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
        }

        .btn-small {
            width: auto;
            padding: 10px 20px;
            font-size: 14px;
            display: inline-block;
            margin-right: 10px;
            margin-bottom: 10px;
        }

        /* Dashboard Layout */
        .dashboard {
            display: none;
        }

        .dashboard.active {
            display: flex;
            min-height: 100vh;
            flex-direction: column;
        }

        .sidebar {
            width: 280px;
            background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
            color: white;
            padding: 0;
            position: fixed;
            height: 100vh;
            overflow-y: auto;
            box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
            z-index: 1000;
        }

        .sidebar-header {
            padding: 30px 25px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            background: rgba(102, 126, 234, 0.1);
        }

        .sidebar-header h3 {
            font-size: 20px;
            margin-bottom: 5px;
            font-weight: 600;
        }

        .sidebar-header p {
            font-size: 13px;
            color: #94a3b8;
        }

        .sidebar-menu {
            list-style: none;
            padding: 20px 0;
        }

        .sidebar-menu li {
            padding: 16px 25px;
            cursor: pointer;
            transition: all 0.3s ease;
            border-left: 4px solid transparent;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .sidebar-menu li:before {
            content: '●';
            font-size: 10px;
            color: #667eea;
        }

        .sidebar-menu li:hover {
            background: rgba(102, 126, 234, 0.1);
            padding-left: 30px;
        }

        .sidebar-menu li.active {
            background: rgba(102, 126, 234, 0.2);
            border-left-color: #667eea;
            padding-left: 30px;
        }

        .main-content {
            margin-left: 280px;
            padding: 30px;
            flex: 1;
            background: #f1f5f9;
            min-height: 100vh;
        }

        .top-bar {
            background: white;
            padding: 25px 30px;
            border-radius: 16px;
            margin-bottom: 30px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        }

        .top-bar h2 {
            color: #1e293b;
            font-size: 28px;
            font-weight: 600;
        }

        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 25px;
            margin-bottom: 30px;
        }

        .stat-card {
            background: white;
            padding: 30px;
            border-radius: 16px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
            position: relative;
            overflow: hidden;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .stat-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        }

        .stat-card:before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
        }

        .stat-card.blue:before {
            background: linear-gradient(90deg, #3b82f6, #2563eb);
        }

        .stat-card.green:before {
            background: linear-gradient(90deg, #10b981, #059669);
        }

        .stat-card.orange:before {
            background: linear-gradient(90deg, #f59e0b, #d97706);
        }

        .stat-card.red:before {
            background: linear-gradient(90deg, #ef4444, #dc2626);
        }

        .stat-card h3 {
            font-size: 14px;
            color: #64748b;
            margin-bottom: 12px;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .stat-card .value {
            font-size: 36px;
            font-weight: 700;
            color: #1e293b;
        }

        .content-section {
            display: none;
        }

        .content-section.active {
            display: block;
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        .card {
            background: white;
            padding: 30px;
            border-radius: 16px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
            margin-bottom: 25px;
        }

        .card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            padding-bottom: 20px;
            border-bottom: 2px solid #f1f5f9;
        }

        .card-header h3 {
            color: #1e293b;
            font-size: 22px;
            font-weight: 600;
        }

        .search-filter {
            display: flex;
            gap: 15px;
            margin-bottom: 25px;
            flex-wrap: wrap;
            
        }

        .search-filter input,
        .search-filter select {
            flex: 1;
            min-width: 200px;
            min-height: 40px;
            transition: all 0.3s ease;
            border-radius: 5px;
            font-family: 'Poppins', sans-serif;
        }

        /* Payment Form Styles */
        .payment-form-container {
            background: white;
            border-radius: 16px;
            padding: 30px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        }

        .payment-form-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 25px;
            padding-bottom: 20px;
            border-bottom: 2px solid #f1f5f9;
        }

        .payment-row {
            display: grid;
            grid-template-columns: 50px 1fr 150px 150px 120px 80px;
            gap: 15px;
            padding: 15px;
            background: #f8fafc;
            border-radius: 12px;
            margin-bottom: 15px;
            align-items: center;
            transition: all 0.3s ease;
        }

        .payment-row:hover {
            background: #f1f5f9;
            transform: translateX(5px);
        }

        .payment-row.paid {
            background: #d1fae5;
            border-left: 4px solid #10b981;
        }

        .payment-row.pending {
            background: #fef3c7;
            border-left: 4px solid #f59e0b;
        }

        .payment-row-number {
            font-weight: 700;
            color: #667eea;
            font-size: 18px;
            text-align: center;
        }

        .payment-row input,
        .payment-row select {
            padding: 10px 12px;
            border: 2px solid #e2e8f0;
            border-radius: 8px;
            font-size: 14px;
            font-family: 'Poppins', sans-serif;
        }

        .payment-row input:focus,
        .payment-row select:focus {
            outline: none;
            border-color: #667eea;
        }

        .payment-row input:disabled {
            background: #f1f5f9;
            cursor: not-allowed;
        }

        .payment-status {
            display: inline-block;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            text-align: center;
        }

        .payment-status.paid {
            background: #d1fae5;
            color: #065f46;
        }

        .payment-status.pending {
            background: #fef3c7;
            color: #92400e;
        }

        /* Card Grid for Students, Users, etc */
        .card-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 25px;
            margin-top: 25px;
        }

        .data-card {
            background: white;
            border-radius: 16px;
            padding: 25px;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
            transition: all 0.3s ease;
            border: 2px solid transparent;
        }

        .data-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
            border-color: #667eea;
        }

        .data-card-avatar {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 24px;
            font-weight: 600;
            margin-bottom: 15px;
        }

        .data-card h4 {
            font-size: 18px;
            color: #1e293b;
            margin-bottom: 5px;
            font-weight: 600;
        }

        .data-card-info {
            margin-bottom: 20px;
        }

        .data-card-info p {
            color: #64748b;
            font-size: 14px;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .data-card-info p strong {
            color: #1e293b;
            min-width: 80px;
        }

        .data-card-actions {
            display: flow;
            gap: 10px;
            padding-top: 15px;
            border-top: 1px solid #f1f5f9;
        }

        .data-card-actions button {
            flex: 1;
        }

        /* Modal Styles */
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(5px);
            z-index: 2000;
            overflow-y: auto;
            padding: 20px;
        }

        .modal.active {
            display: flex;
            align-items: center;
            justify-content: center;
            animation: fadeIn 0.3s ease;
        }

        .modal-content {
            background: white;
            padding: 40px;
            border-radius: 20px;
            max-width: 600px;
            width: 100%;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            animation: slideUp 0.3s ease;
        }

        .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            padding-bottom: 20px;
            border-bottom: 2px solid #f1f5f9;
        }

        .modal-header h3 {
            color: #1e293b;
            font-size: 24px;
            font-weight: 600;
        }

        .close-btn {
            cursor: pointer;
            font-size: 28px;
            color: #64748b;
            background: none;
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .close-btn:hover {
            background: #f1f5f9;
            color: #1e293b;
        }

        .form-row {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 20px;
        }

        .alert {
            padding: 16px 20px;
            border-radius: 12px;
            margin-bottom: 20px;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .alert-success {
            background: #d1fae5;
            color: #065f46;
            border: 1px solid #10b981;
        }

        .alert-error {
            background: #fee2e2;
            color: #991b1b;
            border: 1px solid #ef4444;
        }

        .badge {
            display: inline-block;
            padding: 6px 12px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            margin: 2px;
        }

        .badge-success {
            background: #d1fae5;
            color: #065f46;
        }

        .badge-warning {
            background: #fef3c7;
            color: #92400e;
        }

        .badge-danger {
            background: #fee2e2;
            color: #991b1b;
        }

        .badge-info {
            background: #dbeafe;
            color: #1e40af;
        }

        .hidden {
            display: none;
        }

        /* Payment History Table Styles */
        .empty-state {
            text-align: center;
            padding: 40px 20px;
            color: #64748b;
        }

        .empty-state p {
            font-size: 16px;
        }

        table {
            width: 100%;
            border-collapse: collapse;
        }

        table thead tr {
            background: #f8fafc;
            border-bottom: 2px solid #e2e8f0;
        }

        table th {
            padding: 15px;
            font-weight: 600;
            color: #1e293b;
            font-size: 14px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        table tbody tr {
            border-bottom: 1px solid #f1f5f9;
            transition: background 0.2s ease;
        }

        table tbody tr:hover {
            background: #f8fafc;
        }

        table td {
            padding: 15px;
            color: #475569;
        }

        /* Mobile Responsive */
        @media (max-width: 1024px) {
            .sidebar {
                width: 240px;
            }

            .main-content {
                margin-left: 240px;
            }

            .payment-row {
                grid-template-columns: 40px 1fr 120px 120px 100px 70px;
                gap: 10px;
                padding: 12px;
            }
        }

        @media (max-width: 768px) {
            .sidebar {
                width: 100%;
                height: auto;
                position: relative;
            }

            .main-content {
                margin-left: 0;
                padding: 20px;
            }

            .stats-grid {
                grid-template-columns: 1fr;
            }

            .card-grid {
                grid-template-columns: 1fr;
            }

            .search-filter {
                flex-direction: column;
            }

            .search-filter input,
            .search-filter select {
                width: 100%;
            }

            .top-bar {
                flex-direction: column;
                gap: 15px;
                text-align: center;
            }

            .top-bar h2 {
                font-size: 22px;
            }

            .modal-content {
                padding: 25px;
            }

            .form-row {
                grid-template-columns: 1fr;
            }

            .btn-small {
                width: 100%;
                margin-right: 0;
            }

            /* Mobile-optimized payment form */
            .payment-row {
                grid-template-columns: 1fr;
                gap: 10px;
                padding: 15px;
            }

            .payment-row-number {
                position: absolute;
                top: 10px;
                left: 10px;
                background: #667eea;
                color: white;
                width: 30px;
                height: 30px;
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: 14px;
            }

            .payment-row {
                position: relative;
                padding-left: 50px;
            }

            .payment-form-container {
                padding: 20px;
            }
        }

        /* Scrollbar Styling */
        ::-webkit-scrollbar {
            width: 8px;
            height: 8px;
        }

        ::-webkit-scrollbar-track {
            background: #f1f5f9;
        }

        ::-webkit-scrollbar-thumb {
            background: #cbd5e1;
            border-radius: 4px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: #94a3b8;
        }

        .currency-symbol {
            font-weight: 600;
            color: #667eea;
        }

        .school-info-display {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            padding: 20px;
            border-radius: 12px;
            margin-bottom: 20px;
        }

        .school-info-display h3 {
            margin-bottom: 10px;
        }

        .school-info-display p {
            margin: 5px 0;
            opacity: 0.9;
        }

        /* Filter Section Styles */
        .search-filter {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
            align-items: flex-end;
            margin-bottom: 15px;
            padding: 15px;
            background: #f8fafc;
            border-radius: 10px;
        }

        .filter-group {
            flex: 1;
            min-width: 200px;
        }

        .filter-group label {
            display: block;
            margin-bottom: 5px;
            font-weight: 500;
            color: #333;
            font-size: 14px;
        }

        .filter-group select,
        .filter-group input[type="text"] {
            width: 100%;
            padding: 10px 12px;
            border: 2px solid #e2e8f0;
            border-radius: 8px;
            font-size: 14px;
            font-family: 'Poppins', sans-serif;
            transition: all 0.3s ease;
            background: white;
        }

        .filter-group select:focus,
        .filter-group input[type="text"]:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        .filter-results {
            padding: 10px 15px;
            background: #f1f5f9;
            border-radius: 8px;
            margin-bottom: 20px;
        }

        .result-count {
            color: #64748b;
            font-size: 14px;
            font-weight: 500;
        }

        .result-count strong {
            color: #667eea;
            font-weight: 600;
        }

        /* Responsive Filter Design */
        @media (max-width: 768px) {
            .search-filter {
                flex-direction: column;
            }
            
            .filter-group {
                width: 100%;
                min-width: 100%;
            }

            .filter-group button {
                width: 100%;
                margin-top: 5px;
            }
        }

        /* ====================================
           STUDENT ACCESS CONTROL STYLES
           ==================================== */

        /* Status Badges */
        .status-badge {
            display: inline-block;
            padding: 5px 12px;
            border-radius: 15px;
            font-size: 11px;
            font-weight: 600;
            margin-bottom: 10px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .status-active {
            background: #d1fae5;
            color: #065f46;
            border: 1px solid #10b981;
        }

        .status-blocked {
            background: #fee2e2;
            color: #991b1b;
            border: 1px solid #ef4444;
        }

        /* Block Reason Display */
        .block-reason-display {
            background: #fef3c7;
            border-left: 4px solid #f59e0b;
            padding: 10px;
            margin: 10px 0;
            font-size: 13px;
            border-radius: 4px;
            color: #92400e;
        }

        .block-reason-display strong {
            color: #78350f;
        }

        /* Block Alert Overlay */
        .block-alert-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.85);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            animation: fadeIn 0.3s ease;
        }

        .block-alert-box {
            background: white;
            border-radius: 20px;
            padding: 40px;
            max-width: 550px;
            width: 90%;
            box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
            animation: slideUp 0.3s ease;
        }

        .block-alert-icon {
            font-size: 72px;
            text-align: center;
            margin-bottom: 20px;
            animation: pulse 2s infinite;
        }

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

        .block-alert-box h2 {
            color: #dc2626;
            text-align: center;
            margin-bottom: 20px;
            font-size: 28px;
        }

        .block-alert-reason {
            background: #fee2e2;
            border-left: 5px solid #dc2626;
            padding: 20px;
            margin: 20px 0;
            border-radius: 8px;
            font-size: 16px;
            line-height: 1.6;
            color: #991b1b;
            font-weight: 500;
        }

        .block-alert-info {
            background: #f3f4f6;
            padding: 20px;
            border-radius: 10px;
            margin: 20px 0;
        }

        .block-alert-info h4 {
            margin-bottom: 12px;
            color: #374151;
            font-size: 16px;
        }

        .block-alert-info ul {
            margin: 10px 0;
            padding-left: 25px;
        }

        .block-alert-info li {
            margin: 8px 0;
            color: #6b7280;
            line-height: 1.5;
        }

        .block-alert-contact {
            margin-top: 15px;
            padding-top: 15px;
            border-top: 2px solid #d1d5db;
            color: #667eea;
            font-size: 14px;
            font-weight: 600;
        }

        .block-alert-box .btn {
            margin-top: 20px;
        }

        /* Modal Body Styles */
        .modal-body {
            padding: 20px 0;
        }

        .modal-actions {
            display: flex;
            gap: 10px;
            margin-top: 20px;
            justify-content: flex-end;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .block-alert-box {
                padding: 30px 20px;
                max-width: 95%;
            }

            .block-alert-icon {
                font-size: 56px;
            }

            .block-alert-box h2 {
                font-size: 22px;
            }

            .block-alert-reason {
                font-size: 14px;
                padding: 15px;
            }
        }


        /* Password Input Wrapper */
        .password-input-wrapper {
            position: relative;
            display: flex;
            align-items: center;
        }

        .password-input-wrapper input {
            width: 100%;
            padding-right: 45px;
        }

        .password-toggle {
            position: absolute;
            right: 12px;
            cursor: pointer;
            color: #667eea;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 5px;
            transition: all 0.3s ease;
        }

        .password-toggle:hover {
            color: #764ba2;
            transform: scale(1.1);
        }

        .password-toggle svg {
            width: 20px;
            height: 20px;
        }
