

* { margin:0; padding:0; box-sizing:border-box; }
:root{
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #141a20;
    --accent: #06d6a0;
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #10b981;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #03295a;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
}
html, body {
  width: 100%;
  height: 100%;
  margin: 0;
  background: linear-gradient(180deg, #2563eb, #1e40af);
  padding: 0;
}

.app-layout {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.sidebar {
  width: 450px;
  min-width: 450px;
  max-width: 450px;
  height: 100vh;
  background: linear-gradient(180deg, #2563eb, #1e40af);
  flex-shrink: 0;
}

.main-content {
  flex: 1;
  height: 100vh;
  overflow-y: auto;
  background: #0f172a;
}

/* Layout */
.container {
  max-width: 85% !important;
  margin-left: 15 !important;
  margin-right: 10 !important;
}

.logo{ text-align:center; margin-bottom:2rem;}
.logo h1 { color:var(--primary); font-size:1.5rem; font-weight:bold; }
.nav-menu { list-style:none; }
.nav-item { margin-bottom:.5rem; }
.nav-link {
    display:flex; align-items:center;
    padding:.75rem 1rem;
    color:var(--text); text-decoration:none;
    border-radius:8px; transition:all .2s ease; cursor:pointer;
}
.nav-link:hover, .nav-link.active { background:var(--primary); color:white; transform:translateX(4px); }
.nav-link i { margin-right:.75rem; width:20px; }

.main-content { flex:1; padding:2rem; overflow-y:auto; }
.header {
    background: rgba(218, 7, 7, 0.95);
    backdrop-filter: blur(10px);
    padding:1rem 2rem; border-radius:12px; margin-bottom:2rem; box-shadow:var(--shadow);
    display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap;
}
.header-left { flex:1; }
.header-right { display:flex; align-items:center; gap:1rem; }

.ai-status {
    background: linear-gradient(45deg,var(--accent),#38bdf8);
    color:white; padding:.5rem 1rem; border-radius:20px; font-size:.875rem; font-weight:500;
    display:flex; align-items:center; gap:.5rem;
}
.ai-status i { animation:spin 2s linear infinite; }
@keyframes spin{ from{transform:rotate(0deg);} to{transform:rotate(360deg);} }

.voice-btn { background:var(--accent); color:white; border:none; padding:.75rem; border-radius:50%; cursor:pointer; font-size:1.2rem; }
.user-info { display:flex; align-items:center; gap:.5rem; padding:.5rem 1rem; background:var(--secondary); border-radius:8px; }

.section {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius:12px; padding:2rem; margin-bottom:2rem; box-shadow:var(--shadow);
    display:none;
}
.section.active { display:block; }
.section-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:2rem; border-bottom:2px solid var(--border); padding-bottom:1rem; }
.section-title { font-size:1.8rem; font-weight:bold; color:var(--primary); }

.btn { padding:.75rem 1.5rem; border:none; border-radius:8px; cursor:pointer; font-weight:500; display:inline-flex; align-items:center; gap:.5rem; }
.btn-primary { background:var(--primary); color:white; }
.btn-success { background:var(--success); color:white; }
.btn-warning { background:var(--warning); color:white; }
.btn-danger { background:var(--danger); color:white; }
.btn:hover { transform:translateY(-2px); box-shadow:var(--shadow-lg); }

.cards-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:1.5rem; margin-bottom:2rem;}
.card { background:white; border-radius:12px; padding:1.5rem; box-shadow:var(--shadow); transition:transform .2s ease; }
.card:hover{ transform:translateY(-4px); }

.card-header { display:flex; align-items:center; margin-bottom:1rem; }
.card-icon { width:50px;height:50px;border-radius:10px; display:flex; align-items:center; justify-content:center; margin-right:1rem; font-size:1.5rem; color:white; }

.card-title{ font-size:1.1rem; font-weight:600; color:var(--text); }
.card-value{ font-size:2rem; font-weight:bold; color:var(--primary); margin-bottom:.5rem; }

.table { width:100%; border-collapse:collapse; background:white; border-radius:8px; overflow:hidden; box-shadow:var(--shadow); }
.table th, .table td { padding:1rem; text-align:left; border-bottom:1px solid var(--border); }
.table th { background:var(--secondary); font-weight:600; color:var(--text); }

.form-group { margin-bottom:1.5rem; }
.form-label { display:block; margin-bottom:.5rem; font-weight:500; color:var(--text); }
.form-control { width:100%; padding:.75rem; border:1px solid var(--border); border-radius:8px; font-size:1rem; }
.form-control:focus { outline:none; border-color:var(--primary); box-shadow:0 0 0 3px rgba(37,99,235,.1); }

.modal { display:none; position:fixed; z-index:1000; left:0; top:0; width:100%; height:100%; background:rgba(0,0,0,.5); backdrop-filter:blur(5px); }
.modal.show{ display:flex; align-items:center; justify-content:center; }
.modal-content { background:white; border-radius:12px; padding:2rem; max-width:800px; width:90%; max-height:80vh; overflow-y:auto; box-shadow:var(--shadow-lg); }
.modal-header{ display:flex; justify-content:space-between; align-items:center; margin-bottom:1.5rem; padding-bottom:1rem; border-bottom:1px solid var(--border); }
.close{ background:none; border:none; font-size:1.5rem; cursor:pointer; color:var(--text-light); }

.form-row { display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.status-badge { padding:.25rem .75rem; border-radius:20px; font-size:.875rem; font-weight:500; }
.status-active{ background:rgba(16,185,129,.1); color:var(--success); }
.status-inactive{ background:rgba(239,68,68,.1); color:var(--danger); }
.status-pending{ background:rgba(245,158,11,.1); color:var(--warning); }
.status-graduated{ background:rgba(37,99,235,.1); color:var(--primary); }
.status-transferred{ background:rgba(139,92,246,.1); color:#8b5cf6; }
.status-onleave{ background:rgba(245,158,11,.1); color:var(--warning); }
.status-retired{ background:rgba(107,114,128,.1); color:#6b7280; }

.search-box{ position:relative; margin-bottom:1rem; }
.search-box input{ padding-left:2.5rem; }
.search-box i{ position:absolute; left:.75rem; top:50%; transform:translateY(-50%); color:var(--text-light); }

.action-buttons{ display:flex; gap:.5rem; }
.btn-sm{ padding:.375rem .75rem; font-size:.875rem; }
.notification{ position:fixed; top:2rem; right:2rem; background:white; border-radius:8px; padding:1rem 1.5rem; box-shadow:var(--shadow-lg); border-left:4px solid var(--success); display:none; z-index:1001; max-width:300px; }
.notification.show{ display:block; animation:slideIn .3s ease; }
.notification.error{ border-left-color:var(--danger); }
@keyframes slideIn { from{transform:translateX(100px);opacity:0;} to{transform:translateX(0);opacity:1;} }

.ai-insight{ background:linear-gradient(135deg,#667eea 0%,#764ba2 100%); color:white; padding:1rem; border-radius:8px; margin:1rem 0; }

.biometric-scanner{ text-align:center; padding:3rem; border:3px dashed var(--border); border-radius:12px; margin:2rem 0; transition:all .3s ease; }
.biometric-scanner.active{ border-color:var(--success); background:rgba(16,185,129,.1); }
.scanner-icon{ font-size:4rem; color:var(--primary); margin-bottom:1rem; }

/* Class Container Styles */
.class-category { margin-bottom: 2rem; }
.category-header { 
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
}
.category-title { 
    font-size: 1.3rem; 
    font-weight: 600; 
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.class-containers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.class-container {
    background: white;
    border-radius: 8px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.3s ease;
}

.class-container:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.class-header {
    background: var(--secondary);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.class-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.class-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.class-stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.students-list {
    max-height: 400px;
    overflow-y: auto;
}

.student-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.student-item:hover {
    background: var(--secondary);
}

.student-item:last-child {
    border-bottom: none;
}

.student-info {
    flex: 1;
}

.student-name {
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.student-details {
    font-size: 0.875rem;
    color: var(--text-light);
    display: flex;
    gap: 1rem;
}

.student-actions {
    display: flex;
    gap: 0.5rem;
}

.empty-class {
    padding: 2rem;
    text-align: center;
    color: var(--text-light);
}

.empty-class i {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.class-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* AI Assistant Interface */
.ai-assistant {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
}

.ai-assistant-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-assistant-btn.listening {
    animation: pulse 1.5s infinite;
    background: linear-gradient(135deg, var(--warning), var(--danger));
}

.ai-assistant-panel {
    position: fixed;
    bottom: 8rem;
    right: 2rem;
    width: 400px;
    max-width: 90vw;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    max-height: 60vh;
    z-index: 1001;
}

.ai-assistant-panel.active {
    display: flex;
}

.ai-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px 12px 0 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ai-conversation {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    max-height: 300px;
}

.ai-message {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    max-width: 85%;
}

.ai-message.user {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.616);
    margin-left: auto;
    border-bottom-right-radius: 4px;
}

.ai-message.assistant {
    background: var(--secondary);
    color: var(--text);
    margin-right: auto;
    border-bottom-left-radius: 4px;
}

.ai-input-area {
    padding: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 0.5rem;
}

.ai-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.875rem;
}

.ai-send-btn {
    padding: 0.75rem;
    background: var(--primary);
    color: rgb(88, 2, 2);
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.quick-questions {
    padding: 1rem;
    border-top: 1px solid var(--border);
}

.quick-question {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    background: var(--secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.quick-question:hover {
    background: var(--primary);
    color: rgb(87, 109, 236);
}

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

.voice-status {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 2rem 3rem;
    border-radius: 12px;
    z-index: 1002;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.voice-status.active {
    display: flex;
}

.ai-response-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
}

.ai-response-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* NEW ENHANCEMENTS */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.875rem;
}

.class-filters {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1000;
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: var(--shadow);
}

.chart-container {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
    height: 300px;
    position: relative;
}

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

.attendance-card {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: var(--shadow);
}

.attendance-progress {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    margin: 0.5rem 0;
    overflow: hidden;
}

.attendance-progress-bar {
    height: 100%;
    background: var(--success);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.ai-suggestions {
    background: var(--secondary);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
}

.suggestion-item {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.suggestion-item:hover {
    background: var(--primary);
    color: white;
}

/* small helpers */
.hidden{ display:none; }
.form-full-width { grid-column: 1 / -1; }
.subjects-container { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.subject-tag { background: var(--primary); color: white; padding: 0.25rem 0.75rem; border-radius: 20px; font-size: 0.875rem; display: inline-flex; align-items: center; gap: 0.25rem; }
.subject-tag .remove { cursor: pointer; font-size: 1rem; }

/* Responsive Design */
@media (max-width:768px){
    .sidebar{ transform:translateX(-100%); position:fixed; z-index:100; height:100vh; }
    .sidebar.open{ transform:translateX(0); }
    .main-content{ padding:1rem; }
    .cards-grid{ grid-template-columns:1fr; }
    .form-row{ grid-template-columns:1fr; }
    .class-containers-grid{ grid-template-columns:1fr; }
    .class-stats{ flex-direction: column; gap: 0.5rem; }
    .ai-assistant-panel { width: 90vw; right: 5vw; }
    .mobile-menu-btn { display: block; }
    .quick-stats { grid-template-columns: repeat(2, 1fr); }
    .header { flex-direction: column; gap: 1rem; text-align: center; }
    .header-right { justify-content: center; }
    .class-filters { justify-content: center; }
}

@media (max-width:480px){
    .quick-stats { grid-template-columns: 1fr; }
}
/* ==================== TIMETABLE STYLES ==================== */

.timetable-header {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--primary);
}

.current-period-alert {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
}

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

.timetable-day {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.timetable-day:hover {
    transform: translateY(-2px);
}

.day-header {
    background: var(--primary);
    color: white;
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.periods-list {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.period-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--success);
    position: relative;
    transition: all 0.2s ease;
}

.period-item:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.period-item.current-period {
    border-left-color: var(--danger);
    background: linear-gradient(135deg, #fff, #ffeaea);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(220, 53, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 53, 69, 0); }
}

.period-time {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.period-subject {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.period-teacher, .period-class, .period-room {
    color: var(--text-light);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.current-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--danger);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.period-item.no-class {
    border-left-color: var(--warning);
    background: #fff9e6;
}

.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-light);
}

.conflicts-alert {
    background: #fff5f5;
    border: 1px solid var(--danger);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.conflicts-list {
    margin-top: 1rem;
}

.conflict-item {
    background: white;
    padding: 1rem;
    margin: 0.5rem 0;
    border-radius: 8px;
    border-left: 4px solid var(--danger);
}

/* Responsive timetable */
@media (max-width: 768px) {
    .timetable-grid {
        grid-template-columns: 1fr;
    }
    
    .timetable-controls .form-row {
        flex-direction: column;
    }
}
/* Enhanced Teaching Assignments Styles */
.assignments-container {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.subject-assignment-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    background: var(--card-bg);
    transition: all 0.3s ease;
}

.subject-assignment-card:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.assignment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.assignment-info {
    flex: 1;
}

.subject-name {
    font-size: 1.1rem;
    color: var(--primary);
    display: block;
    margin-bottom: 0.25rem;
}

.class-badge {
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.assignment-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.lessons-control {
    display: flex;
    gap: 0.5rem;
}

.lessons-control .form-control {
    flex: 1;
}

.lessons-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.lessons-buttons .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
}

/* Workload Summary Styles */
.workload-summary-card {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    background: var(--card-bg);
}

.workload-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.workload-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 6px;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.class-workload-breakdown {
    margin-bottom: 1.5rem;
}

.class-workload-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.class-workload-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border-radius: 4px;
    font-size: 0.875rem;
}

.class-name {
    color: var(--text-light);
}

.lessons-count {
    font-weight: 500;
    color: var(--primary);
}

.workload-alert {
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.2);
    color: #856404;
}

.alert-info {
    background: rgba(23, 162, 184, 0.1);
    border: 1px solid rgba(23, 162, 184, 0.2);
    color: #0c5460;
}

.no-subjects {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-light);
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 2px dashed var(--border-color);
}

.no-subjects h4 {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .assignments-container {
        grid-template-columns: 1fr;
    }
    
    .assignment-controls {
        grid-template-columns: 1fr;
    }
    
    .workload-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* Enhanced Teaching Assignments Styles */
.assignments-container {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.subject-assignment-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    background: var(--card-bg);
    transition: all 0.3s ease;
}

.subject-assignment-card:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.assignment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.assignment-info {
    flex: 1;
}

.subject-name {
    font-size: 1.1rem;
    color: var(--primary);
    display: block;
    margin-bottom: 0.25rem;
}

.class-badge {
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.assignment-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.assignment-controls .form-group {
    margin-bottom: 0;
}

.assignment-controls label {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: var(--text-light);
}

.lessons-control {
    display: flex;
    gap: 0.5rem;
}

.lessons-control .form-control {
    flex: 1;
    min-width: 60px;
}

.lessons-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.lessons-buttons .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    line-height: 1;
}

/* Workload Summary Styles */
.workload-summary-card {
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    background: var(--card-bg);
}

.workload-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
}

.workload-header h5 {
    margin: 0;
    color: var(--primary);
}

.workload-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: 6px;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary);
}

.class-workload-breakdown {
    margin-bottom: 1.5rem;
}

.class-workload-breakdown h6 {
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.class-workload-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.class-workload-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border-radius: 4px;
    font-size: 0.875rem;
}

.class-name {
    color: var(--text-light);
}

.lessons-count {
    font-weight: 500;
    color: var(--primary);
}

.workload-alert {
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.2);
    color: #856404;
}

.alert-info {
    background: rgba(23, 162, 184, 0.1);
    border: 1px solid rgba(23, 162, 184, 0.2);
    color: #0c5460;
}

.no-subjects {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-light);
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 2px dashed var(--border-color);
}

.no-subjects h4 {
    margin-bottom: 0.5rem;
    color: var(--text-light);
}

.no-subjects ol {
    padding-left: 1.5rem;
}

.no-subjects li {
    margin-bottom: 0.25rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .assignments-container {
        grid-template-columns: 1fr;
    }
    
    .assignment-controls {
        grid-template-columns: 1fr;
    }
    
    .workload-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .class-workload-list {
        grid-template-columns: 1fr;
    }
}

/* Utility classes for text colors */
.text-success { color: #198754 !important; }
.text-warning { color: #ffc107 !important; }
.text-danger { color: #dc3545 !important; }
.text-info { color: #0dcaf0 !important; }
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--text-light) !important; }        

/*addational styles for standalone components*/

/* Additional styles for standalone pages */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-left h2 {
    margin: 0;
    color: var(--primary);
}

.header-right .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Subject tags for teachers */
.subjects-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.subject-tag {
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.remove-subject {
    background: none;
    border: none;
    color: var(--danger);
    cursor: pointer;
    padding: 0;
    font-size: 0.75rem;
}

.no-subjects {
    color: var(--text-light);
    font-style: italic;
    padding: 0.5rem 0;
}

/* Class cards */
.classes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.class-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid var(--primary);
}

.class-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.class-name {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.25rem;
}

.class-level {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 500;
}

.class-info {
    margin-bottom: 1.5rem;
}

.class-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.class-stat i {
    width: 16px;
    color: var(--primary);
}

.class-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.no-classes {
    text-align: center;
    color: var(--text-light);
    padding: 3rem;
    font-style: italic;
}

/* Attendance styles */
.attendance-controls {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.attendance-list {
    max-height: 400px;
    overflow-y: auto;
    margin-top: 1rem;
}

.attendance-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    font-weight: 600;
    border-radius: 5px;
    margin-bottom: 0.5rem;
}

.attendance-item {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    align-items: center;
}

.no-students {
    text-align: center;
    color: var(--text-light);
    padding: 2rem;
    font-style: italic;
}

/* Timetable styles */
.timetable-controls {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.timetable-class-section {
    margin-bottom: 2rem;
}

.timetable-class-title {
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.timetable-table {
    display: grid;
    grid-template-columns: 150px repeat(5, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 5px;
    overflow: hidden;
}

.timetable-header {
    display: contents;
}

.timetable-cell {
    background: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.time-header, .time-slot {
    background: var(--bg-light);
    font-weight: 600;
}

.schedule-item {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    background: var(--primary-light);
    border-left: 3px solid var(--primary);
}

.schedule-item .subject {
    font-weight: 600;
    color: var(--text-dark);
}

.schedule-item .teacher,
.schedule-item .room {
    font-size: 0.8rem;
    color: var(--text-light);
}

.schedule-actions {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
}

.empty-slot {
    background: var(--bg-light);
    color: var(--text-light);
}

.daily-timetable {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.daily-schedule-item {
    display: grid;
    grid-template-columns: 150px 1fr auto;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    align-items: center;
}

.daily-schedule-item.empty {
    background: var(--bg-light);
}

.daily-schedule-item .time-slot {
    font-weight: 600;
    color: var(--text-dark);
}

.schedule-details .subject {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.schedule-details .teacher,
.schedule-details .room {
    font-size: 0.9rem;
    color: var(--text-light);
}

.no-timetable {
    text-align: center;
    color: var(--text-light);
    padding: 3rem;
    font-style: italic;
}

/* Performance styles */
.performance-controls {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-info h3 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.stat-info p {
    margin: 0.25rem 0 0 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

.grade-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .classes-grid {
        grid-template-columns: 1fr;
    }
    
    .timetable-table {
        grid-template-columns: 100px repeat(5, 1fr);
        font-size: 0.8rem;
    }
    
    .attendance-header,
    .attendance-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .daily-schedule-item {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .performance-stats {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .section-header > div {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }
}

/* Block Timetable Specific Styles */
.block-timetable-container {
    margin-bottom: 2rem;
    page-break-inside: avoid;
}

.block-timetable-header {
    background: var(--primary);
    color: white;
    padding: 1rem;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
}

.block-timetable-table {
    border: 2px solid #333;
    border-collapse: collapse;
    width: 100%;
    margin-bottom: 0.5rem;
}

.block-timetable-table th,
.block-timetable-table td {
    border: 1px solid #666;
    padding: 8px;
    text-align: center;
    vertical-align: middle;
}

.block-timetable-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    font-size: 12px;
}

.block-timetable-table td {
    min-height: 60px;
    font-size: 11px;
}

.cell-subject {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 2px;
}

.cell-teacher {
    color: #7f8c8d;
    font-size: 10px;
    margin-bottom: 1px;
}

.cell-room {
    color: #95a5a6;
    font-size: 9px;
    font-style: italic;
}

.block-footer {
    font-size: 12px;
    color: #666;
    border-top: 1px dashed #ccc;
    padding-top: 0.5rem;
}

/* Print styles for block timetable */
@media print {
    .block-timetable-container {
        break-inside: avoid;
    }
    
    .block-timetable-table {
        font-size: 10px;
    }
    
    #viewControls {
        display: none !important;
    }
}
/* Streams Management Styles */
.streams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.grade-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1rem;
    background: white;
}

.grade-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f0f0;
}

.grade-header h4 {
    margin: 0;
    color: var(--primary);
}

.grade-level {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.streams-list {
    margin-bottom: 1rem;
}

.streams-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.streams-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stream-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid var(--primary);
}

.stream-name {
    font-weight: 600;
    color: #333;
}

.stream-actions {
    display: flex;
    gap: 0.25rem;
}

.grade-info {
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.grade-info div {
    margin-bottom: 0.25rem;
}

.grade-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.grade-actions .btn {
    flex: 1;
    min-width: 120px;
}

/* Student Registration Modal */
#studentClass:disabled {
    background-color: #f8f9fa;
    color: #666;
    cursor: not-allowed;
}

.class-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.class-actions .btn {
    flex: 1;
    min-width: 100px;
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
}
/* Reports Modal Styles */
.reports-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.report-option {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.report-option:hover {
    border-color: var(--primary);
    background-color: #f8f9fa;
    transform: translateY(-2px);
}

.report-option i {
    color: var(--primary);
}

.report-option h4 {
    margin: 0 0 0.25rem 0;
    color: #2c3e50;
}

.report-option p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* Drag and Drop Styles */
.class-card {
    position: relative;
    transition: all 0.3s ease;
    cursor: grab;
}

.class-card.draggable {
    user-select: none;
}

.class-card.dragging {
    opacity: 0.4;
    cursor: grabbing;
}

.class-drag-handle {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #ccc;
    cursor: grab;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.2s ease;
    z-index: 10;
}

.class-drag-handle:hover {
    color: #666;
    background: rgba(0,0,0,0.1);
}

.class-drag-handle:active {
    cursor: grabbing;
}

.class-card.dragover {
    border: 2px dashed var(--primary);
    background-color: rgba(52, 152, 219, 0.1);
}

/* Visual feedback during drag */
.class-card:not(.dragging) {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.classes-grid {
    min-height: 200px;
}

/* Enhanced Table Styles */
.enhanced-table {
    border-collapse: separate;
    border-spacing: 0;
}

.enhanced-table th {
    background: var(--bg-light);
    font-weight: 600;
    border-bottom: 2px solid var(--border);
    position: sticky;
    top: 0;
}

.enhanced-table td {
    border-bottom: 1px solid var(--border);
    padding: 1rem 0.75rem;
    vertical-align: middle;
}

.student-id {
    font-family: monospace;
    font-weight: 600;
    color: var(--primary);
}

.student-name {
    font-weight: 600;
    color: var(--text-dark);
}

.student-notes {
    color: var(--text-light);
    font-size: 0.85em;
    margin-top: 0.25rem;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Enhanced Filters */
.filters-container {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 150px;
}

.filter-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.class-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    background: var(--white);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.filter-btn:hover {
    background: var(--bg-light);
}

.filter-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Enhanced Search */
.search-box.enhanced {
    position: relative;
    min-width: 300px;
}

.search-box.enhanced i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.search-box.enhanced input {
    padding-left: 3rem;
}

/* Selection UI */
.selected-count {
    background: var(--primary);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Enhanced Status Badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-graduated {
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.status-transferred {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Enhanced Modal */
.modal-content.large {
    max-width: 800px;
}

/* Upload Area */
.upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--bg-light);
}

.upload-area:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.05);
}

.upload-area.dragover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
}

.upload-area i {
    font-size: 3rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.upload-area p {
    margin: 0;
    font-weight: 600;
    color: var(--text-dark);
}

.upload-area small {
    color: var(--text-light);
}

/* Notifications */
.notification {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1rem 1.5rem;
    margin-bottom: 0.5rem;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--success);
    animation: slideInRight 0.3s ease-out;
}

.notification.error {
    border-left-color: var(--danger);
}

.notification.warning {
    border-left-color: var(--warning);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification i {
    font-size: 1.25rem;
}

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

/* Mini Stats */
.stats-overview {
    display: flex;
    gap: 1rem;
}

.stat-card.mini {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    min-width: 120px;
}

.stat-card.mini i {
    font-size: 1.5rem;
    color: var(--primary);
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .filters-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .class-filters {
        justify-content: center;
    }
    
    .stats-overview {
        justify-content: center;
    }
    
    .header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .search-box.enhanced {
        min-width: auto;
    }
}

/* Enhanced Form Styles */
.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.section-title {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.photo-upload-container {
    text-align: center;
}

.photo-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border: 2px dashed var(--border);
    overflow: hidden;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-preview i {
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.photo-input {
    display: none;
}

/* Student Profile Styles */
.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary), #3b82f6);
    color: white;
    margin: -2rem -2rem 2rem -2rem;
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid white;
    overflow: hidden;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-photo i {
    font-size: 3rem;
    color: white;
}

.profile-info h2 {
    margin: 0 0 0.5rem 0;
    color: white;
}

.profile-meta {
    margin: 0 0 1rem 0;
    opacity: 0.9;
}

.profile-status {
    display: flex;
    gap: 0.5rem;
}

/* Profile Tabs */
.profile-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 1rem 2rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-light);
    transition: all 0.3s;
}

.tab-btn:hover {
    color: var(--primary);
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-pane {
    display: none;
}

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

/* Info Grid */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.info-card h4 {
    margin: 0 0 1rem 0;
    color: var(--primary);
    font-size: 1.1rem;
}

.info-item {
    display: flex;
    justify-content: between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-light);
}

.info-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.info-item label {
    font-weight: 600;
    color: var(--text-dark);
    min-width: 150px;
}

.info-item span {
    color: var(--text-light);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Academic Performance */
.subject-grade {
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: var(--radius);
}

.subject-name {
    font-weight: 600;
    color: var(--text-dark);
}

.subject-score {
    float: right;
    font-weight: 600;
    color: var(--primary);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--success);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Attendance Stats */
.attendance-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.attendance-metric {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--radius);
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Discipline Records */
.incident-card {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1rem;
    border-left: 4px solid var(--warning);
}

.incident-header {
    display: flex;
    justify-content: between;
    margin-bottom: 0.5rem;
}

.incident-date {
    font-weight: 600;
    color: var(--text-dark);
}

.incident-severity {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.incident-severity.minor {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.incident-severity.major {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.incident-description {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.incident-action {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

/* Fee Balance */
.fee-amount {
    font-size: 1.5rem;
    font-weight: 700;
}

.fee-amount.due {
    color: var(--danger);
}

.fee-amount.paid {
    color: var(--success);
}

.fee-breakdown {
    margin: 1.5rem 0;
}

.fee-item {
    display: flex;
    justify-content: between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
}

.fee-item.total {
    font-weight: 700;
    border-top: 2px solid var(--border);
    border-bottom: none;
    margin-top: 0.5rem;
}

.fee-warning {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    padding: 1rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--danger);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Medical Badges */
.medical-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.medical-warning {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Student Photos in Table */
.student-photo-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.student-photo-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.student-photo-small i {
    color: var(--text-light);
    font-size: 1rem;
}

/* Form Actions */
.form-actions {
    text-align: right;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .profile-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        text-align: left;
        border-bottom: 1px solid var(--border);
        border-left: 3px solid transparent;
    }
    
    .tab-btn.active {
        border-left-color: var(--primary);
        border-bottom-color: var(--border);
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .info-item {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .info-item label {
        min-width: auto;
    }
}
/* ===== TEACHER MANAGEMENT ENHANCEMENTS ===== */

/* Enhanced Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    max-width: 300px;
    animation: slideInRight 0.3s ease-out;
}

.notification.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    border-left: 4px solid #28a745;
}

.notification.warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.notification.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
}

/* Enhanced Subject Tags */
.subjects-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    min-height: 40px;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.subject-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: var(--primary);
    color: white;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
}

.remove-subject {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    padding: 2px;
    border-radius: 2px;
    font-size: 0.75rem;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-subject:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.no-subjects {
    color: var(--text-light);
    font-style: italic;
    padding: 8px 0;
    width: 100%;
    text-align: center;
}

/* Enhanced Status Badges */
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.status-onleave {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-retired {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
    border: 1px solid rgba(107, 114, 128, 0.2);
}

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

.btn-sm {
    padding: 4px 8px;
    font-size: 0.75rem;
    border-radius: 4px;
}

/* Enhanced Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--secondary);
    border-radius: 12px 12px 0 0;
}

.modal-header h3 {
    margin: 0;
    color: var(--primary);
    font-size: 1.25rem;
}

.close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 4px;
    border-radius: 4px;
}

.close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--danger);
}

/* Enhanced Form Styles */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control:invalid {
    border-color: var(--danger);
}

/* Enhanced Table Styles */
.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.table th {
    background: var(--secondary);
    font-weight: 600;
    color: var(--text);
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid #e9ecef;
}

.table td {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.table tbody tr:hover {
    background: #f8f9fa;
}

/* Enhanced Search Box */
.search-box {
    position: relative;
    margin-bottom: 1.5rem;
}

.search-box input {
    padding-left: 2.5rem;
    border-radius: 25px;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

/* Quick Stats for Teachers */
.teachers-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary);
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Teacher Profile Preview */
.teacher-preview {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: none;
}

.teacher-preview.active {
    display: block;
}

.preview-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.preview-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
}

.preview-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-label {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.detail-value {
    color: var(--text);
}

/* Bulk Actions */
.bulk-actions {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: none;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.bulk-actions.active {
    display: flex;
}

.selected-count {
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .teachers-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .table {
        font-size: 0.875rem;
    }
    
    .table th,
    .table td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .teachers-stats {
        grid-template-columns: 1fr;
    }
    
    .bulk-actions {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Animations */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

/* Print Styles for Teachers */
@media print {
    .header-right,
    .action-buttons,
    .search-box,
    .bulk-actions {
        display: none !important;
    }
    
    .table {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .teacher-preview {
        break-inside: avoid;
    }
}

/* ===== ENHANCED TEACHER PROFILE STYLES ===== */

/* Photo Upload Styles */
.photo-upload-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.photo-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border: 2px dashed var(--border);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.photo-preview:hover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-preview i {
    font-size: 2rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.photo-preview .photo-text {
    font-size: 0.75rem;
    color: var(--text-light);
}

.photo-input {
    display: none;
}

.photo-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.5rem;
}

/* Enhanced Form Layout */
.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.section-title {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title i {
    font-size: 1rem;
}

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

.workload-item {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
}

.workload-subject {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.workload-details {
    font-size: 0.875rem;
    color: var(--text-light);
}

.workload-total {
    background: var(--primary);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    margin-top: 1rem;
}

/* Performance Charts */
.performance-chart {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.chart-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 1rem;
}

.chart-year {
    font-weight: 600;
    color: var(--primary);
}

.chart-score {
    background: var(--success);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
}

.chart-bar {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.chart-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Service Duration */
.service-duration {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 1.5rem;
}

.duration-value {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.duration-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Qualifications */
.qualifications-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.qualification-item {
    background: var(--bg-light);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid var(--success);
}

.qualification-name {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.qualification-details {
    font-size: 0.875rem;
    color: var(--text-light);
    display: flex;
    gap: 1rem;
}

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

.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.profile-photo-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--bg-light);
    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-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-photo-large i {
    font-size: 3rem;
    color: var(--text-light);
}

.profile-basic-info {
    flex: 1;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.profile-qualification {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.profile-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-light);
    font-size: 0.875rem;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.profile-stat {
    text-align: center;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.stat-description {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* Profile Tabs */
.profile-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}

.profile-tab {
    padding: 1rem 2rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-light);
    transition: all 0.3s;
}

.profile-tab:hover {
    color: var(--primary);
}

.profile-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
}

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

/* Workload Summary */
.workload-summary {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.workload-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 1rem;
}

.workload-total-hours {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

/* Performance History */
.performance-history {
    display: grid;
    gap: 1rem;
}

.performance-item {
    display: flex;
    justify-content: between;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.performance-year {
    font-weight: 600;
    color: var(--text-dark);
}

.performance-class {
    color: var(--text-light);
}

.performance-score {
    background: var(--success);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-meta {
        justify-content: center;
    }
    
    .profile-tabs {
        flex-direction: column;
    }
    
    .profile-tab {
        text-align: left;
        border-bottom: 1px solid var(--border);
        border-left: 3px solid transparent;
    }
    
    .profile-tab.active {
        border-left-color: var(--primary);
        border-bottom-color: var(--border);
    }
    
    .workload-grid {
        grid-template-columns: 1fr;
    }
}
/* ===== ENHANCED TEACHER PROFILE FONT STYLES ===== */

/* Teacher Profile Modal Enhancements */
#teacherProfileModal .modal-content {
    max-width: 900px;
    width: 95%;
}

.teacher-profile-view {
    background: white;
    border-radius: 12px;
    padding: 0;
    margin: 0;
    box-shadow: none;
}

/* Profile Header Font Fixes */
.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 2rem;
    margin: -2rem -2rem 2rem -2rem;
    border-radius: 12px 12px 0 0;
}

.profile-name {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: var(--text) !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.2;
}

.profile-qualification {
    color: var(--primary) !important;
    font-weight: 600 !important;
    margin-bottom: 1rem !important;
    font-size: 1.1rem;
}

.profile-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--text-light) !important;
    font-size: 0.9rem !important;
    flex-wrap: wrap;
}

.profile-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Profile Stats Font Fixes */
.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.profile-stat {
    text-align: center;
    padding: 1.5rem 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid var(--border);
    transition: transform 0.2s ease;
}

.profile-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 2rem !important;
    font-weight: 800 !important;
    color: var(--primary) !important;
    margin-bottom: 0.5rem !important;
    display: block;
}

.stat-description {
    font-size: 0.875rem !important;
    color: var(--text-light) !important;
    font-weight: 500 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Profile Tabs Font Fixes */
.profile-tabs {
    display: flex;
    border-bottom: 2px solid var(--border);
    margin-bottom: 2rem;
    padding: 0 1rem;
    background: white;
    border-radius: 8px 8px 0 0;
}

.profile-tab {
    padding: 1rem 2rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 600 !important;
    color: var(--text-light) !important;
    transition: all 0.3s;
    font-size: 0.95rem;
    position: relative;
}

.profile-tab:hover {
    color: var(--primary) !important;
    background: rgba(37, 99, 235, 0.05);
}

.profile-tab.active {
    color: var(--primary) !important;
    border-bottom-color: var(--primary) !important;
    background: rgba(37, 99, 235, 0.1);
}

/* Tab Content Font Fixes */
.tab-content {
    display: none;
    padding: 0 1rem;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Qualifications Tab */
.qualifications-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.qualification-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--success);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.qualification-item:hover {
    transform: translateX(5px);
}

.qualification-name {
    font-weight: 700 !important;
    color: var(--text) !important;
    margin-bottom: 0.5rem !important;
    font-size: 1.1rem;
}

.qualification-details {
    font-size: 0.9rem !important;
    color: var(--text-light) !important;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.qualification-details span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Workload Tab */
.workload-summary {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.workload-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.workload-header h4 {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--text) !important;
    margin: 0 !important;
}

.workload-total-hours {
    background: var(--primary);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 700 !important;
    font-size: 1.1rem;
}

.workload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.workload-item {
    background: var(--secondary);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--primary);
    transition: transform 0.2s ease;
}

.workload-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.workload-subject {
    font-weight: 700 !important;
    color: var(--text) !important;
    margin-bottom: 0.75rem !important;
    font-size: 1.1rem;
}

.workload-details {
    font-size: 0.9rem !important;
    color: var(--text-light) !important;
    line-height: 1.5;
}

/* Performance Tab */
.performance-history {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.performance-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid var(--success);
    transition: transform 0.2s ease;
}

.performance-item:hover {
    transform: translateX(5px);
}

.performance-year {
    font-weight: 700 !important;
    color: var(--text) !important;
    margin-bottom: 0.25rem !important;
    font-size: 1.1rem;
}

.performance-class {
    color: var(--text-light) !important;
    font-size: 0.9rem !important;
}

.performance-score {
    background: linear-gradient(135deg, var(--success), #10b981);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 700 !important;
    font-size: 1.1rem;
    min-width: 100px;
    text-align: center;
}

/* Service Tab */
.service-duration {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white !important;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.duration-value {
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.2;
}

.duration-label {
    font-size: 1rem !important;
    opacity: 0.9;
    font-weight: 500 !important;
}

.info-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.info-card h4 {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--text) !important;
    margin-bottom: 1rem !important;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.5rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-light);
}

.info-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.info-item label {
    font-weight: 600 !important;
    color: var(--text) !important;
    min-width: 150px;
    font-size: 0.95rem;
}

.info-item span {
    color: var(--text-light) !important;
    font-size: 0.95rem;
    text-align: right;
}

/* Photo Styles */
.profile-photo-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    overflow: hidden;
    flex-shrink: 0;
}

.profile-photo-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-photo-large i {
    font-size: 3rem;
    color: white;
}

/* No Data States */
.no-subjects, .no-qualifications, .no-workload, .no-performance {
    text-align: center;
    color: var(--text-light) !important;
    padding: 3rem 2rem;
    font-style: italic;
    background: var(--secondary);
    border-radius: 8px;
    border: 2px dashed var(--border);
}

.no-subjects i, .no-qualifications i, .no-workload i, .no-performance i {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.5;
    display: block;
}

/* Form Actions in Profile */
.form-actions {
    text-align: right;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border);
    background: var(--secondary);
    border-radius: 0 0 12px 12px;
    margin: 2rem -2rem -2rem -2rem;
}

/* Responsive Design for Profile */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .profile-meta {
        justify-content: center;
    }
    
    .profile-meta span {
        flex: 1;
        min-width: 200px;
        justify-content: center;
    }
    
    .profile-tabs {
        flex-direction: column;
    }
    
    .profile-tab {
        text-align: left;
        border-bottom: 1px solid var(--border);
        border-left: 4px solid transparent;
    }
    
    .profile-tab.active {
        border-left-color: var(--primary);
        border-bottom-color: var(--border);
    }
    
    .performance-item {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .info-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .info-item label {
        min-width: auto;
    }
    
    .workload-grid {
        grid-template-columns: 1fr;
    }
    
    .workload-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .profile-stats {
        grid-template-columns: 1fr;
    }
    
    .profile-name {
        font-size: 1.5rem !important;
    }
    
    .duration-value {
        font-size: 2rem !important;
    }
    
    .profile-photo-large {
        width: 120px;
        height: 120px;
    }
}

/* Text Color Utilities for Profile */
.text-dark { color: var(--text) !important; }
.text-light { color: var(--text-light) !important; }
.text-primary { color: var(--primary) !important; }
.text-white { color: white !important; }

/* Font Weight Utilities */
.font-bold { font-weight: 700 !important; }
.font-semibold { font-weight: 600 !important; }
.font-medium { font-weight: 500 !important; }

/* Ensure all text is visible */
#teacherProfileModal * {
    color: inherit !important;
}

#teacherProfileModal .modal-content {
    color: var(--text) !important;
}

#teacherProfileModal .teacher-profile-view {
    color: var(--text) !important;
}

/* Enhanced Dropdown Styles */
.form-control {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 0.75rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: white;
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Make sure form sections are properly spaced */
.form-section {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 1rem;
}

/* Teachers specific styles */

/* View Toggle */
.view-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.toggle-btn {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    transition: all 0.3s;
}

.toggle-btn.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Teacher Statistics */
.teachers-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
}

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

.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: 1px solid var(--border);
}

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

.card-header {
    padding: 1.5rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.teacher-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.3);
    background: white;
}

.teacher-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.teacher-basic-info {
    flex: 1;
}

.teacher-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.teacher-id {
    font-size: 0.8rem;
    opacity: 0.8;
}

.card-body {
    padding: 1.5rem;
}

.teacher-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.metric {
    text-align: center;
    padding: 0.75rem;
    background: var(--light);
    border-radius: 0.5rem;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--primary);
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-light);
    font-weight: 500;
}

.teacher-subjects {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.subject-tag {
    background-color: var(--light);
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    color: var(--text);
}

.card-footer {
    padding: 1rem 1.5rem;
    background-color: var(--light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Teacher Profile Styles */
.profile-header {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 3px solid var(--primary);
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.teacher-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-light);
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.tab-content {
    display: none;
}

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

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

.detail-item {
    display: flex;
    flex-direction: column;
    padding: 1rem;
    background: var(--light);
    border-radius: 0.5rem;
}

.detail-label {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.detail-value {
    font-weight: 600;
    color: var(--text);
}

/* Infographics */
.infographics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.infographic-card {
    background: white;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
}

.infographic-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.performance-chart {
    height: 200px;
    margin-bottom: 1rem;
}

.metric-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.comparison-item {
    text-align: center;
    padding: 1rem;
    background: var(--light);
    border-radius: 0.5rem;
}

.comparison-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.comparison-label {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Status badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: capitalize;
}

.status-active {
    background-color: rgba(76, 201, 240, 0.1);
    color: #4cc9f0;
    border: 1px solid #4cc9f0;
}

.status-on-leave {
    background-color: rgba(247, 37, 133, 0.1);
    color: #f72585;
    border: 1px solid #f72585;
}

.status-sick-leave {
    background-color: rgba(255, 193, 7, 0.1);
    color: #ffc107;
    border: 1px solid #ffc107;
}

.status-maternity-leave {
    background-color: rgba(111, 66, 193, 0.1);
    color: #6f42c1;
    border: 1px solid #6f42c1;
}

.status-retired {
    background-color: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    border: 1px solid #6c757d;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    max-width: 350px;
    border-left: 4px solid var(--primary);
}

.notification-content {
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-message {
    flex: 1;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 1rem;
    color: var(--text-light);
}

.notification-success {
    border-left-color: #4cc9f0;
}

.notification-info {
    border-left-color: #4361ee;
}

.notification-warning {
    border-left-color: #f72585;
}

/* Responsive Design */
@media (max-width: 768px) {
    .teachers-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .teacher-metrics {
        grid-template-columns: 1fr;
    }
    
    .infographics-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-details {
        grid-template-columns: 1fr;
    }
    
    .teacher-tabs {
        flex-wrap: wrap;
    }
    
    .tab-btn {
        flex: 1;
        min-width: 120px;
        text-align: center;
    }
}
/* students.css - Complete styling for Student Management System */

/*************** CSS VARIABLES & THEME ****************/
:root {
  --primary: #3498db;
  --primary-dark: #2980b9;
  --secondary: #2c3e50;
  --success: #27ae60;
  --warning: #f39c12;
  --danger: #e74c3c;
  --info: #17a2b8;
  --light: #ecf0f1;
  --dark: #2c3e50;
  --text: #2c3e50;
  --text-light: #7f8c8d;
  --border: #bdc3c7;
  --bg-light: #f8f9fa;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --radius: 8px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f5f7fa;
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/*************** TYPOGRAPHY ****************/
h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  color: var(--secondary);
  font-weight: 600;
}

h1 {
  font-size: 2rem;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.25rem;
}

/*************** BUTTON STYLES ****************/
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.8rem;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-success {
  background-color: var(--success);
  color: white;
}

.btn-warning {
  background-color: var(--warning);
  color: white;
}

.btn-danger {
  background-color: var(--danger);
  color: white;
}

.btn-info {
  background-color: var(--info);
  color: white;
}

.btn-light {
  background-color: var(--light);
  color: var(--text);
}

/*************** CARD STYLES ****************/
.card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.card-header {
  display: flex;
  justify-content: between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

/*************** STATS GRID ****************/
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  border-left: 4px solid var(--primary);
}

.stat-value {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-light);
  font-size: 0.9rem;
}

/*************** FILTERS & CONTROLS ****************/
.controls-section {
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.controls-row {
  display: flex;
  gap: 1rem;
  align-items: end;
  flex-wrap: wrap;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 150px;
}

.filter-group label {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-light);
}

.filter-input {
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  transition: var(--transition);
}

.filter-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.class-filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  background: white;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}

.filter-btn.active,
.filter-btn:hover {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

/*************** TABLE STYLES ****************/
.table-container {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.table-responsive {
  overflow-x: auto;
}

.students-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.students-table th {
  background-color: var(--secondary);
  color: white;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

.students-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.students-table tr:hover {
  background-color: var(--bg-light);
}

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

/*************** STUDENT SPECIFIC STYLES ****************/
.student-photo-small {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.student-photo-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.student-photo-small i {
  color: var(--text-light);
  font-size: 1.2rem;
}

.student-id {
  font-weight: 600;
  color: var(--primary);
}

.student-name {
  font-weight: 600;
  color: var(--text);
}

.nemis-number {
  font-family: 'Courier New', monospace;
  color: var(--text-light);
  font-size: 0.85rem;
}

/*************** BADGE STYLES ****************/
.status-badge,
.medical-badge {
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-active {
  background-color: rgba(39, 174, 96, 0.1);
  color: var(--success);
  border: 1px solid var(--success);
}

.status-graduated {
  background-color: rgba(52, 152, 219, 0.1);
  color: var(--primary);
  border: 1px solid var(--primary);
}

.status-transferred {
  background-color: rgba(243, 156, 18, 0.1);
  color: var(--warning);
  border: 1px solid var(--warning);
}

.medical-badge {
  background-color: rgba(231, 76, 60, 0.1);
  color: var(--danger);
  border: 1px solid var(--danger);
}

.medical-warning {
  background-color: rgba(231, 76, 60, 0.2);
  color: var(--danger);
  font-weight: 600;
}

/*************** ACTION BUTTONS ****************/
.action-buttons {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.action-buttons .btn {
  width: 32px;
  height: 32px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

/*************** PAGINATION ****************/
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.pagination-info {
  color: var(--text-light);
  font-size: 0.9rem;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pagination-btn {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  background: white;
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
}

.pagination-btn:hover:not(:disabled) {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

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

/*************** MODAL STYLES ****************/
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
}

.modal.show {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  background-color: var(--secondary);
  color: white;
  border-radius: var(--radius) var(--radius) 0 0;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: var(--transition);
}

.modal-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.modal-body {
  padding: 1.5rem;
}

/*************** FORM STYLES ****************/
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-weight: 500;
  color: var(--text);
  font-size: 0.9rem;
}

.form-input,
.form-select,
.form-textarea {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  transition: var(--transition);
  font-family: inherit;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.photo-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.photo-preview {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: var(--light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--text-light);
}

.photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.age-preview {
  font-size: 0.9rem;
  color: var(--text-light);
  font-style: italic;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/*************** PROFILE MODAL STYLES ****************/
.profile-header {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.profile-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background-color: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-size: 2.5rem;
  color: var(--text-light);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-info h2 {
  margin-bottom: 0.5rem;
  color: var(--secondary);
}

.profile-meta {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.profile-status {
  display: flex;
  gap: 0.5rem;
}

/*************** TAB STYLES ****************/
.profile-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 0.75rem 1.5rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  color: var(--text-light);
  white-space: nowrap;
}

.tab-btn.active,
.tab-btn:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/*************** PROFILE CONTENT STYLES ****************/
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.info-card {
  background: var(--bg-light);
  padding: 1.5rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--primary);
}

.info-card h4 {
  margin-bottom: 1rem;
  color: var(--secondary);
  font-size: 1.1rem;
}

.info-item {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.info-item:last-child {
  border-bottom: none;
}

.info-item label {
  font-weight: 500;
  color: var(--text-light);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stat-item {
  text-align: center;
  padding: 1rem;
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/*************** ACADEMIC STYLES ****************/
.academic-performance {
  max-width: 600px;
}

.subject-grade {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.subject-grade:last-child {
  border-bottom: none;
}

.subject-name {
  min-width: 150px;
  font-weight: 500;
}

.subject-score {
  min-width: 80px;
  text-align: right;
  color: var(--text-light);
}

.progress-bar {
  flex: 1;
  height: 8px;
  background-color: var(--light);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: var(--primary);
  border-radius: 4px;
  transition: width 0.5s ease;
}

/*************** ATTENDANCE STYLES ****************/
.attendance-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  max-width: 600px;
}

.attendance-metric {
  text-align: center;
  padding: 1.5rem;
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  border-top: 4px solid var(--primary);
}

.metric-value {
  font-size: 2rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.metric-label {
  color: var(--text-light);
  font-size: 0.9rem;
}

/*************** DISCIPLINE STYLES ****************/
.incident-card {
  background: white;
  padding: 1.25rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  margin-bottom: 1rem;
  border-left: 4px solid var(--warning);
}

.incident-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.incident-date {
  color: var(--text-light);
  font-size: 0.9rem;
}

.incident-severity {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
}

.incident-severity.minor {
  background-color: rgba(243, 156, 18, 0.1);
  color: var(--warning);
}

.incident-severity.major {
  background-color: rgba(231, 76, 60, 0.1);
  color: var(--danger);
}

.incident-description {
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.incident-action {
  color: var(--text-light);
  font-size: 0.9rem;
}

.no-records {
  text-align: center;
  color: var(--text-light);
  font-style: italic;
  padding: 2rem;
}

/*************** FEE STYLES ****************/
.fee-balance {
  max-width: 400px;
}

.fee-amount {
  font-size: 1.5rem;
  font-weight: bold;
}

.fee-amount.due {
  color: var(--danger);
}

.fee-amount.paid {
  color: var(--success);
}

.fee-breakdown {
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  padding: 1.5rem;
  margin: 1rem 0;
}

.fee-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.fee-item:last-child {
  border-bottom: none;
}

.fee-item.total {
  font-weight: bold;
  font-size: 1.1rem;
  border-top: 2px solid var(--border);
  margin-top: 0.5rem;
  padding-top: 1rem;
}

.fee-warning {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background-color: rgba(231, 76, 60, 0.1);
  border: 1px solid var(--danger);
  border-radius: var(--radius);
  color: var(--danger);
  font-weight: 500;
}

/*************** NOTIFICATION STYLES ****************/
.notification {
  padding: 1rem 1.5rem;
  margin-bottom: 0.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: slideInRight 0.3s ease;
  max-width: 300px;
  border-left: 4px solid var(--primary);
}

.notification.success {
  background-color: rgba(39, 174, 96, 0.1);
  border-left-color: var(--success);
  color: var(--success);
}

.notification.warning {
  background-color: rgba(243, 156, 18, 0.1);
  border-left-color: var(--warning);
  color: var(--warning);
}

.notification.error {
  background-color: rgba(231, 76, 60, 0.1);
  border-left-color: var(--danger);
  color: var(--danger);
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.notification i {
  font-size: 1.2rem;
}

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

/*************** RESPONSIVE DESIGN ****************/
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .controls-row {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-group {
    min-width: auto;
  }
  
  .students-table {
    font-size: 0.8rem;
  }
  
  .students-table th,
  .students-table td {
    padding: 0.75rem 0.5rem;
  }
  
  .action-buttons {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .pagination {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .modal-content {
    margin: 1rem;
    max-height: calc(100vh - 2rem);
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .profile-header {
    flex-direction: column;
    text-align: center;
  }
  
  .profile-status {
    justify-content: center;
  }
  
  .profile-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  .attendance-overview {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.5rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .attendance-overview {
    grid-template-columns: 1fr;
  }
  
  .class-filters {
    justify-content: center;
  }
  
  .subject-grade {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .progress-bar {
    width: 100%;
  }
}

/*************** UTILITY CLASSES ****************/
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }

.d-flex { display: flex; }
.d-none { display: none; }
.d-block { display: block; }

.justify-between { justify-content: space-between; }
.align-center { align-items: center; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.rounded { border-radius: var(--radius); }
.shadow { box-shadow: var(--shadow); }

/*************** LOADING STATES ****************/
.loading {
  opacity: 0.7;
  pointer-events: none;
  position: relative;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid var(--border);
  border-top: 2px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
/* Enhanced Student Profile Styles - FIXED COLORS */
:root {
    --deep-blue: #1e3a8a;
    --deep-blue-light: #3b82f6;
    --deep-blue-lighter: #dbeafe;
    --gold: #d97706;
    --gold-light: #f59e0b;
    --gold-lighter: #fef3c7;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
}

.profile-header.enhanced {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--deep-blue) 0%, #2d4fa1 100%);
    color: white;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.profile-photo-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--gold);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    flex-shrink: 0;
}

.profile-photo-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    color: var(--text-light);
}

.photo-placeholder i {
    font-size: 3rem;
    color: var(--text-light);
}

.profile-info-enhanced {
    flex: 1;
}

.profile-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.profile-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-label {
    font-weight: 600;
    color: var(--gold-light);
    font-size: 0.9rem;
}

.meta-value {
    color: white;
    font-weight: 500;
}

.profile-status-enhanced {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.status-badge-enhanced {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.status-badge-enhanced.status-active {
    background: var(--gold);
    color: white;
    border-color: var(--gold);
}

.medical-badge-enhanced {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: #dc2626;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Enhanced Tabs - FIXED VISIBILITY */
.profile-tabs-enhanced {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
    flex-wrap: wrap;
}

.tab-btn-enhanced {
    padding: 0.75rem 1.5rem;
    border: none;
    background: none;
    color: var(--text-light);
    font-weight: 600;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid transparent;
}

.tab-btn-enhanced:hover {
    background: var(--bg-light);
    color: var(--deep-blue);
    border-color: #e5e7eb;
}

.tab-btn-enhanced.active {
    background: var(--deep-blue);
    color: white;
    border-color: var(--deep-blue);
}

.tab-btn-enhanced i {
    font-size: 1rem;
    opacity: 0.9;
}

/* Enhanced Tab Content */
.tab-content-enhanced {
    min-height: 400px;
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1.5rem;
}

.tab-pane-enhanced {
    display: none;
}

.tab-pane-enhanced.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Enhanced Cards - FIXED TEXT CONTRAST */
.info-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.info-card-enhanced {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
}

.info-card-enhanced h4 {
    color: var(--deep-blue);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 0.5rem;
}

.info-card-enhanced h4 i {
    color: var(--gold);
    width: 20px;
}

.info-item-enhanced {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--bg-light);
}

.info-item-enhanced:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-item-enhanced label {
    font-weight: 600;
    color: var(--text-dark);
    min-width: 140px;
    font-size: 0.9rem;
}

.info-item-enhanced span {
    color: var(--text-light);
    flex: 1;
    text-align: right;
    font-weight: 500;
}

.medical-notes {
    background: var(--gold-lighter);
    padding: 0.75rem;
    border-radius: 6px;
    font-style: italic;
    color: var(--text-dark);
    border-left: 3px solid var(--gold);
}

.contact-info, .email-info, .address-info {
    color: var(--deep-blue) !important;
    font-weight: 600 !important;
}

/* Enhanced Stats - FIXED VISIBILITY */
.stats-card {
    background: linear-gradient(135deg, var(--deep-blue) 0%, #2d4fa1 100%) !important;
    color: white;
}

.stats-card h4 {
    color: white !important;
}

.stats-card h4 i {
    color: var(--gold-light) !important;
}

.stats-grid-enhanced {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-item-enhanced {
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    color: white;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Fix Table Headers in Main Student List */
.enhanced-table thead th {
    background: var(--deep-blue) !important;
    color: white !important;
    font-weight: 600;
    padding: 1rem 0.75rem;
    border-bottom: 2px solid var(--gold);
}

.enhanced-table thead th i {
    color: var(--gold-light) !important;
    margin-right: 0.5rem;
}
// Proper student object structure
{
    photo: "url_or_placeholder",
    admissionNo: "ADW001", 
    name: "John Kamau",
    parentContact: "Mary Kamau - +254712345678",
    grade: "Grade 5",
    age: "13 years",
    gender: "Male",
    medical: "None",
    status: "Active"
}
/* FIX STUDENT TABLE - ADD THESE STYLES */

.students-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.students-table th {
    background: var(--primary);
    color: white;
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    border: none;
}

.students-table td {
    padding: 12px 8px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

/* Clean up student photo */
.student-photo-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
}

.student-photo-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Better text hierarchy */
.student-name {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    font-size: 14px;
}

.student-parent, 
.student-contact {
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 2px;
}

/* Fix action buttons */
.action-buttons {
    display: flex;
    gap: 4px;
}

.action-buttons .btn {
    padding: 4px 8px;
    font-size: 11px;
    min-width: auto;
}

/* ===== STUDENT TABLE FIXES ===== */

/* Fix table container overflow */
.table-responsive {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--border);
}

/* Fix table structure */
.enhanced-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 1200px; /* Ensure table doesn't break on small screens */
}

.enhanced-table th {
    background: var(--primary);
    color: white;
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    border: none;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 10;
}

.enhanced-table td {
    padding: 12px 8px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    white-space: nowrap;
}

.enhanced-table tr:hover {
    background-color: rgba(37, 99, 235, 0.05);
}

/* Fix student photo display */
.student-photo-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    margin: 0 auto;
}

.student-photo-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.student-photo-small i {
    color: var(--text-light);
    font-size: 16px;
}

/* Fix text hierarchy in table */
.student-name {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
    display: block;
    font-size: 14px;
}

.student-details {
    font-size: 12px;
    color: var(--text-light);
    display: block;
}

/* Fix action buttons */
.action-buttons {
    display: flex;
    gap: 4px;
    justify-content: center;
    flex-wrap: nowrap;
}

.action-buttons .btn {
    padding: 6px 8px;
    font-size: 12px;
    min-width: auto;
    border-radius: 4px;
}

/* Fix status badges in table */
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    text-align: center;
    min-width: 70px;
}

/* Fix medical badges */
.medical-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    display: inline-block;
    text-align: center;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Fix table footer */
.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 1rem;
}

.table-info {
    color: var(--text-light);
    font-size: 14px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-info {
    color: var(--text-light);
    font-size: 14px;
}

/* Fix filter section */
.filters-container {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 150px;
}

.filter-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.class-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.filter-btn:hover {
    background: var(--bg-light);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Fix search box */
.search-box.enhanced {
    position: relative;
    min-width: 300px;
}

.search-box.enhanced i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.search-box.enhanced input {
    padding-left: 3rem;
    border-radius: 25px;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .enhanced-table {
        font-size: 12px;
        min-width: 1000px;
    }
    
    .enhanced-table th,
    .enhanced-table td {
        padding: 8px 6px;
    }
    
    .filters-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .search-box.enhanced {
        min-width: auto;
    }
    
    .table-footer {
        flex-direction: column;
        text-align: center;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 2px;
    }
    
    .action-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .enhanced-table {
        min-width: 800px;
    }
    
    .stats-overview {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .class-filters {
        justify-content: center;
    }
}
/* ===== ACTION BUTTONS FIX ===== */

/* Make action buttons icons-only and larger */
.action-buttons {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: nowrap;
}

.action-buttons .btn {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 16px;
    min-width: auto;
}

/* Remove any text content from action buttons */
.action-buttons .btn span,
.action-buttons .btn-text {
    display: none !important;
}

/* Ensure only icons are visible */
.action-buttons .btn i {
    margin: 0 !important;
    font-size: 16px;
}

/* Hover effects */
.action-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Specific button colors */
.action-buttons .btn-primary {
    background: var(--primary);
    color: white;
    border: 1px solid var(--primary);
}

.action-buttons .btn-warning {
    background: var(--warning);
    color: white;
    border: 1px solid var(--warning);
}

.action-buttons .btn-danger {
    background: var(--danger);
    color: white;
    border: 1px solid var(--danger);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .action-buttons {
        gap: 4px;
    }
    
    .action-buttons .btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .action-buttons .btn i {
        font-size: 14px;
    }
}
.header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    width: 100%;
}

.section-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 1rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.filters-container {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: end;
    width: 100%;
}
/* Add to style.css */

/* Fix button styles */
.action-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Dropdown improvements */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    z-index: 1000;
    margin-top: 0.5rem;
    border: 1px solid var(--border);
}

.dropdown-content.show {
    display: block;
    animation: slideDown 0.2s ease;
}

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

.dropdown-content a {
    color: var(--text);
    padding: 0.75rem 1rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-light);
    transition: background-color 0.2s;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: var(--secondary);
    color: var(--primary);
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 0.25rem 0;
}

/* Upload area styles */
.upload-area {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--bg-light);
}

.upload-area:hover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

.upload-area.dragover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
}

.upload-area i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.upload-area p {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    color: var(--text);
}

.upload-area small {
    color: var(--text-light);
    display: block;
    margin-bottom: 1rem;
}

/* Import preview table */
#importPreview {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.import-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* Progress bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--success);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .action-buttons .btn,
    .dropdown {
        width: 100%;
        justify-content: center;
    }
    
    .dropdown-content {
        right: auto;
        left: 0;
        min-width: 100%;
    }
}.btn-large {
    padding: 1rem 1.5rem !important;
    font-size: 1rem !important;
    min-width: 160px !important;
    height: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem !important;
}
/* ===== FIXED STUDENT PROFILE STYLES ===== */

.student-profile {
    color: white;
}

/* Fixed Profile Header with Deep Blue Background */
.profile-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--deep-blue), var(--deep-blue-dark));
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.profile-photo-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--deep-blue);
    font-size: 3rem;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border: 4px solid var(--gold);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.profile-photo-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Bold Gold Student Name */
.profile-name {
    color: var(--gold);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Student Details with Icons */
.profile-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.student-detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gold-light);
    font-size: 1.1rem;
    font-weight: 500;
}

.student-detail-item i {
    color: var(--gold);
    width: 20px;
    text-align: center;
    font-size: 1.2rem;
}

/* Fixed Profile Tabs - More Visible */
.profile-actions-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.profile-action-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    min-width: 160px;
    justify-content: center;
}

.profile-action-btn.active,
.profile-action-btn:hover {
    background: var(--gold);
    color: var(--deep-blue);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* Enhanced Info Cards with Better Readability */
.info-card {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.9), rgba(30, 42, 94, 0.9));
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gold);
}

.info-card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--deep-blue);
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.info-card-title {
    color: var(--gold);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Enhanced Text Readability */
.info-label {
    color: var(--gold-light) !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    color: white !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
}

.stat-value {
    color: var(--gold) !important;
    font-size: 1.8rem !important;
    font-weight: 800 !important;
}

.stat-label {
    color: var(--gold-light) !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
}

/* Personal Info Grid */
.personal-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.info-item-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.info-item-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Enhanced Quick Actions */
.form-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--glass-border);
}

.form-actions .btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.form-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Quick Actions Dropdown */
.quick-actions-dropdown {
    position: relative;
    display: inline-block;
}

.quick-actions-menu {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--deep-blue), var(--deep-blue-dark));
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    min-width: 200px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    z-index: 1000;
    margin-bottom: 0.5rem;
}

.quick-actions-menu.show {
    display: block;
    animation: slideDown 0.3s ease;
}

.quick-action-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.quick-action-item:hover {
    background: var(--gold);
    color: var(--deep-blue);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Enhanced Status Badges */
.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 2px solid rgba(34, 197, 94, 0.4);
}

.status-graduated {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 2px solid rgba(59, 130, 246, 0.4);
}

.status-transferred {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 2px solid rgba(245, 158, 11, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-header {
        padding: 1.5rem;
    }
    
    .profile-name {
        font-size: 1.5rem;
    }
    
    .profile-actions-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .profile-action-btn {
        min-width: auto;
        justify-content: center;
    }
    
    .personal-info-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
}
/* BASE STYLES - Add to your existing style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    min-height: 100vh;
    padding: 20px;
    color: #1e293b;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.students-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

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

.students-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.students-table img.student-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e0e0e0;
}

.student-photo-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e0e0e0;
}

.student-photo-placeholder i {
    color: #999;
    font-size: 16px;
}
.class-header {
    background: green !important;
    padding: 15px;
    border-radius: 8px 8px 0 0;
    border-left: 4px solid #ff0000;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.class-header h3.class-name {
    color: white !important;
    font-weight: bold !important;
    font-size: 18px;
    margin: 0 0 8px 0;
    text-align: center;
}

.class-level {
    background: rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}
/* ✅ AI FLOATING SIDEBAR */
.ai-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  height: 100vh;
  background: rgba(10, 18, 32, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: -4px 0 20px rgba(0,0,0,0.4);
  transition: right 0.35s ease;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  border-left: 2px solid var(--primary);
}

.ai-sidebar.active {
  right: 0;
}

.ai-sidebar-header {
  padding: 1rem;
  background: rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  color: white;
  cursor: pointer;
}

.ai-sidebar-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.ai-sidebar-input {
  padding: 0.8rem;
  background: rgba(255,255,255,0.06);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  gap: 0.5rem;
}

.ai-sidebar-input input {
  flex: 1;
  padding: 0.7rem;
  border-radius: 8px;
  border: none;
  background: rgba(255,255,255,0.15);
  color: white;
}

.ai-sidebar-input button {
  width: 45px;
  height: 45px;
  border-radius: 8px;
  border: none;
  background: var(--primary);
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
}

/* ✅ Messages */
.ai-msg {
  padding: 0.8rem 1rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  max-width: 90%;
}

.ai-msg-ai {
  background: rgba(37, 199, 255, 0.15);
  border-left: 3px solid #26c9ff;
}

.ai-msg-user {
  background: rgba(88, 255, 120, 0.2);
  border-left: 3px solid #4cff6c;
  margin-left: auto;
}
/* ===== AI SIDEBAR CONTAINER ===== */
.ai-sidebar {
  background: rgba(15, 25, 35, 0.6);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.35);
  border-radius: 18px;
  color: #f4f6f8;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  overflow-y: auto;
  padding: 16px;
}

/* ===== RECORDING GLOW (Gemini Style) ===== */
.ai-sidebar.recording {
  border: 1px solid rgba(0, 255, 180, 0.6);
  box-shadow: 0 0 25px rgba(0, 255, 180, 0.3);
  animation: pulseGlow 2s infinite ease-in-out;
}
@keyframes pulseGlow {
  0% { box-shadow: 0 0 18px rgba(0, 255, 180, 0.2); }
  50% { box-shadow: 0 0 32px rgba(0, 255, 180, 0.6); }
  100% { box-shadow: 0 0 18px rgba(0, 255, 180, 0.2); }
}

/* ===== CHAT BUBBLES ===== */
.ai-chat-bubble {
  max-width: 85%;
  padding: 12px 18px;
  margin: 8px 0;
  border-radius: 18px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
  font-weight: 500;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* USER message bubble */
.ai-chat-bubble.user {
  background: linear-gradient(135deg, rgba(0, 255, 180, 0.25), rgba(0, 255, 180, 0.1));
  align-self: flex-end;
  border: 1px solid rgba(0, 255, 180, 0.4);
}

/* AI message bubble */
.ai-chat-bubble.bot {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  align-self: flex-start;
}

/* Optional glowing AI icon during speech */
.ai-icon.recording {
  filter: drop-shadow(0 0 14px #00ffb4);
  transition: filter 0.3s ease-in-out;
}

/* Improve scroll visibility */
.ai-sidebar::-webkit-scrollbar {
  width: 6px;
}
.ai-sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
}
/* ===== CSS VARIABLES ===== */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #64748b;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --dark: #1e293b;
  --light: #f8fafc;
  --text: #1e293b;
  --text-light: #64748b;
  --bg: #ffffff;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --shadow: rgba(0, 0, 0, 0.1);
  --sidebar-bg: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  --sidebar-border: #e2e8f0;
}

[data-theme="dark"] {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --secondary: #94a3b8;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --dark: #f8fafc;
  --light: #1e293b;
  --text: #f8fafc;
  --text-light: #cbd5e1;
  --bg: #0f172a;
  --card-bg: #1e293b;
  --border: #334155;
  --shadow: rgba(0, 0, 0, 0.3);
  --sidebar-bg: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  --sidebar-border: #334155;
}

/* ===== FULL HEIGHT LAYOUT ===== */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.container {
  display: flex;
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  padding: 0;
  margin: 0;
  max-width: 100%;
}

/* ===== ENHANCED MODERN SIDEBAR ===== */
.sidebar {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  box-shadow: 4px 0 20px var(--shadow);
  backdrop-filter: blur(10px);
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 1000;
  overflow-y: auto;
  overflow-x: hidden;
}

.sidebar-content {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 0 0.5rem;
}

.logo-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--success));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.logo-text h1 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
}

.logo-text p {
  font-size: 0.75rem;
  color: var(--text-light);
  margin: 0;
  opacity: 0.8;
}

.nav-divider {
  padding: 1rem 0.5rem 0.5rem;
  margin: 1rem 0;
  border-top: 1px solid var(--border);
}

.nav-divider span {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modern-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.nav-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
}

.nav-btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  transition: width 0.6s ease;
}

.nav-btn:hover::before {
  width: 100%;
}

.nav-btn:hover {
  transform: translateX(8px);
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .nav-btn:hover {
  background: rgba(255, 255, 255, 0.05);
}

.nav-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}

.nav-btn.active .nav-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.nav-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.nav-text {
  font-weight: 500;
  font-size: 0.9rem;
  flex: 1;
}

.nav-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
  transition: all 0.3s ease;
}

.nav-btn.active .nav-indicator {
  background: white;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* Futuristic button backgrounds with gradients */
.dashboard-btn .nav-icon { 
  background: linear-gradient(135deg, #10B981, #059669, #047857);
  color: white; 
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.students-btn .nav-icon { 
  background: linear-gradient(135deg, #3B82F6, #2563EB, #1D4ED8);
  color: white; 
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.teachers-btn .nav-icon { 
  background: linear-gradient(135deg, #8B5CF6, #7C3AED, #6D28D9);
  color: white; 
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.classes-btn .nav-icon { 
  background: linear-gradient(135deg, #F59E0B, #D97706, #B45309);
  color: white; 
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.attendance-btn .nav-icon { 
  background: linear-gradient(135deg, #EF4444, #DC2626, #B91C1C);
  color: white; 
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.3);
}

.performance-btn .nav-icon { 
  background: linear-gradient(135deg, #06B6D4, #0891B2, #0E7490);
  color: white; 
  box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.reports-btn .nav-icon { 
  background: linear-gradient(135deg, #84CC16, #65A30D, #4D7C0F);
  color: white; 
  box-shadow: 0 4px 15px rgba(132, 204, 22, 0.3);
}

.settings-btn .nav-icon { 
  background: linear-gradient(135deg, #6B7280, #4B5563, #374151);
  color: white; 
  box-shadow: 0 4px 15px rgba(107, 114, 128, 0.3);
}

/* Hover effects for individual buttons */
.dashboard-btn:hover .nav-icon { transform: scale(1.1) rotate(5deg); }
.students-btn:hover .nav-icon { transform: scale(1.1) rotate(-5deg); }
.teachers-btn:hover .nav-icon { transform: scale(1.1) rotate(5deg); }
.classes-btn:hover .nav-icon { transform: scale(1.1) rotate(-5deg); }
.attendance-btn:hover .nav-icon { transform: scale(1.1) rotate(5deg); }
.performance-btn:hover .nav-icon { transform: scale(1.1) rotate(-5deg); }
.reports-btn:hover .nav-icon { transform: scale(1.1) rotate(5deg); }
.settings-btn:hover .nav-icon { transform: scale(1.1) rotate(-5deg); }

/* Sidebar Footer */
.sidebar-footer {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  border: 1px solid var(--border);
}

[data-theme="dark"] .user-profile {
  background: rgba(255, 255, 255, 0.05);
}

.user-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--success));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}

.user-info {
  flex: 1;
}

.user-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.user-role {
  font-size: 0.75rem;
  color: var(--text-light);
}

.user-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.user-status.online {
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
  animation: pulse 2s infinite;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  flex: 1;
  margin-left: 280px;
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg);
}

.section {
  display: none;
  padding: 2rem;
  flex: 1;
}

.section.active {
  display: block;
}

/* ===== ENHANCED COMPONENTS ===== */
.theme-toggle {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 50px;
  padding: 8px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  color: var(--text);
  font-size: 0.875rem;
}

.theme-toggle:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.enhanced-stat-card {
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg) 100%);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px var(--shadow);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.enhanced-stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px var(--shadow);
}

.stat-trend {
  font-size: 0.75rem;
  color: var(--success);
  margin-top: 0.5rem;
  font-weight: 600;
}

.glow-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 4px 6px var(--shadow);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.glow-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow), 0 0 0 1px var(--primary);
}

.ai-insight-enhanced {
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  position: relative;
  overflow: hidden;
}

.ai-insight-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--success));
}

.glow-text {
  background: linear-gradient(135deg, var(--primary), var(--success));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateX(-100%); }
  to { transform: translateX(0); }
}

* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  
  .sidebar.open {
    transform: translateX(0);
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .container {
    flex-direction: column;
  }
}
/* Container styling */
.container {
  display: flex;
  gap: 20px;
  padding: 20px;
  min-height: 100vh;
  background: var(--bg);
}

/* Sidebar rounded styling */
.sidebar {
  border-radius: 20px;
  padding: 25px 20px;
  width: 280px;
  min-height: calc(100vh - 40px);
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px var(--shadow);
  flex-shrink: 0;
  overflow-y: auto;
}

/* Main content rounded styling */
.main-content {
  border-radius: 20px;
  padding: 25px;
  flex: 1;
  min-height: calc(100vh - 40px);
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px var(--shadow);
  overflow-y: auto;
}

/* Rest of your existing styles remain the same */
.theme-toggle {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 50px;
  padding: 8px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  color: var(--text);
  font-size: 0.875rem;
}

.theme-toggle:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.enhanced-stat-card {
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg) 100%);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px var(--shadow);
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.enhanced-stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px var(--shadow);
}

.glow-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 4px 6px var(--shadow);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.glow-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow), 0 0 0 1px var(--primary);
}
/* Scrollbar styling */
.sidebar::-webkit-scrollbar,
.main-content::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track,
.main-content::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

.sidebar::-webkit-scrollbar-thumb,
.main-content::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
    max-height: 100px;
}

/* Ensure scrollbar doesn't overflow */
.sidebar,
.main-content {
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

:root {
    /* Make "morphism" the default theme */
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #94a3b8;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #f8fafc;
    --light: #1e293b;
    --text: #1e293b;
    --text-light: #6b7280;
    --bg: linear-gradient(135deg, #F0F2F5 0%, #FFFFFF 100%);
    --card-bg: #FFFFFF;
    --border: #E0E0E0;
    --shadow: rgba(0, 0, 0, 0.08);
}

/* Keep an explicit morphism selector (identical to :root) so setting data-theme="morphism"
   remains valid, but the default (no attribute) will now use morphism values from :root. */
[data-theme="morphism"] {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #94a3b8;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #f8fafc;
    --light: #1e293b;
    --text: #1e293b;
    --text-light: #6b7280;
    --bg: linear-gradient(135deg, #F0F2F5 0%, #FFFFFF 100%);
    --card-bg: #FFFFFF;
    --border: #E0E0E0;
    --shadow: rgba(0, 0, 0, 0.08);
}

[data-theme="morphism"]::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(59, 130, 246, 0.05) 0%, transparent 25%);
    pointer-events: none;
    z-index: -1;
}

[data-theme="morphism"] .container {
    background: transparent;
}

[data-theme="morphism"] .main-content {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="morphism"] .sidebar {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="morphism"] .glow-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

[data-theme="morphism"] .glow-card:hover {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 
        0 8px 30px rgba(59, 130, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="morphism"] .enhanced-stat-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

[data-theme="morphism"] .enhanced-stat-card:hover {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

/* Dark Mode (override) remains available via data-theme="dark" */
[data-theme="dark"] {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #94a3b8;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #f8fafc;
    --light: #1e293b;
    --text: #f8fafc;
    --text-light: #cbd5e1;
    --bg: #0f172a;
    --card-bg: #1e293b;
    --border: #334155;
    --shadow: rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .container {
    background: var(--bg);
}

[data-theme="dark"] .main-content {
    background: var(--card-bg);
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px var(--shadow);
}

[data-theme="dark"] .sidebar {
    background: var(--card-bg);
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px var(--shadow);
}

[data-theme="dark"] .glow-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    box-shadow: 0 4px 6px var(--shadow);
}

[data-theme="dark"] .glow-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow), 0 0 0 1px var(--primary);
}

[data-theme="dark"] .enhanced-stat-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg) 100%);
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px var(--shadow);
}

[data-theme="dark"] .enhanced-stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px var(--shadow);
}

* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}


  /* Sidebar Button Styles with Glass Morphism */
   .nav-menu {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .nav-item {
    margin: 0;
  }

  .sidebar-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 70px;
    
    /* Subtle glass morphism - reduced blur */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
  }

  /* Solid header background for logo */
  .sidebar-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    margin: -25px -20px 25px -20px; /* Counteract sidebar padding */
    padding: 25px 20px;
    border-radius: 20px 20px 0 0;
    position: relative;
    z-index: 10;
  }

  .sidebar-header::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), transparent);
  }

  /* Enhanced logo styling for solid background */
  .logo h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: white;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    font-weight: 700;
  }

  .logo h1 i {
    font-size: 1.5rem;
    margin-right: 0.5rem;
  }

  .logo p {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    font-weight: 500;
    margin: 0;
  }

  /* Solid color bases with subtle glass overlay */
  .dashboard-btn {
    background: 
      linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(29, 78, 216, 0.9)),
      linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
  }

  .students-btn {
    background: 
      linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(4, 120, 87, 0.9)),
      linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
  }

  .teachers-btn {
    background: 
      linear-gradient(135deg, rgba(245, 158, 11, 0.9), rgba(217, 119, 6, 0.9)),
      linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.3);
  }

  .classes-btn {
    background: 
      linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(124, 58, 237, 0.9)),
      linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
  }

  .attendance-btn {
    background: 
      linear-gradient(135deg, rgba(236, 72, 153, 0.9), rgba(219, 39, 119, 0.9)),
      linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    box-shadow: 0 8px 25px rgba(236, 72, 153, 0.3);
  }

  .performance-btn {
    background: 
      linear-gradient(135deg, rgba(6, 182, 212, 0.9), rgba(8, 145, 178, 0.9)),
      linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.3);
  }

  .reports-btn {
    background: 
      linear-gradient(135deg, rgba(132, 204, 22, 0.9), rgba(101, 163, 13, 0.9)),
      linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    box-shadow: 0 8px 25px rgba(132, 204, 22, 0.3);
  }

  .settings-btn {
    background: 
      linear-gradient(135deg, rgba(107, 114, 128, 0.9), rgba(75, 85, 99, 0.9)),
      linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
    box-shadow: 0 8px 25px rgba(107, 114, 128, 0.3);
  }

  /* Hover effects - slightly more glassy */
  .dashboard-btn:hover {
    background: 
      linear-gradient(135deg, rgba(59, 130, 246, 0.95), rgba(29, 78, 216, 0.95)),
      linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.4);
  }

  .students-btn:hover {
    background: 
      linear-gradient(135deg, rgba(16, 185, 129, 0.95), rgba(4, 120, 87, 0.95)),
      linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.4);
  }

  .teachers-btn:hover {
    background: 
      linear-gradient(135deg, rgba(245, 158, 11, 0.95), rgba(217, 119, 6, 0.95)),
      linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
    box-shadow: 0 12px 35px rgba(245, 158, 11, 0.4);
  }

  .classes-btn:hover {
    background: 
      linear-gradient(135deg, rgba(139, 92, 246, 0.95), rgba(124, 58, 237, 0.95)),
      linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
    box-shadow: 0 12px 35px rgba(139, 92, 246, 0.4);
  }

  .attendance-btn:hover {
    background: 
      linear-gradient(135deg, rgba(236, 72, 153, 0.95), rgba(219, 39, 119, 0.95)),
      linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
    box-shadow: 0 12px 35px rgba(236, 72, 153, 0.4);
  }

  .performance-btn:hover {
    background: 
      linear-gradient(135deg, rgba(6, 182, 212, 0.95), rgba(8, 145, 178, 0.95)),
      linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
    box-shadow: 0 12px 35px rgba(6, 182, 212, 0.4);
  }

  .reports-btn:hover {
    background: 
      linear-gradient(135deg, rgba(132, 204, 22, 0.95), rgba(101, 163, 13, 0.95)),
      linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
    box-shadow: 0 12px 35px rgba(132, 204, 22, 0.4);
  }

  .settings-btn:hover {
    background: 
      linear-gradient(135deg, rgba(107, 114, 128, 0.95), rgba(75, 85, 99, 0.95)),
      linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
    box-shadow: 0 12px 35px rgba(107, 114, 128, 0.4);
  }

  .sidebar-btn:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.5);
  }

  .sidebar-btn:hover .btn-arrow {
    transform: translateX(6px);
  }

  /* Active state - crisp and clear */
  .sidebar-btn.active {
    background: 
      linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15)),
      linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 
      0 15px 35px rgba(0, 0, 0, 0.2),
      inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
  }

  .btn-content {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  /* Crisp, clear icons and text */
  .sidebar-btn i:first-child {
    font-size: 1.5rem;
    width: 30px;
    text-align: center;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
  }

  .sidebar-btn span {
    font-size: 1.25rem;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.3px;
  }

  .btn-arrow {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
    color: rgba(255, 255, 255, 0.9);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
  }

  /* Clear active state indicator */
  .sidebar-btn.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0 8px 8px 0;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
  }

  /* Subtle shine effect */
  .sidebar-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, 
      transparent, 
      rgba(255, 255, 255, 0.2), 
      transparent
    );
    transition: left 0.6s ease;
  }

  .sidebar-btn:hover::after {
    left: 150%;
  }

  /* Container styling */
  .container {
    display: flex;
    gap: 20px;
    padding: 20px;
    min-height: 100vh;
    background: var(--bg);
  }

  /* Sidebar with subtle glass */
  .sidebar {
    border-radius: 20px;
    padding: 0; /* Remove padding since header handles it */
    width: 320px;
    min-height: calc(100vh - 40px);
    
    /* Reduced blur for clarity */
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
      0 8px 32px rgba(0, 0, 0, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  /* Navigation content area */
  .sidebar .nav-menu {
    padding: 0 20px 25px 20px; /* Add padding only to nav area */
  }
 /* Reduced Sidebar Size */
  .sidebar {
    border-radius: 20px;
    padding: 20px 15px; /* Reduced from 25px 20px */
    width: 280px; /* Reduced from 320px */
    min-height: calc(100vh - 40px);
    background: var(--card-bg);
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px var(--shadow);
    flex-shrink: 0;
    overflow-y: auto;
  }

  /* Adjusted Logo Size */
  .logo h1 {
    font-size: 1.3rem; /* Reduced from 1.5rem */
    margin-bottom: 0.4rem; /* Reduced from 0.5rem */
    color: white;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    font-weight: 700;
  }

  .logo h1 i {
    font-size: 1.3rem; /* Reduced from 1.5rem */
    margin-right: 0.4rem; /* Reduced from 0.5rem */
  }

  .logo p {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    font-weight: 500;
    margin: 0;
    font-size: 0.8rem; /* Reduced from 0.875rem */
  }

  /* Reduced Navigation Menu Spacing */
  .nav-menu {
    list-style: none;
    padding: 0;
    margin: 1.75rem 0; /* Reduced from 2rem */
    display: flex;
    flex-direction: column;
    gap: 0.4rem; /* Reduced from 0.5rem */
  }

  /* Smaller Sidebar Buttons */
  .sidebar-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.1rem; /* Reduced from 1rem 1.25rem */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-size: 0.95rem; /* Reduced from 1rem */
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 60px; /* Reduced from 70px */
  }

  /* Smaller Button Content */
  .btn-content {
    display: flex;
    align-items: center;
    gap: 0.7rem; /* Reduced from 0.75rem */
  }

  /* Smaller Icons */
  .sidebar-btn i:first-child {
    font-size: 1.3rem; /* Reduced from 1.5rem */
    width: 25px; /* Reduced from 30px */
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }

  /* Smaller Text */
  .sidebar-btn span {
    font-size: 1.1rem; /* Reduced from 1.25rem */
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.2px; /* Slightly reduced */
  }

  /* Smaller Arrow */
  .btn-arrow {
    font-size: 1rem; /* Reduced from 1.1rem */
    transition: transform 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  }

  /* Smaller Active State Indicator */
  .sidebar-btn.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px; /* Reduced from 4px */
    height: 55%; /* Reduced from 60% */
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0 6px 6px 0; /* Slightly reduced */
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.6); /* Reduced glow */
  }

  /* Adjusted Container Gap */
  .container {
    display: flex;
    gap: 18px; /* Slightly reduced from 20px */
    padding: 20px;
    min-height: 100vh;
    background: var(--bg);
  }

  /* Reduced Header Padding */
  .sidebar-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    margin: -20px -15px 20px -15px; /* Adjusted for new padding */
    padding: 20px 15px; /* Reduced from 25px 20px */
    border-radius: 20px 20px 0 0;
    position: relative;
    z-index: 10;
  }

  .sidebar-header::after {
    content: '';
    position: absolute;
    bottom: -8px; /* Reduced from -10px */
    left: 0;
    width: 100%;
    height: 8px; /* Reduced from 10px */
    background: linear-gradient(to bottom, rgba(0,0,0,0.1), transparent);
  }

  /* Navigation content area adjustment */
  .sidebar .nav-menu {
    padding: 0 15px 20px 15px; /* Reduced from 0 20px 25px 20px */
  }

  /* Responsive adjustments for smaller sidebar */
  @media (max-width: 1200px) {
    .sidebar {
      width: 260px; /* Slightly smaller on medium screens */
    }
  }

  @media (max-width: 768px) {
    .sidebar {
      width: 280px; /* Maintain reasonable width on mobile */
      position: fixed;
      z-index: 1000;
      transform: translateX(-100%);
      transition: transform 0.3s ease;
    }
    
    .sidebar.open {
      transform: translateX(0);
    }
  }
   /* Enhanced Quick Stats with RGB Edges Only */
  .quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
  }

  .enhanced-stat-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg) 100%);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px var(--shadow);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    /* Keep all your existing card styles */
  }

  /* RGB Border Animation - EDGES ONLY */
  .enhanced-stat-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
      #ff0000, #ff8000, #ffff00, #80ff00, 
      #00ff00, #00ff80, #00ffff, #0080ff, 
      #0000ff, #8000ff, #ff00ff, #ff0080, #ff0000);
    background-size: 400% 400%;
    border-radius: 18px; /* Slightly larger than card */
    z-index: -1;
    animation: rgbBorder 3s linear infinite;
    opacity: 0.8;
  }

  @keyframes rgbBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }

  /* Mask to hide RGB inside the card */
  .enhanced-stat-card::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background: inherit;
    border-radius: 14px; /* Same as card radius minus border */
    z-index: -1;
  }

  /* Hover effects - enhance RGB on hover */
  .enhanced-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow);
  }

  .enhanced-stat-card:hover::before {
    opacity: 1;
    animation-duration: 1.5s;
    filter: brightness(1.2);
  }

  /* Keep all your existing content styles intact */
  .stat-value {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.5rem;
  }

  .stat-label {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 0.5rem;
    font-weight: 600;
  }

  .stat-trend {
    font-size: 0.875rem;
    color: var(--success);
    font-weight: 600;
  }

  /* Individual card animation delays for wave effect */
  .enhanced-stat-card:nth-child(1)::before {
    animation-delay: 0s;
  }

  .enhanced-stat-card:nth-child(2)::before {
    animation-delay: -0.5s;
  }

  .enhanced-stat-card:nth-child(3)::before {
    animation-delay: -1s;
  }

  .enhanced-stat-card:nth-child(4)::before {
    animation-delay: -1.5s;
  }

  /* Dark mode adjustments */
  [data-theme="dark"] .enhanced-stat-card::before {
    opacity: 0.7;
  }

  [data-theme="dark"] .enhanced-stat-card:hover::before {
    opacity: 0.9;
  }
