/* ============================================
   STUDENT MANAGEMENT - MODERN REDESIGN
   ============================================ */

/* Enhanced Stat Cards */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Ensure all stat cards are immediately visible - no animations */
.stats-section .stat-card,
.stats-section .stat-card * {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* Force stat card numbers to be visible */
.stats-section .stat-card .stat-info h3 {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    color: #1e293b !important; /* Dark color for maximum visibility on white background */
    font-size: 36px !important;
    font-weight: 800 !important;
}

.stats-section .stat-card .stat-info p {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    color: #475569 !important; /* Dark gray for good contrast on white background */
    font-size: 15px !important;
    font-weight: 600 !important;
}

.stat-card {
    /* Solid background for better visibility - no gradients */
    background: #ffffff !important;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    /* Reduced shadow for cleaner look */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    border: 2px solid #e2e8f0 !important;
    /* Removed all transitions and animations for perfect visibility */
    position: relative;
    overflow: visible;
    opacity: 1 !important;
    visibility: visible !important;
}

.stat-card::before {
    display: none !important; /* Completely remove decorative element */
}

.stat-card:hover {
    /* No hover effects - cards stay exactly the same */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    transform: none !important;
}

.stat-card:hover::before {
    display: none !important;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    /* Solid background colors for better visibility */
    opacity: 1 !important;
    visibility: visible !important;
    box-shadow: none !important; /* Remove icon shadow effects */
}

.stat-card.total .stat-icon {
    background: #667eea !important; /* Solid color - no gradient */
    color: white !important;
    box-shadow: none !important; /* Remove shadow effects */
}

.stat-card.available .stat-icon {
    background: #10b981 !important; /* Solid color - no gradient */
    color: white !important;
    box-shadow: none !important; /* Remove shadow effects */
}

.stat-card.occupied .stat-icon {
    background: #3b82f6 !important; /* Solid color - no gradient */
    color: white !important;
    box-shadow: none !important; /* Remove shadow effects */
}

.stat-card.warning .stat-icon {
    background: #f59e0b !important; /* Solid color - no gradient */
    color: white !important;
    box-shadow: none !important; /* Remove shadow effects */
}

.stat-info {
    flex: 1;
    position: relative;
    z-index: 1;
}

.stat-info h3 {
    font-size: 36px; /* Larger font for better visibility */
    font-weight: 800; /* Bolder for better visibility */
    color: #1e293b !important; /* Dark color for maximum contrast on white background */
    margin: 0 0 4px 0;
    line-height: 1;
    opacity: 1 !important;
    visibility: visible !important;
    text-shadow: none !important; /* Remove text shadow for cleaner look */
    letter-spacing: -0.5px; /* Tighter spacing for better readability */
}

.stat-info p {
    font-size: 15px; /* Slightly larger for better visibility */
    color: #475569 !important; /* Dark gray for good contrast on white background */
    margin: 0;
    font-weight: 600; /* Bolder for better visibility */
    opacity: 1 !important;
    visibility: visible !important;
    text-shadow: none !important; /* Remove text shadow for cleaner look */
}

/* Actions Section - Align buttons to the right */
.actions-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #fafbff 100%);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.actions-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.actions-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto; /* Push to the right */
}

/* Enhanced Filters Section */
.filters-section {
    margin-bottom: 30px;
}

.filters-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafbff 100%);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
    font-size: 14px;
}

.filter-group label i {
    color: var(--primary);
}

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

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #e2e8f0;
    background: #fff;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
    /* Removed transition for instant visibility */
    position: relative;
    overflow: visible;
}

.filter-btn::before {
    display: none; /* Disabled animation effect */
}

.filter-btn:hover {
    border-color: var(--primary);
    background: rgba(102, 126, 234, 0.05);
    /* Removed transform animation */
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.filter-btn:hover::before {
    display: none; /* Disabled animation effect */
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    /* Removed transform animation */
}

.filter-btn.active::before {
    display: none;
}

.search-group {
    margin-top: 20px;
}

.search-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 12px;
    font-size: 14px;
}

.search-group label i {
    color: var(--primary);
}

.search-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fff;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    background: #fff;
}

/* Enhanced Students Section */
.students-section {
    background: linear-gradient(135deg, #ffffff 0%, #fafbff 100%);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.1);
    margin-top: 30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1f5f9;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-header h2 i {
    color: var(--primary);
    font-size: 22px;
}

.section-actions {
    display: flex;
    gap: 12px;
}

/* Enhanced Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    /* Removed transition for instant visibility */
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    font-family: 'Poppins', sans-serif;
}

.btn-primary:hover {
    /* Removed transform animation */
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    /* Removed transform animation - no changes on active */
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    /* Removed transition for instant visibility */
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.3);
    font-family: 'Poppins', sans-serif;
}

.btn-secondary:hover {
    /* Removed transform animation */
    box-shadow: 0 6px 20px rgba(100, 116, 139, 0.4);
}

.btn-refresh {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    /* Removed transition for instant visibility */
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    font-family: 'Poppins', sans-serif;
}

