/* ===== TEACHERS MANAGEMENT STYLES ===== */
.teachers-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.teachers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Teacher Card - White background with dark text for visibility */
.teacher-card {
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 2px solid #e9d5ff;
}

.teacher-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Card Header with purple gradient and dark text */
.card-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, #6a0da8, #7208a3);
    color: #1e1b4b;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Teacher Avatar */
.teacher-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fbbf24;
    background: white;
}

/* Teacher Information - Dark text on white background */
.teacher-info {
    padding: 1.5rem;
    background: white;
    color: #1e1b4b;
}

.teacher-info h3 {
    color: #1e1b4b;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.teacher-info p {
    color: #4b5563;
    margin-bottom: 0.25rem;
}

/* Subject Tags - Purple shades with dark text */
.subjects-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.subject-tag {
    background: linear-gradient(135deg, #a028d8, #420aa1);
    color: #1e1b4b;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 600;
}

/* Enhanced Teacher Profile */
.teacher-profile-view {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 2px solid #e9d5ff;
}

/* Profile Header - Dark text on whitish background */
.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #fbbf24;
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    padding: 2rem;
    border-radius: 12px;
    margin: -2rem -2rem 2rem -2rem;
}

.profile-header h2 {
    color: #1e1b4b;
    font-weight: 700;
}

.profile-header p {
    color: #4b5563;
}

/* Profile Photo - Dark text on whitish background */
.profile-photo-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid white;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* Profile Photo Icon */
.profile-photo-large i {
    color: #7c3aed;
    font-size: 3rem;
}

/* Workload Grid with purple and gold accents */
.workload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.workload-item {
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #fbbf24;
    color: #1e1b4b;
}

.workload-item h4 {
    color: #1e1b4b;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.workload-item p {
    color: #4b5563;
}