/* Enhanced Logo Area - Add this to bottom of CSS */
.sidebar-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    margin: -20px -15px 25px -15px;
    padding: 25px 20px;
    border-radius: 20px 20px 0 0;
    position: relative;
    z-index: 10;
    text-align: center;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.logo h1 {
    font-size: 1.8rem;
    margin-bottom: 0;
    color: white;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    font-weight: 800;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo h1 i {
    font-size: 2rem;
    color: #FFD700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    animation: gentlePulse 3s ease-in-out infinite;
}

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

/* Double line separator */
.logo::after {
    content: '';
    display: block;
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.6) 20%, 
        rgba(255, 255, 255, 0.8) 50%, 
        rgba(255, 255, 255, 0.6) 80%, 
        transparent 100%);
    margin: 0.5rem auto;
    position: relative;
}

.logo::before {
    content: '';
    display: block;
    width: 60%;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
    margin: 0 auto 0.5rem auto;
}

.logo p {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 600;
    margin: 0;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

/* Light mode adjustments */
[data-theme="light"] {
  --bg: linear-gradient(135deg, #F0F2F5 0%, #FFFFFF 100%);
  background: var(--bg);
  position: relative;
}

[data-theme="light"]::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 15% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(184, 134, 11, 0.05) 0%, transparent 25%);
  pointer-events: none;
  z-index: -1;
}