.btn-refresh:hover {
    /* Removed transform animation */
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-refresh i.fa-spin {
    animation: spin 1s linear infinite;
}

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

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    font-family: 'Poppins', sans-serif;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

/* Enhanced Table */
.table-container {
    overflow-x: auto;
    margin-top: 20px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.students-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.students-table thead {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
}

.students-table th {
    padding: 18px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.students-table tbody tr {
    border-bottom: 1px solid #f1f5f9;
    /* Removed transition for instant visibility */
}

.students-table tbody tr:hover {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
    /* Removed transform animation */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.students-table tbody tr:last-child {
    border-bottom: none;
}

.students-table td {
    padding: 18px 16px;
    font-size: 14px;
    color: var(--text);
    vertical-align: middle;
}

/* Student Photo */
.student-photo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    /* Removed transition for instant visibility */
}

.students-table tbody tr:hover .student-photo {
    border-color: var(--primary);
    /* Removed transform animation */
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Ensure preview images inserted into #photoPreview are visible and constrained */
#photoPreview img,
.photo-preview img {
    max-width: 200px !important;
    width: auto !important;
    height: auto !important;
    display: block !important;
    border-radius: 8px !important;
    margin-top: 10px !important;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.status-badge.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.status-badge.inactive,
.status-badge.pending {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    /* Removed pulse animation for perfect visibility */
    opacity: 1 !important;
}

.status-badge.expired {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.status-badge.suspended {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
    color: white;
}

.status-badge i {
    font-size: 11px;
}

/* Plan Badges */
.plan-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: capitalize;
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

/* Seat Badges */
.seat-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.btn-icon-small {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Removed transition for instant visibility */
    font-size: 14px;
    color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-icon-small:hover {
    /* Removed transform animation */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.btn-icon-small.approve {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.btn-icon-small.payment {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.btn-icon-small.edit {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.btn-icon-small.delete {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.btn-icon-small.edit-seat {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

.assign-seat-btn {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
}

.assign-seat-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Pagination */
.pagination {
    display: flex;
        justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid #f1f5f9;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 2px solid #e2e8f0;
    background: #fff;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--primary);
    background: rgba(102, 126, 234, 0.05);
    transform: translateY(-2px);
}

.page-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Enhanced Modals */
.modal {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
        z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    /* Removed opacity transition for instant visibility */
        opacity: 1;
    /* Ensure no inherited blur on WebKit browsers (Safari/iOS) */
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.modal.show {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* backdrop-filter: blur(4px); - Removed blur effect */
    z-index: 1001;
    /* Overlay captures clicks to close modal */
    pointer-events: auto;
}

.modal-content {
    position: relative;
        z-index: 10000 !important;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 90%;
    max-height: 90vh;
    /* Removed modalSlideIn animation for instant visibility */
    /* Ensure modal content is above overlay and interactive */
    pointer-events: auto !important;
    /* Ensure modal content is not blurred */
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    flex-direction: column !important;
}

.modal-body {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    flex: 1 !important;
    min-height: 0 !important;
    -webkit-overflow-scrolling: touch !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

#studentDetailsModal .modal-body {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    max-height: calc(90vh - 140px) !important;
    -webkit-overflow-scrolling: touch !important;
}

#studentDetailsModal .modal-content {
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

#studentDetailsModal #studentDetailsBody {
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.modal-content input,
.modal-content select,
.modal-content textarea,
.modal-content button {
    pointer-events: auto !important;
    opacity: 1 !important;
    cursor: text !important;
}

.modal-content select {
    cursor: pointer !important;
}

.modal-content button {
    cursor: pointer !important;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-large {
    width: 900px;
}

.modal-medium {
    width: 600px;
}

.modal-header {
    padding: 24px 30px;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #fafbff 0%, #ffffff 100%);
    border-radius: 20px 20px 0 0;
}

.modal-header h3 {
    font-size: 22px;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-header h3 i {
    color: var(--primary);
}

.modal-close {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    background: #f1f5f9;
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 18px;
}

.modal-close:hover {
    background: #ef4444;
    color: white;
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    filter: none !important;
    backdrop-filter: none !important;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 2px solid #f1f5f9;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background: #fafbff;
    border-radius: 0 0 20px 20px;
}

/* Form Styles */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.form-section {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.form-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-section h4 i {
    color: var(--primary);
}

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

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #64748b;
}

.empty-state i {
    font-size: 64px;
    color: #cbd5e1;
    margin-bottom: 16px;
}

.empty-state p {
    font-size: 16px;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .stat-info h3 {
        font-size: 24px;
    }
    
    .filter-buttons {
        gap: 8px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .section-actions {
        width: 100%;
    }
    
    .section-actions button {
        flex: 1;
    }
    
    .table-container {
        overflow-x: scroll;
    }
    
    .students-table {
        min-width: 800px;
    }
    
    .modal-content {
        max-width: 95%;
        margin: 10px;
    }
    
    .modal-large,
    .modal-medium {
        width: 100%;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* Student ID Card Modal Styles */
#studentIDCardModal {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 10002 !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(0, 0, 0, 0.8) !important;
    /* backdrop-filter: blur(4px); - Removed to fix blurry view */
}

#studentIDCardModal[style*="display: flex"] {
    display: flex !important;
}

#studentIDCardModal .modal-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 10003 !important;
    background: transparent !important;
    cursor: pointer;
}

#studentIDCardModal .modal-content {
    position: relative !important;
    z-index: 10004 !important;
    max-width: 400px !important;
    background: transparent !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

#studentIDCardContainer {
    background: transparent !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid var(--primary);
        z-index: 9998;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Success/Error Messages */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 2000;
    animation: slideInRight 0.3s ease;
    max-width: 400px;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.notification.error {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.notification.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
}