/* Quick Fix for Table Headings */
.table thead {
    background: linear-gradient(135deg, #a919d4, #9b12d1) !important;
}

.table th {
    color: #fbbf24 !important;
    font-weight: 600 !important;
    padding: 12px 16px !important;
}

.table td {
    background: white !important;
    color: #1e1b4b !important;
    padding: 12px 16px !important;
}

.card {
    background: white !important;
    border-radius: 12px !important;
    overflow: hidden !important;
}
/* Compact Teacher Table Styling */
.table thead {
    background: linear-gradient(135deg, #5424a7, #701694) !important;
}

.table th {
    color: #fbbf24 !important;
    font-weight: 600 !important;
    padding: 0.5rem 0.75rem !important;
    text-align: left !important;
    border-bottom: 2px solid #fbbf24 !important;
    font-size: 0.75rem !important; /* Smaller heading font */
    white-space: nowrap !important;
}

.table td {
    padding: 0.5rem 0.75rem !important;
    border-bottom: 1px solid #e2e8f0 !important;
    color: #1e1b4b !important;
    font-size: 0.75rem !important; /* Smaller data font */
    background: white !important;
    vertical-align: middle !important;
}

.table tbody tr {
    transition: all 0.2s ease !important;
}

.table tbody tr:hover {
    background: #f5f3ff !important;
}

/* Compact action buttons */
.action-buttons {
    display: flex !important;
    gap: 0.2rem !important;
}

.action-buttons .btn {
    padding: 0.25rem 0.4rem !important;
    font-size: 0.7rem !important;
    min-width: auto !important;
}

.action-buttons .btn i {
    font-size: 0.7rem !important;
}

/* Compact status badges */
.status-badge {
    padding: 0.2rem 0.5rem !important;
    border-radius: 12px !important;
    font-size: 0.65rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
}

/* Compact table container */
.card {
    background: white !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

/* Compact search box */
.search-box {
    background: white !important;
    border-radius: 8px !important;
    margin-bottom: 0.75rem !important;
    padding: 0.75rem !important;
}

.search-box input {
    font-size: 0.8rem !important;
    padding: 0.5rem 0.75rem !important;
    color: #1e1b4b !important;
}

.search-box i {
    font-size: 0.8rem !important;
    color: #7c3aed !important;
}

/* Compact pagination */
.pagination {
    padding: 0.75rem !important;
}

.pagination .btn {
    padding: 0.3rem 0.6rem !important;
    font-size: 0.75rem !important;
}

.page-info {
    font-size: 0.75rem !important;
    color: #1e1b4b !important;
}

/* Compact table info */
.table-info {
    font-size: 0.75rem !important;
    color: #1e1b4b !important;
}

/* Compact teacher details in table */
.teacher-details {
    font-size: 0.7rem !important;
    color: #4b5563 !important;
}

.teacher-name {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    margin-bottom: 0.1rem !important;
    color: #1e1b4b !important;
}

/* Compact subjects display */
.subjects-list {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0.2rem !important;
    margin-top: 0.2rem !important;
}

.subject-tag {
    padding: 0.15rem 0.4rem !important;
    font-size: 0.65rem !important;
    border-radius: 8px !important;
}

/* Compact checkbox */
.teacher-checkbox {
    transform: scale(0.8) !important;
    margin-right: 0 !important;
}

/* Reduce row height */
.table tbody tr {
    height: 40px !important; /* Reduced from default */
}

/* Compact section headers */
.section-title {
    font-size: 1.1rem !important;
    margin-bottom: 1rem !important;
    color: #1e1b4b !important;
}

.header h2 {
    font-size: 1.3rem !important;
    margin-bottom: 0.25rem !important;
    color: #1e1b4b !important;
}

/* Compact bulk actions */
.bulk-actions {
    padding: 0.5rem !important;
    margin-bottom: 0.75rem !important;
}

.bulk-actions .btn {
    padding: 0.3rem 0.6rem !important;
    font-size: 0.75rem !important;
}

.selected-count {
    font-size: 0.75rem !important;
    color: #1e1b4b !important;
}

/* Compact view toggle */
.view-toggle {
    margin-bottom: 0.75rem !important;
}

.view-toggle .btn {
    padding: 0.4rem 0.8rem !important;
    font-size: 0.8rem !important;
}

/* Make the entire table more compact */
.table-responsive {
    max-height: 600px !important;
    overflow-y: auto !important;
}

/* Compact grid view cards */
.teacher-card {
    padding: 0.75rem !important;
}

.teacher-info {
    padding: 0.75rem !important;
}

.teacher-name {
    font-size: 0.85rem !important;
    margin-bottom: 0.3rem !important;
}

.teacher-details div {
    margin-bottom: 0.1rem !important;
    font-size: 0.75rem !important;
    color: #4b5563 !important;
}

.teacher-photo {
    height: 120px !important; /* Reduced photo height */
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
}

.teacher-photo i {
    font-size: 2rem !important;
    color: #7c3aed !important;
}

/* Compact stats */
.teachers-stats {
    gap: 0.75rem !important;
    margin-bottom: 1rem !important;
}

.stat-card {
    padding: 0.75rem !important;
    background: white !important;
    border-radius: 8px !important;
    border: 2px solid #e9d5ff !important;
}

.stat-value {
    font-size: 1.2rem !important;
    color: #1e1b4b !important;
}

.stat-label {
    font-size: 0.7rem !important;
    color: #4b5563 !important;
}
/* Futuristic Performance Trend & Subject Combination Visuals */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.chart-container {
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    border-radius: 16px;
    padding: 1.5rem;
    border: 2px solid #fbbf24;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.chart-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fbbf24, transparent);
    animation: scanLine 3s ease-in-out infinite;
}

@keyframes scanLine {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.chart-title {
    color: #fbbf24 !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    text-align: center !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

/* AI Insights Cards */
.ai-insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.ai-insight-card {
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    border-radius: 12px;
    padding: 1.25rem;
    border: 2px solid #fbbf24;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ai-insight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.1), transparent);
    transition: left 0.5s ease;
}

.ai-insight-card:hover::before {
    left: 100%;
}

.ai-insight-card:hover {
    transform: translateY(-2px);
    border-color: #f59e0b;
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.2);
}

.insight-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.insight-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e1b4b;
    font-size: 1.1rem;
}

.insight-title {
    color: #1e1b4b !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

.insight-value {
    color: #1e1b4b !important;
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    margin-bottom: 0.25rem !important;
}

.insight-description {
    color: #4b5563 !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

/* Prediction Indicators */
.prediction-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

.prediction-up {
    background: rgba(34, 197, 94, 0.2);
    color: #15803d;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

.prediction-down {
    background: rgba(239, 68, 68, 0.2);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.prediction-stable {
    background: rgba(251, 191, 36, 0.2);
    color: #b45309;
    border: 1px solid rgba(251, 191, 36, 0.4);
}

/* Subject Combination Matrix */
.subject-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.matrix-item {
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    border-radius: 10px;
    padding: 1rem;
    border: 1px solid rgba(251, 191, 36, 0.3);
    text-align: center;
    transition: all 0.3s ease;
}

.matrix-item:hover {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    border-color: #fbbf24;
    transform: scale(1.05);
}

.matrix-subject {
    color: #1e1b4b !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.5rem !important;
}

.matrix-score {
    color: #1e1b4b !important;
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    margin-bottom: 0.25rem !important;
}

.matrix-trend {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: #7c3aed !important;
}

/* Performance Metrics */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.metric-card {
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.metric-value {
    color: #1e1b4b !important;
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    margin-bottom: 0.25rem !important;
}

.metric-label {
    color: #7c3aed !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Loading Animation for AI Processing */
.ai-processing {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #7c3aed;
}

.ai-loader {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(251, 191, 36, 0.3);
    border-top: 3px solid #fbbf24;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .ai-insights-grid {
        grid-template-columns: 1fr;
    }
    
    .subject-matrix {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* ===== UPDATED TEACHER PROFILE CARDS WITH PURPLE AND GOLD COLOR SCHEME ===== */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

.chart-container {
    background: linear-gradient(135deg, #7c3aed, #5b21b6);
    border-radius: 16px;
    padding: 1.5rem;
    border: 2px solid #fbbf24;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}

.chart-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #fbbf24, transparent);
    animation: scanLine 3s ease-in-out infinite;
}

@keyframes scanLine {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

/* AI Insights Cards */
.ai-insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.ai-insight-card {
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    border-radius: 12px;
    padding: 1.25rem;
    border: 2px solid #fbbf24;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.ai-insight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.2), transparent);
    transition: left 0.5s ease;
}

.ai-insight-card:hover::before {
    left: 100%;
}

.ai-insight-card:hover {
    transform: translateY(-3px);
    border-color: #f59e0b;
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.3);
}

.insight-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.insight-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1e1b4b;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
}

.insight-title {
    color: #1e1b4b !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

.insight-value {
    color: #1e1b4b !important;
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    margin-bottom: 0.25rem !important;
}

.insight-description {
    color: #4b5563 !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

/* Prediction Indicators */
.prediction-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 0.5rem;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(251, 191, 36, 0.5);
}

.prediction-up {
    color: #15803d;
    border-color: rgba(34, 197, 94, 0.4);
}

.prediction-down {
    color: #b91c1c;
    border-color: rgba(239, 68, 68, 0.4);
}

.prediction-stable {
    color: #b45309;
    border-color: rgba(251, 191, 36, 0.4);
}

/* Subject Combination Matrix */
.subject-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.matrix-item {
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    border-radius: 10px;
    padding: 1rem;
    border: 1px solid rgba(251, 191, 36, 0.3);
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.matrix-item:hover {
    background: linear-gradient(135deg, #ede9fe, #ddd6fe);
    border-color: #fbbf24;
    transform: scale(1.05);
    box-shadow: 0 4px 20px rgba(251, 191, 36, 0.3);
}

.matrix-subject {
    color: #1e1b4b !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    margin-bottom: 0.5rem !important;
}

.matrix-score {
    color: #1e1b4b !important;
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    margin-bottom: 0.25rem !important;
}

.matrix-trend {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    color: oklab(60.134% 0.21087 -0.19374 / 0.877) !important;
}

/* Performance Metrics */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.metric-card {
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
    border: 1px solid rgba(251, 191, 36, 0.3);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.metric-value {
    color: #1e1b4b !important;
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    margin-bottom: 0.25rem !important;
}

.metric-label {
    color: #a822d1 !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Update chart text colors for better contrast */
.chart-title {
    color: #fbbf24 !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin-bottom: 1rem !important;
    text-align: center !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

/* Update the profile stats to match */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.profile-stat {
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    border: 2px solid #fbbf24;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.stat-number {
    color: #1e1b4b !important;
    font-size: 2rem !important;
    font-weight: 800 !important;
    margin-bottom: 0.5rem !important;
}

.stat-description {
    color: #7c3aed !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* Update tab styling to match */
.profile-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.profile-tab {
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    border: 2px solid #fbbf24;
    color: #1e1b4b;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.profile-tab.active,
.profile-tab:hover {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #1e1b4b;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.4);
}
/* Add this to your CSS file */
.modal-header {
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    color: #1e1b4b !important;
    border-bottom: 2px solid #7c3aed !important;
}

.modal-header h3 {
    color: #1e1b4b !important;
    font-weight: 700 !important;
}

.modal-header .close {
    color: #1e1b4b !important;
    text-shadow: 0 1px 0 rgba(0,0,0,0.2) !important;
}

.modal-header .close:hover {
    color: #7c3aed !important;
    background: rgba(0, 0, 0, 0.1) !important;
}

.form-actions {
    background: linear-gradient(135deg, #f5f3ff, #ede9fe) !important;
    border-top: 2px solid #fbbf24 !important;
    padding: 1rem !important;
}

.form-actions .btn {
    border: 2px solid #7c3aed !important;
    font-weight: 600 !important;
}

.form-actions .btn-warning {
    background: #7c3aed !important;
    color: #fbbf24 !important;
}

.form-actions .btn-primary {
    background: #1e1b4b !important;
    color: #fbbf24 !important;
}

.form-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
/* ===== LEGIBILITY FIXES FOR TEACHER STATS ===== */
.teachers-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.teachers-stats .stat-card {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 16px;
    padding: 1.8rem 1.5rem;
    text-align: center;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
    border: 2px solid rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.teachers-stats .stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.4);
    border-color: #ffd700;
}

.teachers-stats .stat-value {
    font-size: 3.2rem;
    font-weight: 800;
    color: #ffd700;
    margin-bottom: 0.5rem;
    line-height: 1;
    text-shadow: 0 2px 10px rgba(255, 215, 0, 0.4);
}

.teachers-stats .stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.95;
}

/* Responsive */
@media (max-width: 768px) {
    .teachers-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .teachers-stats {
        grid-template-columns: 1fr;
    }
}
/* ===== LEGIBILITY FIXES FOR TEACHER STATS - HIGH CONTRAST ===== */
.teachers-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.teachers-stats .stat-card {
    background: linear-gradient(135deg, #1e3a8a, #1e40af); /* Dark blue */
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border: 2px solid #ffd700; /* Gold border */
}

.teachers-stats .stat-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffd700 !important; /* Bright gold */
    margin-bottom: 0.5rem;
    line-height: 1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.teachers-stats .stat-label {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff !important; /* Pure white */
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .teachers-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .teachers-stats {
        grid-template-columns: 1fr;
    }
}