[data-theme="light"] .container {
  background: transparent;
}

[data-theme="light"] .main-content {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .sidebar {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .glow-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

[data-theme="light"] .glow-card:hover {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.3);
  box-shadow: 
    0 8px 30px rgba(184, 134, 11, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .enhanced-stat-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

[data-theme="light"] .enhanced-stat-card:hover {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(212, 175, 55, 0.3);
} 

.enhanced-stat-card {
    background: linear-gradient(135deg, var(--card-bg), var(--bg));
    border-radius: 16px;
    padding: 1.5rem;
    border: 2px solid var(--border);
    box-shadow: 0 8px 32px var(--shadow);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* Bigger, bolder numbers - ANALOG STYLE */
.enhanced-stat-card .stat-value {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 0.5rem;
    line-height: 1;
    font-family: 'Arial Black', 'Segoe UI Black', sans-serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: -1px;
}

.enhanced-stat-card .stat-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.75rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.enhanced-stat-card .stat-trend {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Simple analog meter - just a progress bar */
.stat-meter {
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    margin-top: 1rem;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--success));
    border-radius: 3px;
    width: 75%; /* This will be dynamic based on the stat */
    transition: width 1s ease-in-out;
}

/* Analog-style icons */
.analog-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    opacity: 0.7;
    color: var(--primary);
}

/* Hover effects */
.enhanced-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow);
    border-color: var(--primary);
}

.enhanced-stat-card:hover .stat-value {
    color: var(--primary-dark);
    transform: scale(1.05);
    transition: all 0.3s ease;
}
/* Enhanced Quick Stats - Big Numbers & Analog Meters */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.enhanced-stat-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg) 100%);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px var(--shadow);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    min-height: 140px;
}

.enhanced-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow);
}

/* Bigger, bolder numbers - ONLY for quick stats */
#totalStudentsStat,
#totalTeachersStat,
#attendanceRateStat,
#classCountStat {
    font-size: 3rem !important;
    font-weight: 800 !important;
    font-family: 'Arial Black', 'Segoe UI Black', sans-serif !important;
    color: var(--primary) !important;
    margin-bottom: 0.5rem;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.enhanced-stat-card .stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.enhanced-stat-card .stat-trend {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    display: inline-block;
}

/* Simple Analog Meters */
.analog-meter {
    position: absolute;
    bottom: 1rem;
    left: 1.5rem;
    right: 1.5rem;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--success));
    border-radius: 3px;
    transition: width 1s ease-in-out;
}

/* Different meter levels for each stat */
.enhanced-stat-card:nth-child(1) .meter-fill { width: 75%; }
.enhanced-stat-card:nth-child(2) .meter-fill { width: 60%; }
.enhanced-stat-card:nth-child(3) .meter-fill { width: 85%; }
.enhanced-stat-card:nth-child(4) .meter-fill { width: 90%; }

/* RGB Border Effect */
.enhanced-stat-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        #ff0000, #ff8000, #ffff00, #80ff00, 
        #00ff00, #00ff80, #00ffff, #0080ff, 
        #0000ff, #8000ff, #ff00ff, #ff0080, #ff0000);
    background-size: 400% 400%;
    border-radius: 18px;
    z-index: -1;
    animation: rgbBorder 3s linear infinite;
    opacity: 0.7;
}

@keyframes rgbBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
/* Enhanced Quick Stats - Fixed Version */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.enhanced-stat-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg) 100%);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px var(--shadow);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    min-height: 140px;
}

/* Target only the stat-value class within enhanced-stat-card */
.enhanced-stat-card .stat-value {
    font-size: 3rem;
    font-weight: 800;
    font-family: 'Arial Black', 'Segoe UI Black', sans-serif;
    color: var(--primary);
    margin-bottom: 0.5rem;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.enhanced-stat-card .stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.enhanced-stat-card .stat-trend {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    display: inline-block;
}

/* Simple Analog Meters */
.analog-meter {
    position: absolute;
    bottom: 1rem;
    left: 1.5rem;
    right: 1.5rem;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--success));
    border-radius: 3px;
}

/* Different meter levels for each stat */
.enhanced-stat-card:nth-child(1) .meter-fill { width: 75%; }
.enhanced-stat-card:nth-child(2) .meter-fill { width: 60%; }
.enhanced-stat-card:nth-child(3) .meter-fill { width: 85%; }
.enhanced-stat-card:nth-child(4) .meter-fill { width: 90%; }

/* ===== CSS VARIABLES ===== */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #64748b;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --dark: #1e293b;
  --light: #f8fafc;
  --text: #1e293b;
  --text-light: #64748b;
  --bg: #ffffff;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --shadow: rgba(0, 0, 0, 0.1);
  --sidebar-bg: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  --sidebar-border: #e2e8f0;
}

[data-theme="dark"] {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --secondary: #94a3b8;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --dark: #f8fafc;
  --light: #1e293b;
  --text: #f8fafc;
  --text-light: #cbd5e1;
  --bg: #0f172a;
  --card-bg: #1e293b;
  --border: #334155;
  --shadow: rgba(0, 0, 0, 0.3);
  --sidebar-bg: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  --sidebar-border: #334155;
}

/* ===== BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* ===== LAYOUT ===== */
.container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 280px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  padding: 1.5rem;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  overflow-y: auto;
  z-index: 1000;
}

.main-content {
  margin-left: 280px;
  padding: 2rem;
  flex: 1;
  min-height: 100vh;
}

.section {
  display: none;
}

.section.active {
  display: block;
}

/* ===== SIDEBAR STYLES ===== */
.sidebar-header {
  margin-bottom: 2rem;
}

.logo {
  text-align: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.logo p {
  font-size: 0.875rem;
  color: var(--text-light);
}

.nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: var(--text);
  border-radius: 12px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid var(--border);
  font-weight: 500;
}

[data-theme="dark"] .sidebar-btn {
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateX(5px);
  border-color: var(--primary);
}

.sidebar-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateX(5px);
}

.btn-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-content i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.btn-arrow {
  font-size: 0.875rem;
  opacity: 0.7;
}

/* ===== HEADER STYLES ===== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
}

.header-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.theme-toggle {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 50px;
  padding: 8px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  color: var(--text);
  font-size: 0.875rem;
}

.theme-toggle:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* ===== DASHBOARD COMPONENTS ===== */
.quick-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.enhanced-stat-card {
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg) 100%);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px var(--shadow);
  transition: all 0.4s ease;
}

.enhanced-stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px var(--shadow);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.stat-trend {
  font-size: 0.75rem;
  color: var(--success);
  font-weight: 600;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 4px 6px var(--shadow);
}

.glow-card {
  transition: all 0.3s ease;
}

.glow-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow), 0 0 0 1px var(--primary);
}

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

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
}

.card-title {
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.card-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.chart-container {
  height: 300px;
  position: relative;
}

/* ===== AI COMPONENTS ===== */
.ai-insight-enhanced {
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  position: relative;
  overflow: hidden;
}

.ai-insight-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--success));
}

.ai-suggestions {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 0.5rem;
}

.suggestion-item:hover {
  background: var(--bg);
  transform: translateX(5px);
}

.ai-response-card {
  background: var(--bg);
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid var(--border);
}

.ai-response-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.ai-response-hint {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

/* ===== METRICS & STATUS ===== */
.metric-grid, .metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.metric-item {
  text-align: center;
  padding: 1rem;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.metric-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-light);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  margin-left: auto;
}

.status-active .status-indicator {
  animation: pulse 2s infinite;
}

/* ===== AI SIDEBAR ===== */
.ai-sidebar {
  position: fixed;
  right: -400px;
  top: 0;
  width: 380px;
  height: 100vh;
  background: var(--card-bg);
  border-left: 1px solid var(--border);
  box-shadow: -4px 0 20px var(--shadow);
  transition: right 0.3s ease;
  z-index: 1001;
  display: flex;
  flex-direction: column;
}

.ai-sidebar.active {
  right: 0;
}

.ai-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.ai-sidebar-header h3 {
  margin: 0;
  color: var(--text);
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  font-size: 1.25rem;
  padding: 0.25rem;
}

.close-btn:hover {
  color: var(--text);
}

.ai-sidebar-content {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
}

.ai-msg {
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  border-radius: 8px;
  max-width: 85%;
}

.ai-msg-ai {
  background: var(--bg);
  border: 1px solid var(--border);
  align-self: flex-start;
}

.ai-msg-user {
  background: var(--primary);
  color: white;
  align-self: flex-end;
  margin-left: auto;
}

.ai-sidebar-input {
  display: flex;
  padding: 1rem;
  border-top: 1px solid var(--border);
  gap: 0.5rem;
}

.ai-sidebar-input input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
}

.ai-sidebar-input button {
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  cursor: pointer;
  transition: background 0.3s ease;
}

.ai-sidebar-input button:hover {
  background: var(--primary-dark);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.875rem;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-warning {
  background: var(--warning);
  color: white;
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-info {
  background: var(--secondary);
  color: white;
}

//* ===== UTILITY CLASSES ===== */
.glow-text {
  background: linear-gradient(135deg, var(--primary), var(--success));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.projection-info, .trend-info {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-top: 1rem;
}

/* ===== CSS VARIABLES ===== */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #64748b;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --dark: #1e293b;
  --light: #f8fafc;
  --text: #1e293b;
  --text-light: #64748b;
  --bg: #ffffff;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --shadow: rgba(0, 0, 0, 0.1);
  --sidebar-bg: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  --sidebar-border: #e2e8f0;
}

[data-theme="dark"] {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --secondary: #94a3b8;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --dark: #f8fafc;
  --light: #1e293b;
  --text: #f8fafc;
  --text-light: #cbd5e1;
  --bg: #0f172a;
  --card-bg: #1e293b;
  --border: #334155;
  --shadow: rgba(0, 0, 0, 0.3);
  --sidebar-bg: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  --sidebar-border: #334155;
}

/* ===== LIGHT MODE WITH BLUE & GOLD ===== */
[data-theme="light"] {
  --primary: #1e40af;           /* Deep blue */
  --primary-dark: #1e3a8a;      /* Darker blue */
  --bg: linear-gradient(135deg, #dbeafe 0%, #e0f2fe 100%); /* Blue gradient */
  --card-bg: rgba(255, 255, 255, 0.95);
  --border: rgba(212, 175, 55, 0.3); /* Golden border */
  --sidebar-bg: linear-gradient(180deg, rgba(219, 234, 254, 0.9) 0%, rgba(224, 242, 254, 0.8) 100%);
}

/* Optional glass effect for light mode */
[data-theme="light"] .main-content,
[data-theme="light"] .sidebar,
[data-theme="light"] .enhanced-stat-card,
[data-theme="light"] .glow-card {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Golden accents for sidebar in light mode */
[data-theme="light"] .sidebar-header {
  background: linear-gradient(135deg, #1e40af, #1e3a8a);
}

[data-theme="light"] .sidebar-btn {
  border: 1px solid rgba(212, 175, 55, 0.3);
}

[data-theme="light"] .sidebar-btn:hover,
[data-theme="light"] .sidebar-btn.active {
  background: linear-gradient(135deg, #1e40af, #1e3a8a);
  border-color: rgba(255, 215, 0, 0.5);
}

/* ===== BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}


body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* ===== LAYOUT ===== */
.container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 280px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  padding: 1.5rem;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  overflow-y: auto;
  z-index: 1000;
  transition: left 0.3s ease;
}

.main-content {
  margin-left: 280px;
  padding: 2rem;
  flex: 1;
  min-height: 100vh;
  transition: margin-left 0.3s ease;
}

.section {
  display: none;
}

.section.active {
  display: block;
}

/* ===== SIDEBAR STYLES ===== */
.sidebar-header {
  margin-bottom: 2rem;
  position: relative;
}

.logo {
  text-align: center;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.logo h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.logo p {
  font-size: 0.875rem;
  color: var(--text-light);
}

.sidebar-close-btn {
  display: none;
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 1003;
  padding: 0.5rem;
  border-radius: 6px;
}

.sidebar-close-btn:hover {
  background: var(--border);
  color: var(--text);
}

.nav-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sidebar-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: var(--text);
  border-radius: 12px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.8);
  border: 2px solid var(--border);
  font-weight: 500;
}

[data-theme="dark"] .sidebar-btn {
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-btn:hover {
  background: var(--primary);
  color: white;
  transform: translateX(5px);
  border-color: var(--primary);
}

.sidebar-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateX(5px);
}

.btn-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-content i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.btn-arrow {
  font-size: 0.875rem;
  opacity: 0.7;
}

/* ===== HEADER STYLES ===== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
}

.header-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.theme-toggle {
  background: var(--card-bg);
  border: 2px solid var(--border);
  border-radius: 50px;
  padding: 8px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  color: var(--text);
  font-size: 0.875rem;
}

.theme-toggle:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

/* ===== DASHBOARD COMPONENTS ===== */
.quick-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.enhanced-stat-card {
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg) 100%);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px var(--shadow);
  transition: all 0.4s ease;
}

.enhanced-stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px var(--shadow);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.stat-trend {
  font-size: 0.75rem;
  color: var(--success);
  font-weight: 600;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 4px 6px var(--shadow);
}

.glow-card {
  transition: all 0.3s ease;
}

.glow-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px var(--shadow), 0 0 0 1px var(--primary);
}

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

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
}

.card-title {
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.card-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.chart-container {
  height: 300px;
  position: relative;
}

/* ===== AI COMPONENTS ===== */
.ai-insight-enhanced {
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--bg) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  position: relative;
  overflow: hidden;
}

.ai-insight-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--success));
}

.ai-suggestions {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}

.suggestion-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 0.5rem;
}

.suggestion-item:hover {
  background: var(--bg);
  transform: translateX(5px);
}

.ai-response-card {
  background: var(--bg);
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid var(--border);
}

.ai-response-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.ai-response-hint {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

/* ===== METRICS & STATUS ===== */
.metric-grid, .metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.metric-item {
  text-align: center;
  padding: 1rem;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.metric-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-light);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  margin-left: auto;
}

.status-active .status-indicator {
  animation: pulse 2s infinite;
}

/* ===== AI SIDEBAR ===== */
.ai-sidebar {
  position: fixed;
  right: -400px;
  top: 0;
  width: 380px;
  height: 100vh;
  background: var(--card-bg);
  border-left: 1px solid var(--border);
  box-shadow: -4px 0 20px var(--shadow);
  transition: right 0.3s ease;
  z-index: 1001;
  display: flex;
  flex-direction: column;
}

.ai-sidebar.active {
  right: 0;
}

.ai-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.ai-sidebar-header h3 {
  margin: 0;
  color: var(--text);
}

.close-btn {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  font-size: 1.25rem;
  padding: 0.25rem;
}

.close-btn:hover {
  color: var(--text);
}

.ai-sidebar-content {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
}

.ai-msg {
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  border-radius: 8px;
  max-width: 85%;
}

.ai-msg-ai {
  background: var(--bg);
  border: 1px solid var(--border);
  align-self: flex-start;
}

.ai-msg-user {
  background: var(--primary);
  color: white;
  align-self: flex-end;
  margin-left: auto;
}

.ai-sidebar-input {
  display: flex;
  padding: 1rem;
  border-top: 1px solid var(--border);
  gap: 0.5rem;
}

.ai-sidebar-input input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
}

.ai-sidebar-input button {
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  background: var(--primary);
  color: white;
  cursor: pointer;
  transition: background 0.3s ease;
}

.ai-sidebar-input button:hover {
  background: var(--primary-dark);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.875rem;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-success {
  background: var(--success);
  color: white;
}

.btn-warning {
  background: var(--warning);
  color: white;
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-info {
  background: var(--secondary);
  color: white;
}

/* ===== UTILITY CLASSES ===== */
.glow-text {
  background: linear-gradient(135deg, var(--primary), var(--success));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.projection-info, .trend-info {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-top: 1rem;
}

/* ===== MOBILE STYLES ===== */
.mobile-menu-btn {
  display: none;
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1002;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  backdrop-filter: blur(2px);
}

.sidebar-overlay.active {
  display: block;
}

@media (max-width: 768px) {
  /* Hide sidebar by default on mobile */
  .sidebar {
    left: -100%;
    width: 280px;
    box-shadow: 4px 0 20px var(--shadow);
  }
  
  /* Show sidebar when mobile menu is open */
  .sidebar.mobile-open {
    left: 0;
  }
  
  .main-content {
    margin-left: 0;
    padding: 1rem;
    width: 100%;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .sidebar-close-btn {
    display: block;
  }
  
  .section-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
  
  .header-actions {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
  }
  
  .quick-stats {
    grid-template-columns: 1fr;
  }
  
  .ai-sidebar {
    width: 100%;
    right: -100%;
  }
  
  /* Adjust sidebar buttons for mobile */
  .sidebar-btn {
    padding: 1rem;
    font-size: 0.9rem;
  }
  
  .btn-content i {
    font-size: 1rem;
  }
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}
/* Quick Light Mode Enhancement */
body {
    background: #f8fafc !important;
    color: #1f2937 !important;
}

.ai-sidebar {
    background: white !important;
    border: 1px solid #d1d5db !important;
    color: #1f2937 !important;
}

.card {
    background: white !important;
    border: 1px solid #e5e7eb !important;
    color: #1f2937 !important;
}
* Enhanced Student Profile Styles - FIXED COLORS */
:root {
    --deep-blue: #1e3a8a;
    --deep-blue-light: #3b82f6;
    --deep-blue-lighter: #dbeafe;
    --gold: #d97706;
    --gold-light: #f59e0b;
    --gold-lighter: #fef3c7;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
}

.profile-header.enhanced {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--deep-blue) 0%, #2d4fa1 100%);
    color: white;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.profile-photo-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--gold);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    flex-shrink: 0;
}

.profile-photo-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    color: var(--text-light);
}

.photo-placeholder i {
    font-size: 3rem;
    color: var(--text-light);
}

.profile-info-enhanced {
    flex: 1;
}

.profile-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.profile-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-label {
    font-weight: 600;
    color: var(--gold-light);
    font-size: 0.9rem;
}

.meta-value {
    color: white;
    font-weight: 500;
}

.profile-status-enhanced {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.status-badge-enhanced {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.status-badge-enhanced.status-active {
    background: var(--gold);
    color: white;
    border-color: var(--gold);
}

.medical-badge-enhanced {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    background: #dc2626;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Enhanced Tabs - FIXED VISIBILITY */
.profile-tabs-enhanced {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
    flex-wrap: wrap;
}

.tab-btn-enhanced {
    padding: 0.75rem 1.5rem;
    border: none;
    background: none;
    color: var(--text-light);
    font-weight: 600;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid transparent;
}

.tab-btn-enhanced:hover {
    background: var(--bg-light);
    color: var(--deep-blue);
    border-color: #e5e7eb;
}

.tab-btn-enhanced.active {
    background: var(--deep-blue);
    color: white;
    border-color: var(--deep-blue);
}

.tab-btn-enhanced i {
    font-size: 1rem;
    opacity: 0.9;
}

/* Enhanced Tab Content */
.tab-content-enhanced {
    min-height: 400px;
    background: var(--bg-light);
    border-radius: 8px;
    padding: 1.5rem;
}

.tab-pane-enhanced {
    display: none;
}

.tab-pane-enhanced.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Enhanced Cards - FIXED TEXT CONTRAST */
.info-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.info-card-enhanced {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
}

.info-card-enhanced h4 {
    color: var(--deep-blue);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 0.5rem;
}

.info-card-enhanced h4 i {
    color: var(--gold);
    width: 20px;
}

.info-item-enhanced {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--bg-light);
}

.info-item-enhanced:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-item-enhanced label {
    font-weight: 600;
    color: var(--text-dark);
    min-width: 140px;
    font-size: 0.9rem;
}

.info-item-enhanced span {
    color: var(--text-light);
    flex: 1;
    text-align: right;
    font-weight: 500;
}

.medical-notes {
    background: var(--gold-lighter);
    padding: 0.75rem;
    border-radius: 6px;
    font-style: italic;
    color: var(--text-dark);
    border-left: 3px solid var(--gold);
}

.contact-info, .email-info, .address-info {
    color: var(--deep-blue) !important;
    font-weight: 600 !important;
}

/* Enhanced Stats - FIXED VISIBILITY */
.stats-card {
    background: linear-gradient(135deg, var(--deep-blue) 0%, #2d4fa1 100%) !important;
    color: white;
}

.stats-card h4 {
    color: white !important;
}

.stats-card h4 i {
    color: var(--gold-light) !important;
}

.stats-grid-enhanced {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-item-enhanced {
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    color: white;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.9;
}

/* Fix Table Headers in Main Student List */
.enhanced-table thead th {
    background: var(--deep-blue) !important;
    color: white !important;
    font-weight: 600;
    padding: 1rem 0.75rem;
    border-bottom: 2px solid var(--gold);
}

.enhanced-table thead th i {
    color: var(--gold-light) !important;
    margin-right: 0.5rem;
}

/* 
PROPER STUDENT OBJECT STRUCTURE REFERENCE:
  photo: "url_or_placeholder",
  admissionNo: "ADW001", 
  name: "John Kamau",
  parentContact: "Mary Kamau - +254712345678",
  grade: "Grade 5",
  age: "13 years",
  gender: "Male",
  medical: "None",
  status: "Active"
*/


/* FIX STUDENT TABLE - ADD THESE STYLES */

.students-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.students-table th {
    background: var(--primary);
    color: white;
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    border: none;
}

.students-table td {
    padding: 12px 8px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

/* Clean up student photo */
.student-photo-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
}

.student-photo-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Better text hierarchy */
.student-name {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
    font-size: 14px;
}

.student-parent, 
.student-contact {
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 2px;
}

/* Fix action buttons */
.action-buttons {
    display: flex;
    gap: 4px;
}

.action-buttons .btn {
    padding: 4px 8px;
    font-size: 11px;
    min-width: auto;
}

/* ===== STUDENT TABLE FIXES ===== */

/* Fix table container overflow */
.table-responsive {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--border);
}

/* Fix table structure */
.enhanced-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 1200px; /* Ensure table doesn't break on small screens */
}

.enhanced-table th {
    background: var(--primary);
    color: white;
    padding: 12px 8px;
    text-align: left;
    font-weight: 600;
    border: none;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 10;
}

.enhanced-table td {
    padding: 12px 8px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    white-space: nowrap;
}

.enhanced-table tr:hover {
    background-color: rgba(37, 99, 235, 0.05);
}

/* Fix student photo display */
.student-photo-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    margin: 0 auto;
}

.student-photo-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.student-photo-small i {
    color: var(--text-light);
    font-size: 16px;
}

/* Fix text hierarchy in table */
.student-name {
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
    display: block;
    font-size: 14px;
}

.student-details {
    font-size: 12px;
    color: var(--text-light);
    display: block;
}

/* Fix action buttons */
.action-buttons {
    display: flex;
    gap: 4px;
    justify-content: center;
    flex-wrap: nowrap;
}

.action-buttons .btn {
    padding: 6px 8px;
    font-size: 12px;
    min-width: auto;
    border-radius: 4px;
}

/* Fix status badges in table */
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
    text-align: center;
    min-width: 70px;
}

/* Fix medical badges */
.medical-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    display: inline-block;
    text-align: center;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Fix table footer */
.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: white;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 1rem;
}

.table-info {
    color: var(--text-light);
    font-size: 14px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.page-info {
    color: var(--text-light);
    font-size: 14px;
}

/* Fix filter section */
.filters-container {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 150px;
}

.filter-group label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.class-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.filter-btn:hover {
    background: var(--bg-light);
}

.filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Fix search box */
.search-box.enhanced {
    position: relative;
    min-width: 300px;
}

.search-box.enhanced i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.search-box.enhanced input {
    padding-left: 3rem;
    border-radius: 25px;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .enhanced-table {
        font-size: 12px;
        min-width: 1000px;
    }
    
    .enhanced-table th,
    .enhanced-table td {
        padding: 8px 6px;
    }
    
    .filters-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .search-box.enhanced {
        min-width: auto;
    }
    
    .table-footer {
        flex-direction: column;
        text-align: center;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 2px;
    }
    
    .action-buttons .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .enhanced-table {
        min-width: 800px;
    }
    
    .stats-overview {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .class-filters {
        justify-content: center;
    }
}
/* ===== ACTION BUTTONS FIX ===== */

/* Make action buttons icons-only and larger */
.action-buttons {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex-wrap: nowrap;
}

.action-buttons .btn {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 16px;
    min-width: auto;
}

/* Remove any text content from action buttons */
.action-buttons .btn span,
.action-buttons .btn-text {
    display: none !important;
}

/* Ensure only icons are visible */
.action-buttons .btn i {
    margin: 0 !important;
    font-size: 16px;
}

/* Hover effects */
.action-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Specific button colors */
.action-buttons .btn-primary {
    background: var(--primary);
    color: white;
    border: 1px solid var(--primary);
}

.action-buttons .btn-warning {
    background: var(--warning);
    color: white;
    border: 1px solid var(--warning);
}

.action-buttons .btn-danger {
    background: var(--danger);
    color: white;
    border: 1px solid var(--danger);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .action-buttons {
        gap: 4px;
    }
    
    .action-buttons .btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .action-buttons .btn i {
        font-size: 14px;
    }
}
.header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    width: 100%;
}

.section-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 1rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.filters-container {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: end;
    width: 100%;
}
/* Add to style.css */

/* Fix button styles */
.action-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Dropdown improvements */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    z-index: 1000;
    margin-top: 0.5rem;
    border: 1px solid var(--border);
}

.dropdown-content.show {
    display: block;
    animation: slideDown 0.2s ease;
}

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

.dropdown-content a {
    color: var(--text);
    padding: 0.75rem 1rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-light);
    transition: background-color 0.2s;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: var(--secondary);
    color: var(--primary);
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 0.25rem 0;
}

/* Upload area styles */
.upload-area {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--bg-light);
}

.upload-area:hover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.05);
}

.upload-area.dragover {
    border-color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
}

.upload-area i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.upload-area p {
    margin: 0 0 0.5rem 0;
    font-weight: 600;
    color: var(--text);
}

.upload-area small {
    color: var(--text-light);
    display: block;
    margin-bottom: 1rem;
}

/* Import preview table */
#importPreview {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.import-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

/* Progress bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: var(--success);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .action-buttons .btn,
    .dropdown {
        width: 100%;
        justify-content: center;
    }
    
    .dropdown-content {
        right: auto;
        left: 0;
        min-width: 100%;
    }
}.btn-large {
    padding: 1rem 1.5rem !important;
    font-size: 1rem !important;
    min-width: 160px !important;
    height: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.75rem !important;
}
/* ===== FIXED STUDENT PROFILE STYLES ===== */

.student-profile {
    color: white;
}

/* Fixed Profile Header with Deep Blue Background */
.profile-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--deep-blue), var(--deep-blue-dark));
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.profile-photo-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--deep-blue);
    font-size: 3rem;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border: 4px solid var(--gold);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.profile-photo-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Bold Gold Student Name */
.profile-name {
    color: var(--gold);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Student Details with Icons */
.profile-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.student-detail-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gold-light);
    font-size: 1.1rem;
    font-weight: 500;
}

.student-detail-item i {
    color: var(--gold);
    width: 20px;
    text-align: center;
    font-size: 1.2rem;
}

/* Fixed Profile Tabs - More Visible */
.profile-actions-container {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.profile-action-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.9);
    padding: 1rem 1.5rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    min-width: 160px;
    justify-content: center;
}

.profile-action-btn.active,
.profile-action-btn:hover {
    background: var(--gold);
    color: var(--deep-blue);
    border-color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

/* Enhanced Info Cards with Better Readability */
.info-card {
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.9), rgba(30, 42, 94, 0.9));
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
}

.info-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gold);
}

.info-card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--deep-blue);
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.info-card-title {
    color: var(--gold);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Enhanced Text Readability */
.info-label {
    color: var(--gold-light) !important;
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    color: white !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
}

.stat-value {
    color: var(--gold) !important;
    font-size: 1.8rem !important;
    font-weight: 800 !important;
}

.stat-label {
    color: var(--gold-light) !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
}

/* Personal Info Grid */
.personal-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.info-item-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.info-item-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Enhanced Quick Actions */
.form-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--glass-border);
}

.form-actions .btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.form-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* Quick Actions Dropdown */
.quick-actions-dropdown {
    position: relative;
    display: inline-block;
}

.quick-actions-menu {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--deep-blue), var(--deep-blue-dark));
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    min-width: 200px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    z-index: 1000;
    margin-bottom: 0.5rem;
}

.quick-actions-menu.show {
    display: block;
    animation: slideDown 0.3s ease;
}

.quick-action-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.quick-action-item:hover {
    background: var(--gold);
    color: var(--deep-blue);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Enhanced Status Badges */
.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-active {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 2px solid rgba(34, 197, 94, 0.4);
}

.status-graduated {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 2px solid rgba(59, 130, 246, 0.4);
}

.status-transferred {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border: 2px solid rgba(245, 158, 11, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-header {
        padding: 1.5rem;
    }
    
    .profile-name {
        font-size: 1.5rem;
    }
    
    .profile-actions-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .profile-action-btn {
        min-width: auto;
        justify-content: center;
    }
    
    .personal-info-grid {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
}
/* BASE STYLES - Add to your existing style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    min-height: 100vh;
    padding: 20px;
    color: #1e293b;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.students-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

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

.students-table th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
}

.students-table img.student-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e0e0e0;
}

.student-photo-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e0e0e0;
}

.student-photo-placeholder i {
    color: #999;
    font-size: 16px;
}
.class-header {
    background: green !important;
    padding: 15px;
    border-radius: 8px 8px 0 0;
    border-left: 4px solid #ff0000;
    color: white;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.class-header h3.class-name {
    color: white !important;
    font-weight: bold !important;
    font-size: 18px;
    margin: 0 0 8px 0;
    text-align: center;
}

.class-level {
    background: rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}
/* ===== NUCLEAR FIX FOR ALL DROPDOWNS IN STUDENT PROFILE ===== */

/* First, fix the base student profile area */
#studentProfileModal .student-profile,
#studentProfileContent {
    background: transparent !important;
}

/* FIX FOR ALL SELECT ELEMENTS - THIS IS THE MAIN FIX */
#studentProfileModal select,
#studentProfileContent select,
.student-profile select,
.modal-content.extra-large select,
.modal select {
    background: linear-gradient(135deg, #1e3a8a, #1e2a5e) !important;
    background-color: #1e2a5e !important;
    color: white !important;
    border: 2px solid #d4af37 !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    min-height: 48px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    cursor: pointer !important;
    position: relative !important;
}

/* Custom dropdown arrow */
#studentProfileModal select::after,
#studentProfileContent select::after,
.student-profile select::after {
    content: "▼" !important;
    position: absolute !important;
    right: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #d4af37 !important;
    font-size: 14px !important;
    pointer-events: none !important;
}

/* FIX FOR OPTIONS - CRITICAL */
#studentProfileModal select option,
#studentProfileContent select option,
.student-profile select option,
.modal-content.extra-large select option,
.modal select option {
    background: #1e2a5e !important;
    background-color: #1e2a5e !important;
    color: white !important;
    padding: 12px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border: none !important;
    margin: 4px 0 !important;
}

/* Hover state for options */
#studentProfileModal select option:hover,
#studentProfileContent select option:hover,
.student-profile select option:hover {
    background: #d4af37 !important;
    color: #1e2a5e !important;
}

/* FIX FOR ALL FORM CONTROLS */
#studentProfileModal input,
#studentProfileContent input,
.student-profile input,
#studentProfileModal textarea,
#studentProfileContent textarea,
.student-profile textarea,
#studentProfileModal .form-control,
#studentProfileContent .form-control,
.student-profile .form-control {
    background: #1e2a5e !important;
    background-color: #1e2a5e !important;
    color: white !important;
    border: 2px solid #d4af37 !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Placeholder text */
#studentProfileModal ::placeholder,
#studentProfileContent ::placeholder,
.student-profile ::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
    opacity: 1 !important;
}

/* Focus states */
#studentProfileModal select:focus,
#studentProfileContent select:focus,
.student-profile select:focus,
#studentProfileModal input:focus,
#studentProfileContent input:focus,
.student-profile input:focus {
    outline: none !important;
    border-color: #f0d87e !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3) !important;
}

/* FIX FOR BOOTSTRAP DROPDOWNS IF USED */
#studentProfileModal .dropdown-menu,
#studentProfileContent .dropdown-menu,
.student-profile .dropdown-menu {
    background: #1e2a5e !important;
    background-color: #1e2a5e !important;
    border: 2px solid #d4af37 !important;
    border-radius: 8px !important;
    padding: 8px !important;
    min-width: 200px !important;
}

#studentProfileModal .dropdown-item,
#studentProfileContent .dropdown-item,
.student-profile .dropdown-item {
    color: white !important;
    background: transparent !important;
    padding: 12px 16px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    margin: 2px 0 !important;
    border: none !important;
}

#studentProfileModal .dropdown-item:hover,
#studentProfileContent .dropdown-item:hover,
.student-profile .dropdown-item:hover {
    background: #d4af37 !important;
    color: #1e2a5e !important;
}

/* FORCE OVERRIDE ANY WHITE BACKGROUNDS */
#studentProfileModal [style*="background"],
#studentProfileContent [style*="background"],
.student-profile [style*="background"] {
    background: #1e2a5e !important;
    background-color: #1e2a5e !important;
}

/* Specifically target any element with white background */
#studentProfileModal [style*="background: white"],
#studentProfileModal [style*="background-color: white"],
#studentProfileModal [style*="background:#fff"],
#studentProfileModal [style*="background-color:#fff"],
#studentProfileModal [style*="background:white"],
#studentProfileContent [style*="background: white"],
#studentProfileContent [style*="background-color: white"],
#studentProfileContent [style*="background:#fff"],
#studentProfileContent [style*="background-color:#fff"],
#studentProfileContent [style*="background:white"],
.student-profile [style*="background: white"],
.student-profile [style*="background-color: white"],
.student-profile [style*="background:#fff"],
.student-profile [style*="background-color:#fff"],
.student-profile [style*="background:white"] {
    background: #1e2a5e !important;
    background-color: #1e2a5e !important;
    color: white !important;
}

/* Date picker fix */
#studentProfileModal input[type="date"]::-webkit-calendar-picker-indicator,
#studentProfileContent input[type="date"]::-webkit-calendar-picker-indicator,
.student-profile input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(2);
    cursor: pointer;
    opacity: 1 !important;
}

/* Number input spinner fix */
#studentProfileModal input[type="number"]::-webkit-inner-spin-button,
#studentProfileModal input[type="number"]::-webkit-outer-spin-button,
#studentProfileContent input[type="number"]::-webkit-inner-spin-button,
#studentProfileContent input[type="number"]::-webkit-outer-spin-button,
.student-profile input[type="number"]::-webkit-inner-spin-button,
.student-profile input[type="number"]::-webkit-outer-spin-button {
    filter: invert(1);
}

/* Fix for any divs that might contain form elements */
#studentProfileModal .form-group,
#studentProfileContent .form-group,
.student-profile .form-group {
    margin-bottom: 20px !important;
}

#studentProfileModal .form-label,
#studentProfileContent .form-label,
.student-profile .form-label {
    color: #d4af37 !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    margin-bottom: 8px !important;
    display: block !important;
}
/* ===== COMPREHENSIVE FIX FOR ALL FORM ELEMENTS IN STUDENT PROFILE ===== */

/* First, reset everything in the student profile to ensure consistency */
#studentProfileModal * {
    box-sizing: border-box !important;
}

/* BASE STYLE FOR ALL FORM ELEMENTS */
#studentProfileModal select,
#studentProfileModal input[type="text"],
#studentProfileModal input[type="number"],
#studentProfileModal input[type="email"],
#studentProfileModal input[type="tel"],
#studentProfileModal input[type="date"],
#studentProfileModal input[type="password"],
#studentProfileModal textarea,
#studentProfileModal .form-control,
.student-profile select,
.student-profile input[type="text"],
.student-profile input[type="number"],
.student-profile input[type="email"],
.student-profile input[type="tel"],
.student-profile input[type="date"],
.student-profile input[type="password"],
.student-profile textarea,
.student-profile .form-control,
#studentProfileContent select,
#studentProfileContent input[type="text"],
#studentProfileContent input[type="number"],
#studentProfileContent input[type="email"],
#studentProfileContent input[type="tel"],
#studentProfileContent input[type="date"],
#studentProfileContent input[type="password"],
#studentProfileContent textarea,
#studentProfileContent .form-control {
    /* Background & Text */
    background: #1e2a5e !important;
    background-color: #1e2a5e !important;
    color: #ffffff !important;
    
    /* Borders */
    border: 2px solid #d4af37 !important;
    border-radius: 8px !important;
    
    /* Typography */
    font-size: 16px !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    
    /* Spacing */
    padding: 12px 16px !important;
    margin: 0 !important;
    
    /* Layout */
    width: 100% !important;
    min-height: 48px !important;
    box-sizing: border-box !important;
    display: block !important;
    
    /* Remove default styles */
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    outline: none !important;
}

/* SPECIFIC STYLES FOR DIFFERENT INPUT TYPES */

/* Text Inputs */
#studentProfileModal input[type="text"],
#studentProfileModal input[type="email"],
#studentProfileModal input[type="tel"],
#studentProfileModal input[type="password"],
.student-profile input[type="text"],
.student-profile input[type="email"],
.student-profile input[type="tel"],
.student-profile input[type="password"],
#studentProfileContent input[type="text"],
#studentProfileContent input[type="email"],
#studentProfileContent input[type="tel"],
#studentProfileContent input[type="password"] {
    /* Keep base styles, add specific if needed */
}

/* Number Inputs */
#studentProfileModal input[type="number"],
.student-profile input[type="number"],
#studentProfileContent input[type="number"] {
    /* Number inputs often have spinners */
}

/* Date Inputs */
#studentProfileModal input[type="date"],
.student-profile input[type="date"],
#studentProfileContent input[type="date"] {
    /* Date inputs have calendar icon */
    min-width: 200px !important;
}

/* Textareas */
#studentProfileModal textarea,
.student-profile textarea,
#studentProfileContent textarea {
    min-height: 100px !important;
    resize: vertical !important;
    line-height: 1.5 !important;
}

/* Select Dropdowns */
#studentProfileModal select,
.student-profile select,
#studentProfileContent select {
    cursor: pointer !important;
    position: relative !important;
    padding-right: 40px !important; /* Space for arrow */
}

/* Custom dropdown arrow for selects */
#studentProfileModal select::after,
.student-profile select::after,
#studentProfileContent select::after {
    content: "▼" !important;
    position: absolute !important;
    right: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #d4af37 !important;
    font-size: 12px !important;
    pointer-events: none !important;
}

/* FIX FOR OPTIONS IN SELECTS */
#studentProfileModal select option,
.student-profile select option,
#studentProfileContent select option {
    background: #1e2a5e !important;
    background-color: #1e2a5e !important;
    color: #ffffff !important;
    padding: 12px 16px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border: none !important;
}

/* Hover state for options */
#studentProfileModal select option:hover,
.student-profile select option:hover,
#studentProfileContent select option:hover,
#studentProfileModal select option:focus,
.student-profile select option:focus,
#studentProfileContent select option:focus {
    background: #d4af37 !important;
    color: #1e2a5e !important;
}

/* PLACEHOLDER TEXT */
#studentProfileModal ::placeholder,
.student-profile ::placeholder,
#studentProfileContent ::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
    opacity: 1 !important;
    font-weight: 500 !important;
}

/* FOCUS STATES */
#studentProfileModal select:focus,
#studentProfileModal input:focus,
#studentProfileModal textarea:focus,
.student-profile select:focus,
.student-profile input:focus,
.student-profile textarea:focus,
#studentProfileContent select:focus,
#studentProfileContent input:focus,
#studentProfileContent textarea:focus {
    border-color: #f0d87e !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3) !important;
    outline: none !important;
}

/* DISABLED STATES */
#studentProfileModal select:disabled,
#studentProfileModal input:disabled,
#studentProfileModal textarea:disabled,
.student-profile select:disabled,
.student-profile input:disabled,
.student-profile textarea:disabled,
#studentProfileContent select:disabled,
#studentProfileContent input:disabled,
#studentProfileContent textarea:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    background: #1a2348 !important;
}

/* FORM GROUPS AND LABELS */
#studentProfileModal .form-group,
.student-profile .form-group,
#studentProfileContent .form-group {
    margin-bottom: 20px !important;
    width: 100% !important;
}

#studentProfileModal .form-label,
.student-profile .form-label,
#studentProfileContent .form-label,
#studentProfileModal label,
.student-profile label,
#studentProfileContent label {
    display: block !important;
    color: #d4af37 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

/* FORM ROWS (for horizontal layouts) */
#studentProfileModal .form-row,
.student-profile .form-row,
#studentProfileContent .form-row {
    display: flex !important;
    gap: 16px !important;
    margin-bottom: 20px !important;
    flex-wrap: wrap !important;
}

#studentProfileModal .form-row .form-group,
.student-profile .form-row .form-group,
#studentProfileContent .form-row .form-group {
    flex: 1 !important;
    min-width: 200px !important;
}

/* CHECKBOXES AND RADIO BUTTONS */
#studentProfileModal input[type="checkbox"],
#studentProfileModal input[type="radio"],
.student-profile input[type="checkbox"],
.student-profile input[type="radio"],
#studentProfileContent input[type="checkbox"],
#studentProfileContent input[type="radio"] {
    width: auto !important;
    min-height: auto !important;
    margin-right: 8px !important;
    accent-color: #d4af37 !important;
}

#studentProfileModal input[type="checkbox"] + label,
#studentProfileModal input[type="radio"] + label,
.student-profile input[type="checkbox"] + label,
.student-profile input[type="radio"] + label,
#studentProfileContent input[type="checkbox"] + label,
#studentProfileContent input[type="radio"] + label {
    display: inline-flex !important;
    align-items: center !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    text-transform: none !important;
}

/* BUTTONS IN FORMS */
#studentProfileModal .btn,
.student-profile .btn,
#studentProfileContent .btn {
    background: linear-gradient(135deg, #d4af37, #b8941f) !important;
    color: #1e2a5e !important;
    border: 2px solid #d4af37 !important;
    border-radius: 8px !important;
    padding: 12px 24px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
}

#studentProfileModal .btn:hover,
.student-profile .btn:hover,
#studentProfileContent .btn:hover {
    background: linear-gradient(135deg, #b8941f, #d4af37) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3) !important;
}

/* FORM SECTIONS (like in Fees, Pocket Money, Gadgets) */
#studentProfileModal .form-section,
.student-profile .form-section,
#studentProfileContent .form-section {
    background: rgba(30, 42, 94, 0.8) !important;
    border: 2px solid #d4af37 !important;
    border-radius: 12px !important;
    padding: 24px !important;
    margin-bottom: 24px !important;
}

#studentProfileModal .section-title,
.student-profile .section-title,
#studentProfileContent .section-title {
    color: #d4af37 !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    margin-bottom: 20px !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid #d4af37 !important;
}

/* FIX FOR WEBKIT CALENDAR ICON */
#studentProfileModal input[type="date"]::-webkit-calendar-picker-indicator,
.student-profile input[type="date"]::-webkit-calendar-picker-indicator,
#studentProfileContent input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1) brightness(2) !important;
    cursor: pointer !important;
    opacity: 1 !important;
}

/* FIX FOR NUMBER INPUT SPINNERS */
#studentProfileModal input[type="number"]::-webkit-inner-spin-button,
#studentProfileModal input[type="number"]::-webkit-outer-spin-button,
.student-profile input[type="number"]::-webkit-inner-spin-button,
.student-profile input[type="number"]::-webkit-outer-spin-button,
#studentProfileContent input[type="number"]::-webkit-inner-spin-button,
#studentProfileContent input[type="number"]::-webkit-outer-spin-button {
    filter: invert(1) !important;
    opacity: 1 !important;
}

/* TABLES IN FORMS (for fee tables, etc.) */
#studentProfileModal table,
.student-profile table,
#studentProfileContent table {
    width: 100% !important;
    border-collapse: collapse !important;
    margin: 20px 0 !important;
}

#studentProfileModal table th,
.student-profile table th,
#studentProfileContent table th {
    background: #1e3a8a !important;
    color: #d4af37 !important;
    padding: 12px !important;
    text-align: left !important;
    font-weight: 700 !important;
    border: 2px solid #d4af37 !important;
}

#studentProfileModal table td,
.student-profile table td,
#studentProfileContent table td {
    background: #1e2a5e !important;
    color: #ffffff !important;
    padding: 12px !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
}

/* NUCLEAR OPTION - Override any inline white backgrounds */
#studentProfileModal [style*="background: white"],
#studentProfileModal [style*="background-color: white"],
#studentProfileModal [style*="background:#fff"],
#studentProfileModal [style*="background-color:#fff"],
#studentProfileModal [style*="background:rgb(255,255,255)"],
.student-profile [style*="background: white"],
.student-profile [style*="background-color: white"],
.student-profile [style*="background:#fff"],
.student-profile [style*="background-color:#fff"],
.student-profile [style*="background:rgb(255,255,255)"],
#studentProfileContent [style*="background: white"],
#studentProfileContent [style*="background-color: white"],
#studentProfileContent [style*="background:#fff"],
#studentProfileContent [style*="background-color:#fff"],
#studentProfileContent [style*="background:rgb(255,255,255)"] {
    background: #1e2a5e !important;
    background-color: #1e2a5e !important;
    color: #ffffff !important;
}

/* SPECIFIC SECTIONS: Fees, Pocket Money, Gadgets */
#studentProfileModal #fees-section,
#studentProfileModal #pocket-money-section,
#studentProfileModal #gadgets-section,
.student-profile #fees-section,
.student-profile #pocket-money-section,
.student-profile #gadgets-section,
#studentProfileContent #fees-section,
#studentProfileContent #pocket-money-section,
#studentProfileContent #gadgets-section,
#studentProfileModal [id*="fee"],
#studentProfileModal [id*="pocket"],
#studentProfileModal [id*="gadget"],
.student-profile [id*="fee"],
.student-profile [id*="pocket"],
.student-profile [id*="gadget"],
#studentProfileContent [id*="fee"],
#studentProfileContent [id*="pocket"],
#studentProfileContent [id*="gadget"] {
    /* Specific styles for financial sections */
    background: rgba(30, 42, 94, 0.9) !important;
    border: 2px solid #d4af37 !important;
    border-radius: 12px !important;
    padding: 20px !important;
    margin: 15px 0 !important;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    #studentProfileModal .form-row,
    .student-profile .form-row,
    #studentProfileContent .form-row {
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    #studentProfileModal .form-row .form-group,
    .student-profile .form-row .form-group,
    #studentProfileContent .form-row .form-group {
        min-width: 100% !important;
    }
    
    #studentProfileModal .modal-content.extra-large,
    .student-profile .modal-content.extra-large,
    #studentProfileContent .modal-content.extra-large {
        padding: 15px !important;
    }
}
/* Enhanced Financial Styles */
.school-financial-summary {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.summary-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.summary-card.pocket-money {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.summary-card.other-fees {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.summary-icon {
    font-size: 2rem;
    opacity: 0.9;
}

.summary-content {
    flex: 1;
}

.summary-value {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.summary-label {
    opacity: 0.9;
    font-size: 0.9rem;
}

.summary-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

/* Enhanced Forms */
.modal-content .form-group label {
    color: #4a5568;
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.modal-content .form-control {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 15px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.modal-content .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    outline: none;
}

/* Gadget Status Styles */
.gadget-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.gadget-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.gadget-info {
    flex: 1;
}

.gadget-name {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 5px;
}

.gadget-serial {
    font-size: 0.9rem;
    color: #718096;
    margin-bottom: 5px;
}

.gadget-notes {
    font-size: 0.9rem;
    color: #4a5568;
    font-style: italic;
    margin-top: 5px;
}

.gadget-date {
    font-size: 0.8rem;
    color: #a0aec0;
    margin-top: 5px;
}

.gadget-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-in-school {
    background: #e6f7ff;
    color: #1890ff;
    border: 1px solid #91d5ff;
}

.status-returned-to-student {
    background: #f6ffed;
    color: #52c41a;
    border: 1px solid #b7eb8f;
}

.status-picked-by-parent {
    background: #fff7e6;
    color: #fa8c16;
    border: 1px solid #ffd591;
}

.status-disposed-destroyed {
    background: #fff1f0;
    color: #f5222d;
    border: 1px solid #ffa39e;
}

.gadget-action-buttons {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.gadget-action-buttons .btn-xs {
    padding: 2px 8px;
    font-size: 0.75rem;
}

/* Payment Progress */
.payment-progress {
    margin-top: 20px;
}

.progress-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 5px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #34d399);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    font-size: 0.9rem;
    color: #4a5568;
    font-weight: 600;
}

/* Overpayment Warning */
.fee-item.warning .fee-amount {
    color: #f59e0b;
    font-weight: bold;
}

/* Enhanced Transaction History */
.transaction-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
}

.transaction-item:hover {
    background: #f8fafc;
    border-color: #cbd5e0;
}

.transaction-date {
    font-size: 0.8rem;
    color: #718096;
    margin-bottom: 2px;
}

.transaction-amount {
    font-weight: bold;
    font-size: 1.1rem;
}

.transaction-amount.deposit {
    color: #10b981;
}

.transaction-amount.withdrawal {
    color: #ef4444;
}

.transaction-method {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 2px;
}

.transaction-reference {
    font-size: 0.75rem;
    color: #9ca3af;
    font-family: monospace;
    margin-top: 2px;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .gadget-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .gadget-actions {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .gadget-action-buttons {
        flex-wrap: wrap;
    }
}
/* Form visibility improvements */
.modal input, .modal select, .modal textarea {
    color: #333 !important;
    background-color: #fff !important;
    border: 2px solid #e0e0e0 !important;
    font-size: 16px !important;
    padding: 12px 15px !important;
    border-radius: 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.modal input:focus, .modal select:focus, .modal textarea:focus {
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
    outline: none !important;
}

.modal input::placeholder, .modal textarea::placeholder {
    color: #999 !important;
    opacity: 1 !important;
}

.modal select {
    appearance: none !important;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23333" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 20px !important;
    padding-right: 40px !important;
}

.modal label {
    color: #333 !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
    display: block !important;
    font-size: 14px !important;
}

/* Receipt viewer styles */
#receiptViewerModal .modal-content {
    animation: slideUp 0.3s ease !important;
}

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

/* Print styles for receipts */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
    }
    
    @page {
        size: 80mm auto;
        margin: 0;
    }
}
/* ==========================================================
   SCHOOL FINANCIAL SUMMARY STYLES
   ========================================================== */

.school-financial-summary {
  background: white;
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border: 1px solid #e0e0e0;
}

.school-financial-summary .summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary, #4a6baf);
}

.school-financial-summary .summary-header h3 {
  color: var(--primary, #4a6baf);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.school-financial-summary .summary-header small {
  color: #666;
  font-size: 12px;
}

.school-financial-summary .summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.school-financial-summary .summary-card {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  transition: transform 0.2s, box-shadow 0.2s;
  border-left: 4px solid;
}

.school-financial-summary .summary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.school-financial-summary .total-fees {
  border-left-color: #28a745;
}

.school-financial-summary .pocket-money {
  border-left-color: #17a2b8;
}

.school-financial-summary .other-fees {
  border-left-color: #6f42c1;
}

.school-financial-summary .summary-icon {
  font-size: 2rem;
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.school-financial-summary .total-fees .summary-icon {
  color: #28a745;
  background: rgba(40, 167, 69, 0.1);
}

.school-financial-summary .pocket-money .summary-icon {
  color: #17a2b8;
  background: rgba(23, 162, 184, 0.1);
}

.school-financial-summary .other-fees .summary-icon {
  color: #6f42c1;
  background: rgba(111, 66, 193, 0.1);
}

.school-financial-summary .summary-content {
  flex: 1;
}

.school-financial-summary .summary-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 5px;
}

.school-financial-summary .summary-label {
  color: #666;
  font-size: 14px;
}

.school-financial-summary .summary-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #e0e0e0;
}

.loading-state {
  text-align: center;
  padding: 40px;
  color: #666;
}

.loading-state i {
  font-size: 2rem;
  margin-bottom: 10px;
  color: var(--primary, #4a6baf);
}

/* Financial Tabs */
.financial-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 5px;
}

.financial-tab {
  padding: 8px 16px;
  background: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #666;
}

.financial-tab.active {
  background: var(--primary, #4a6baf);
  color: white;
}

.financial-tab:hover:not(.active) {
  background: #f0f0f0;
}

/* Fee Breakdown */
.fee-breakdown {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.fee-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed #dee2e6;
}

.fee-item.total {
  border-top: 2px solid #333;
  border-bottom: none;
  font-weight: bold;
  margin-top: 10px;
  padding-top: 10px;
}

.fee-label {
  color: #333;
}

.fee-amount {
  font-weight: 600;
}

.fee-amount.success {
  color: #28a745;
}

.fee-amount.danger {
  color: #dc3545;
}

.fee-amount.warning {
  color: #ffc107;
}

.payment-progress {
  margin-top: 15px;
}

.progress-bar {
  height: 10px;
  background: #e9ecef;
  border-radius: 5px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #28a745, #20c997);
  transition: width 0.3s ease;
}

.progress-text {
  text-align: center;
  margin-top: 5px;
  font-size: 12px;
  color: #666;
}

/* Transaction List */
.transaction-list {
  max-height: 200px;
  overflow-y: auto;
}

.transaction-item {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.transaction-item:last-child {
  border-bottom: none;
}

.transaction-date {
  color: #666;
  font-size: 12px;
}

.transaction-amount {
  font-weight: bold;
}

.transaction-amount.deposit {
  color: #28a745;
}

.transaction-amount.withdrawal {
  color: #dc3545;
}

@media (max-width: 768px) {
  .school-financial-summary .summary-grid {
    grid-template-columns: 1fr;
  }
  
  .school-financial-summary .summary-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .school-financial-summary .summary-actions {
    flex-direction: column;
  }
  
  .school-financial-summary .summary-actions button {
    width: 100%;
  }
  
  .financial-tabs {
    flex-wrap: wrap;
  }
  
  .financial-tab {
    flex: 1;
    min-width: 120px;
    justify-content: center;
  }
}

    /* SchoolSense Theme - Force override with !important */
    :root {
        --primary-black: #000000;
        --accent-gold: #ffd700;
        --accent-gold-dark: #ccac00;
        --glass-bg: rgba(0, 0, 0, 0.4);
        --glass-bg-dark: rgba(0, 0, 0, 0.8);
        --glass-border: rgba(255, 215, 0, 0.3);
        --text-white: #ffffff;
        --text-light-gray: #cccccc;
        --text-gray: #aaaaaa;
    }

    /* Force background */
    body {
        background: #000000 !important;
    }

    /* Force glass effect on main content */
    .main-content {
        background: var(--glass-bg) !important;
        backdrop-filter: blur(10px) !important;
        border: 1px solid var(--glass-border) !important;
        border-radius: 30px !important;
    }

    /* Force button colors but preserve functionality */
    .btn-primary, .btn-success {
        background: linear-gradient(135deg, #ffd700, #ccac00) !important;
        color: #000000 !important;
        border: none !important;
    }

    .btn-warning {
        background: transparent !important;
        color: #ffd700 !important;
        border: 1px solid rgba(255, 215, 0, 0.3) !important;
    }

    /* Force card styles */
    .card, .teacher-card {
        background: rgba(0, 0, 0, 0.8) !important;
        backdrop-filter: blur(10px) !important;
        border: 1px solid rgba(255, 215, 0, 0.3) !important;
    }

    /* Force text colors */
    h2, .section-title {
        background: linear-gradient(135deg, #fff, #ffd700) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
    }

    /* Force table styles */
    .table thead th {
        background: rgba(0, 0, 0, 0.8) !important;
        color: #ffd700 !important;
        border-bottom: 2px solid #ffd700 !important;
    }

    /* Keep all JavaScript functionality intact */
    button, .btn, a, input, select {
        pointer-events: auto !important;
        cursor: pointer !important;
        z-index: 1000 !important;
    }
