:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;line-height:1.5;font-weight:400;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}*{box-sizing:border-box}body{margin:0;min-width:320px;background:#f3f4f6;color:#0f172a;font-size:16px}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.65}.dashboard-layout,.dashboard-content,.panel-box,.stat-card,.sidebar-item,.students-table-wrap,.student-action-btn,.save-btn,.reset-btn,.secondary-btn,.topbar-actions button,.quick-box button,.students-toolbar-right button,.students-toolbar-right input,.assign-user-select,.student-detail-form input,.student-detail-form select,.student-detail-form textarea{transition:all .25s ease}@keyframes fadeSlideUp{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes softPop{0%{opacity:0;transform:scale(.98)}to{opacity:1;transform:scale(1)}}.loading-screen{min-height:100vh;display:grid;place-items:center;font-size:1rem;color:#334155}.auth-shell{min-height:100vh;display:grid;place-items:center;padding:2rem;background:radial-gradient(circle at top right,#dbeafe 0%,transparent 45%),radial-gradient(circle at bottom left,#e2e8f0 0%,transparent 50%),#f8fafc}.auth-card,.panel-box{width:min(100%,520px);background:#fff;border:1px solid #e2e8f0;border-radius:14px;box-shadow:0 10px 25px #0f172a14}.login-card{overflow:hidden}.auth-content{padding:2rem}.auth-brand-compact{margin-bottom:1rem;padding:.65rem .8rem;border-radius:10px;display:flex;align-items:center;gap:.75rem;background:linear-gradient(145deg,#0f172a,#1e293b)}.auth-badge{width:36px;height:36px;border-radius:8px;background:#ffffff26;display:grid;place-items:center;font-weight:700;font-size:.85rem;color:#fff}.auth-brand-compact h1{margin:0;font-size:1rem;color:#f8fafc}.auth-content h2{margin:0;font-size:1.4rem}.auth-subtitle{margin:.4rem 0 0;color:#64748b}.auth-form{margin-top:1.25rem;display:grid;gap:1rem}.auth-form label{display:grid;gap:.35rem;font-weight:600;font-size:.92rem}.auth-form input{border:1px solid #cbd5e1;border-radius:10px;padding:.65rem .8rem;font-size:.95rem}.auth-form select{border:1px solid #cbd5e1;border-radius:10px;padding:.65rem .8rem;font-size:.95rem;background:#fff}.auth-form input:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px #2563eb26}.auth-form select:focus{outline:none;border-color:#2563eb;box-shadow:0 0 0 3px #2563eb26}.login-password-wrap{display:flex;align-items:center;gap:.45rem}.login-password-wrap input{flex:1}.login-password-toggle{border:1px solid #cbd5e1;background:#fff;color:#1e3a5f;border-radius:8px;padding:.5rem .65rem;font-size:.8rem;font-weight:700;cursor:pointer}.auth-form button{border:0;border-radius:10px;padding:.62rem .9rem;font-weight:600;cursor:pointer;background:#0f172a;color:#fff}.auth-switch-btn{border:1px solid #d0dae9!important;background:#fff!important;color:#1e3a5f!important}.portal-preview-card{width:min(100%,900px)}.portal-dashboard-layout .stat-number.portal-stat-text{font-size:1.15rem;line-height:1.2;word-break:break-word}.portal-dashboard-layout .stats-grid{gap:.7rem}.portal-dashboard-layout .stat-card{padding:.68rem;gap:.55rem;border-radius:12px}.portal-dashboard-layout .stat-icon{width:46px;height:46px;border-radius:10px;font-size:1.2rem}.portal-dashboard-layout .stat-number{font-size:1.2rem}.portal-dashboard-layout .stat-label{margin-top:.14rem;font-size:.78rem}.portal-dashboard-layout .stat-number.portal-stat-text{font-size:.98rem}.portal-dashboard-layout .students-panel{width:100%}.portal-preview-head{display:flex;align-items:center;justify-content:space-between;gap:.6rem;margin-bottom:.9rem}.portal-preview-head h2{margin:0}.portal-preview-tabs{display:flex;align-items:center;gap:.45rem;margin-bottom:.75rem}.portal-preview-tab{border:1px solid #cbd5e1;background:#fff;color:#1e3a5f;border-radius:8px;padding:.42rem .7rem;font-size:.8rem;font-weight:700;cursor:pointer}.portal-preview-tab.active{background:#1e3a5f;border-color:#1e3a5f;color:#fff}.portal-table-wrap{margin-top:.25rem}.portal-profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}.portal-profile-item{display:grid;gap:.2rem;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc;padding:.6rem .7rem}.portal-profile-item strong{color:#334155;font-size:.78rem}.portal-profile-item span{color:#0f172a;font-weight:600;font-size:.9rem;word-break:break-word}.portal-profile-item.span-2{grid-column:span 2}.dashboard-layout{min-height:100vh;background:#f3f4f6;display:grid;grid-template-columns:230px minmax(0,1fr);grid-template-rows:70px minmax(0,1fr)}.dashboard-layout,.dashboard-layout *{overflow-wrap:anywhere;word-break:break-word}.topbar{grid-column:1 / -1;height:70px;padding:0 1.5rem;background:linear-gradient(90deg,#173a5e,#2b6aa1);color:#fff;display:flex;align-items:center;justify-content:space-between}.topbar-title{font-size:1.6rem;font-weight:700}.topbar-actions{display:flex;align-items:center;gap:.8rem}.topbar-actions p{margin:0;font-weight:600}.topbar-actions button{border:0;border-radius:8px;padding:.5rem .9rem;background:#fff;color:#1e3a5f;font-weight:600;cursor:pointer}.sidebar{background:#f8fafc;border-right:1px solid #dbe3ef;padding:1rem .65rem;display:grid;align-content:start;gap:.35rem}.sidebar-item{border:0;background:transparent;border-radius:10px;padding:.8rem .7rem;color:#4b5563;display:flex;align-items:center;gap:.65rem;font-size:1rem;font-weight:600;cursor:pointer;text-align:left}.sidebar-item:hover{background:#eef3f9}.sidebar-item.active{background:#e8eff8;color:#12345a;border-left:4px solid #3ba0e6}.sidebar-item-wrapper{position:relative;display:flex;align-items:center;gap:.25rem}.sidebar-item-wrapper.sidebar-item-draggable{cursor:grab;-webkit-user-select:none;user-select:none}.sidebar-item-wrapper.sidebar-item-draggable:active{cursor:grabbing}.sidebar-item-wrapper.sidebar-item-dragging{opacity:.6;cursor:grabbing}.sidebar-item-wrapper.sidebar-item-drag-over{outline:2px dashed var(--super-accent, #3b82f6);outline-offset:2px;border-radius:4px}.sidebar-item-drag-handle{display:inline-flex;align-items:center;margin-right:4px;color:#94a3b8;font-size:.75rem;letter-spacing:-.05em;cursor:grab}.sidebar-item-wrapper .sidebar-item{flex:1}.sidebar-reorder-buttons{display:flex;flex-direction:column;gap:.15rem;opacity:0;transition:opacity .2s ease}.sidebar-item-wrapper:hover .sidebar-reorder-buttons{opacity:1}.sidebar-reorder-btn{border:1px solid #cbd5e1;background:#f8fafc;width:20px;height:16px;border-radius:3px;font-size:.6rem;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;color:#64748b;transition:all .2s ease}.sidebar-reorder-btn:hover:not(:disabled){background:#e2e8f0;border-color:#94a3b8;color:#334155}.sidebar-reorder-btn:disabled{opacity:.3;cursor:not-allowed}.dashboard-content{padding:1.5rem;animation:fadeSlideUp .35s ease}.page-title{margin:0 0 1rem;font-size:2.7rem;color:#123254;text-align:center}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1rem;margin-bottom:1rem}.stat-card{background:#fff;border:1px solid #e6ebf3;border-radius:14px;padding:1rem;display:flex;align-items:center;gap:.8rem;animation:softPop .3s ease}.stat-card:hover{transform:translateY(-3px);box-shadow:0 14px 30px #0f172a1f}.stat-icon{width:62px;height:62px;border-radius:12px;display:grid;place-items:center;font-size:1.7rem;color:#fff}.stat-icon.green{background:#1fa971}.stat-icon.blue{background:#3b82f6}.stat-icon.amber{background:#e69112}.stat-icon.purple{background:#7c3aed}.stat-number{margin:0;font-size:2.2rem;font-weight:800;color:#143255;line-height:1}.stat-label{margin:.35rem 0 0;color:#6b7280;font-weight:600}.overview-grid{display:grid;grid-template-columns:2fr 1fr;gap:1rem}.panel-box{width:100%;border-radius:14px;border:1px solid #e6ebf3;background:#fff;padding:1.2rem;animation:fadeSlideUp .35s ease}.panel-box h2{margin:0 0 .9rem;font-size:1.9rem;color:#1a3556}.recent-list{list-style:none;margin:0;padding:0;display:grid;gap:.65rem}.recent-list li{display:flex;align-items:center;justify-content:space-between;gap:.85rem;background:#f8fafc;border-radius:10px;padding:.72rem .8rem;color:#374151;border:1px solid #e7edf5}.recent-student-item:hover{background:#f2f7fd;border-color:#d7e4f3;transform:translateY(-1px)}.recent-empty{justify-content:center;color:#64748b}.recent-student-main{display:flex;align-items:center;gap:.62rem;min-width:0}.recent-student-avatar{width:36px;height:36px;border-radius:999px;background:linear-gradient(135deg,#1f4b76,#3b82c4);color:#fff;display:grid;place-items:center;font-size:.78rem;font-weight:800;flex-shrink:0}.recent-student-info{min-width:0}.recent-student-name,.recent-student-course{margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.recent-student-name{font-size:.9rem;font-weight:700;color:#1f3250}.recent-student-course{margin-top:.1rem;font-size:.76rem;font-weight:600;color:#64748b}.recent-student-meta{display:grid;justify-items:end;gap:.22rem;flex-shrink:0}.recent-student-status{border-radius:999px;padding:.14rem .46rem;font-size:.64rem;font-weight:700;letter-spacing:.2px;text-transform:uppercase;background:#dcfce7;color:#166534}.recent-student-status.inactive{background:#fee2e2;color:#991b1b}.recent-student-status.left,.recent-student-status.discontinued{background:#ffedd5;color:#9a3412}.recent-student-date{font-size:.7rem;color:#64748b;font-weight:600}.quick-box{display:grid;align-content:start;gap:.7rem}.quick-box button{border:1px solid #d4dce8;border-radius:10px;background:#fff;color:#243b56;padding:.75rem;text-align:left;font-weight:600;cursor:pointer}.quick-box button:hover{background:#f8fafc;transform:translateY(-1px);box-shadow:0 6px 14px #0f172a14}.full-panel{max-width:100%}.course-panel{padding:.8rem}.course-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:.8rem}.course-header h2{margin:0;font-size:2rem;text-align:center;width:100%}.course-header-actions{display:flex;align-items:center;gap:.45rem}.add-course-btn{border:1px solid #4da73a;background:#66bb49;color:#fff;padding:.45rem .7rem;border-radius:3px;font-weight:700;font-size:.75rem;cursor:pointer;white-space:nowrap}.course-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.55rem;margin-bottom:.8rem}.teacher-form{grid-template-columns:repeat(3,minmax(0,1fr))}.teacher-form select{border:1px solid #cbd5e1;border-radius:6px;padding:.5rem;font-size:.82rem;background:#fff}.course-form input{border:1px solid #cbd5e1;border-radius:6px;padding:.5rem;font-size:.82rem}.course-form-actions{grid-column:1 / -1;display:flex;gap:.45rem}.course-form-actions button{border:0;border-radius:6px;padding:.45rem .7rem;font-size:.8rem;font-weight:700;cursor:pointer;background:#3b82f6;color:#fff}.course-form-actions .outline{background:#e5e7eb;color:#334155}.course-table-wrap{overflow-x:auto}.course-table{width:100%;border-collapse:collapse;font-size:.82rem}.course-table th,.course-table td{border-bottom:1px solid #e5e7eb;padding:.4rem .45rem;text-align:left}.course-table thead th{font-weight:700;color:#1e293b}.empty-cell{text-align:center;color:#64748b}.course-actions{display:flex;gap:.35rem}.course-actions button{border:0;border-radius:4px;width:24px;height:24px;cursor:pointer;color:#fff;display:grid;place-items:center;padding:0}.course-actions .edit{background:#3b82f6}.course-actions .delete{background:#ef4444}.student-list{list-style:none;margin:0;padding:0}.student-list li{padding:.7rem 0;border-top:1px solid #e2e8f0;display:flex;justify-content:space-between;align-items:center;gap:.8rem}.student-name{margin:0;font-weight:600}.student-meta{margin:.1rem 0 0;font-size:.88rem;color:#64748b}.student-list button{border:0;border-radius:10px;padding:.5rem .8rem;font-weight:600;cursor:pointer;background:#ef4444;color:#fff}.students-panel{padding:.9rem}.students-toolbar{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:.8rem}.students-toolbar h2{margin:0;font-size:2rem}.students-toolbar-right{display:flex;align-items:center;gap:.5rem}.students-toolbar-right input{border:1px solid #d1d5db;border-radius:10px;padding:.5rem .65rem;min-width:230px;font-size:.78rem}.assign-user-select{border:1px solid #d1d5db;border-radius:6px;padding:.45rem .55rem;min-width:170px;font-size:.78rem;background:#fff}.fee-student-picker{position:relative}.fee-student-trigger{width:100%;border:1px solid #cfd8e3;border-radius:7px;padding:.5rem .55rem;font-size:.78rem;text-align:left;background:#fff;color:#111827;cursor:pointer}.fee-student-dropdown{position:absolute;top:calc(100% + 4px);left:0;right:0;z-index:20;border:1px solid #cfd8e3;border-radius:8px;background:#fff;box-shadow:0 10px 25px #0f172a1f;padding:.45rem}.fee-student-search{width:100%;border:1px solid #cfd8e3;border-radius:7px;padding:.45rem .55rem;font-size:.78rem;margin-bottom:.4rem}.fee-student-list{max-height:180px;overflow:auto;display:grid;gap:.25rem}.fee-student-option{border:0;background:#f8fafc;color:#0f172a;border-radius:6px;padding:.42rem .5rem;text-align:left;font-size:.76rem;cursor:pointer}.fee-student-option.active,.fee-student-option:hover{background:#e2ecf8}.fee-student-empty{padding:.45rem;font-size:.76rem;color:#64748b}.fee-progress-wrap{grid-column:span 2;border:1px solid #dbe3ef;border-radius:10px;background:#f8fbff;padding:.55rem .65rem}.fee-progress-head{display:flex;justify-content:space-between;align-items:center;font-size:.76rem;color:#1e3a5f;font-weight:700}.fee-progress-track{width:100%;height:8px;background:#e5e7eb;border-radius:999px;overflow:hidden;margin:.35rem 0}.fee-progress-fill{height:100%;background:linear-gradient(90deg,#3b82f6,#16a34a);border-radius:999px}.fee-progress-wrap p{margin:0;font-size:.74rem;color:#475569;font-weight:600}.students-toolbar-right button{border:1px solid #4da73a;background:#66bb49;color:#fff;padding:.5rem .8rem;border-radius:10px;font-weight:700;font-size:.75rem;cursor:pointer}.students-toolbar-right button:hover,.save-btn:hover,.secondary-btn:hover{transform:translateY(-1px);box-shadow:0 8px 16px #0f172a24}.reset-btn:hover,.topbar-actions button:hover{transform:translateY(-1px)}.students-table-wrap{overflow-x:auto;border:1px solid #e5e7eb;border-radius:8px;background:#fff;animation:fadeSlideUp .38s ease}.students-table{width:100%;border-collapse:collapse;min-width:980px;font-size:.75rem}.students-table th,.students-table td{padding:.45rem .5rem;border-bottom:1px solid #e5e7eb;text-align:left;white-space:nowrap}.students-table thead th{background:linear-gradient(90deg,#1f4b76,#3b82c4);color:#fff;font-weight:700}.students-table tbody tr:hover{background:#f8fbff}.status-pill{display:inline-block;border-radius:999px;padding:.2rem .45rem;font-size:.68rem;font-weight:700}.status-pill.active{background:#d1fae5;color:#065f46}.status-pill.inactive{background:#fee2e2;color:#991b1b}.status-pill.paid{background:#d1fae5;color:#065f46}.status-pill.unpaid{background:#fee2e2;color:#991b1b}.status-pill.expired,.status-pill.cancelled{background:#fef3c7;color:#92400e}.status-pill.warning{background:#ffedd5;color:#9a3412}.status-pill.danger{background:#fee2e2;color:#991b1b}.plan-toast{position:fixed;top:16px;right:16px;max-width:320px;background:#111827;color:#f9fafb;padding:12px 16px;border-radius:12px;box-shadow:0 10px 25px #0003;z-index:9999;font-size:13px;line-height:1.4}.stat-card.clickable{cursor:pointer}.student-delete-btn{border:0;border-radius:4px;padding:.28rem .45rem;font-weight:700;font-size:.68rem;cursor:pointer;background:#ef4444;color:#fff}.student-actions{display:flex;gap:.3rem}.plan-tab-access{grid-column:span 3}.plan-tab-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}.plan-tab-card{border:1px solid #e2e8f0;border-radius:10px;padding:10px;background:#fff}.plan-tab-title{margin:0 0 6px;font-weight:600;font-size:13px}.plan-tab-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px 12px}.plan-tab-item{display:inline-flex;align-items:center;gap:6px;font-size:12px;line-height:1.2}@media(max-width:900px){.plan-tab-list{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){.plan-tab-list{grid-template-columns:1fr}}.student-action-btn{border:0;border-radius:8px;padding:.3rem .55rem;font-size:.7rem;font-weight:700;cursor:pointer;color:#fff}.student-action-btn.view{background:#22c55e}.student-action-btn.edit{background:#3b82f6}.student-action-btn.print{background:#6366f1}.student-action-btn.promote{background:#059669}.student-action-btn.delete{background:#ef4444}.student-action-btn:hover{transform:translateY(-1px);filter:brightness(1.03)}.student-view-modal{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a73;display:grid;place-items:center;z-index:50}.promote-class-label{display:block;grid-column:span 2}.promote-class-label select{width:100%;margin-top:.25rem;padding:.5rem}.student-edit-modal{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a8c;display:grid;place-items:center;z-index:60;padding:1rem}.student-edit-modal-box{width:min(1200px,96vw);max-height:94vh;overflow:auto;background:#fff;border-radius:12px}.student-edit-modal-head{position:sticky;top:0;z-index:2;display:flex;justify-content:space-between;align-items:center;padding:.8rem 1rem;background:#1f4b76;color:#fff}.student-edit-modal-head h3{margin:0}.student-edit-modal-head button{border:0;background:#ef4444;color:#fff;border-radius:6px;width:28px;height:28px;cursor:pointer}.student-view-card{width:min(760px,92vw);background:#fff;border-radius:12px;padding:1rem;animation:softPop .2s ease}.student-view-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:.8rem}.student-view-title-wrap{display:flex;align-items:center;gap:.8rem}.student-view-title-wrap p{margin:.2rem 0 0;color:#475569;font-size:.9rem;font-weight:600}.student-view-head-photo{width:64px;height:64px;border-radius:10px;object-fit:cover;border:1px solid #cbd5e1}.student-view-head h3{margin:0}.student-view-head button{border:0;background:#ef4444;color:#fff;border-radius:6px;width:28px;height:28px;cursor:pointer}.student-view-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem 1rem}.student-view-grid p{margin:0;font-size:.85rem}.student-view-grid .span-2{grid-column:span 2}.student-photo-preview-wrap{display:grid;gap:.4rem}.student-photo-preview{width:120px;height:150px;object-fit:cover;border:1px solid #cbd5e1;border-radius:8px}.passport-photo-section{margin-top:.4rem;display:flex;align-items:flex-end;gap:1rem}.passport-photo-section label{max-width:320px}.passport-photo-section input[type=file]{margin-top:.25rem;border:1px solid #cfd8e3;border-radius:7px;padding:.45rem;font-size:.78rem;background:#fff}.passport-photo-preview-box{width:120px;height:150px;border:1px solid #cbd5e1;border-radius:8px;overflow:hidden;background:#f8fafc}.passport-photo-preview{width:100%;height:100%;object-fit:cover}.settings-profile-head{display:flex;justify-content:space-between;align-items:center;margin:.25rem 0 .75rem}.settings-profile-head h3{margin:0;font-size:1rem;color:#1f3552}.settings-profile-head p{margin:.2rem 0 0;color:#475569;font-size:.85rem}.report-card-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.7rem}.report-card-summary-grid .stat-card{padding:.55rem .65rem;border-radius:10px;min-height:auto}.report-card-summary-grid .stat-number{font-size:1.35rem;line-height:1.1}.report-card-summary-grid .stat-label{font-size:.75rem;margin-top:.2rem}.report-card-subject-table{min-width:900px}.report-card-subject-table th,.report-card-subject-table td{padding:.32rem .42rem;font-size:.7rem}.report-card-mark-input{padding:.3rem .38rem!important;font-size:.7rem!important;border-radius:5px!important}.report-card-remove-btn{padding:.18rem .36rem;font-size:.62rem}.add-student-panel{padding:.8rem 1.1rem 1.1rem}.form-page-title{text-align:center;font-size:2rem;margin-top:.2rem;margin-bottom:1rem}.student-detail-form{display:grid;gap:1rem}.form-section{display:grid;gap:.7rem;border-top:1px solid #e5e7eb;padding-top:.8rem}.form-section h3{margin:0;font-size:1.1rem;color:#1f3b5c}.form-grid{display:grid;gap:.6rem}.form-grid.cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.form-grid.cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.form-grid.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.mt-10{margin-top:.6rem}.student-detail-form label{display:grid;gap:.3rem;font-size:.78rem;font-weight:700;color:#1f2937}.student-detail-form input,.student-detail-form select,.student-detail-form textarea{width:100%;border:1px solid #cfd8e3;border-radius:7px;padding:.5rem .55rem;font-size:.78rem;color:#111827;background:#fff}.student-detail-form input:hover,.student-detail-form select:hover,.student-detail-form textarea:hover{border-color:#9fb6d3}.student-detail-form input:focus,.student-detail-form select:focus,.student-detail-form textarea:focus{outline:none;border-color:#3b82f6;box-shadow:0 0 0 2px #3b82f626}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}.secondary-btn,.save-btn,.reset-btn{border:0;border-radius:10px;padding:.5rem .85rem;font-size:.75rem;font-weight:700;cursor:pointer}button:focus-visible,.sidebar-item:focus-visible,.students-toolbar-right button:focus-visible,.student-action-btn:focus-visible,.fee-student-trigger:focus-visible,.fee-student-option:focus-visible,.portal-preview-tab:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:none;box-shadow:0 0 0 3px #3b82f638}.students-toolbar-right input:focus-visible,.student-detail-form input:focus-visible,.student-detail-form select:focus-visible,.student-detail-form textarea:focus-visible,.assign-user-select:focus-visible,.fee-student-search:focus-visible{border-color:#3b82f6}.secondary-btn{width:max-content;background:#65b946;color:#fff}.form-actions{display:flex;justify-content:flex-end;gap:.55rem}.save-btn{background:#65b946;color:#fff}.reset-btn{background:#e5e7eb;color:#475569}.error{color:#dc2626;margin:0;font-size:.9rem}.revenue-chart-card{width:100%;padding:.9rem}.revenue-panel .stats-grid{gap:.75rem}.revenue-panel .stat-card{padding:.72rem;border-radius:12px;gap:.6rem;min-width:0}.revenue-panel .stat-icon{width:48px;height:48px;border-radius:10px;font-size:1.25rem;flex-shrink:0}.revenue-panel .stat-number{font-size:clamp(1.15rem,5vw,1.55rem);line-height:1.1;overflow-wrap:anywhere;word-break:break-word}.revenue-panel .stat-label{margin-top:.2rem;font-size:clamp(.75rem,3.8vw,.8rem);line-height:1.2;overflow-wrap:anywhere;word-break:break-word}.revenue-panel .stat-card>div{min-width:0}@media(max-width:480px){.revenue-panel .stat-card{flex-wrap:wrap}}.revenue-chart-card h3{margin:0 0 .8rem;color:#143255}.revenue-chart-wrap{width:100%;min-height:180px;border:1px solid #e5e7eb;border-radius:10px;background:#fff;padding:.75rem;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:.5rem;align-items:end}.revenue-chart-wrap.yearly{grid-template-columns:repeat(5,minmax(0,1fr))}.revenue-bar-group{display:grid;justify-items:center;gap:.35rem}.revenue-bar-group p{margin:0;font-size:.68rem;font-weight:700;color:#475569}.revenue-bars{width:100%;min-height:130px;display:flex;align-items:flex-end;justify-content:center;gap:3px}.revenue-bar{width:8px;border-radius:4px 4px 0 0}.revenue-bar.income{background:#16a34a}.revenue-bar.expense{background:#ef4444}.revenue-bar.profit{background:#2563eb}.revenue-bar.profit.negative{background:#f97316}.teacher-overview-toolbar{margin:.5rem 0 .85rem}.teacher-overview-toolbar .students-toolbar-right select{min-width:180px}.teacher-overview-total{margin:0 0 .7rem;color:#64748b;font-size:.9rem;font-weight:600}.teacher-overview-total strong{color:#143255;font-size:1rem}.teacher-overview-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.admin-overview-grid{grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:1rem}.super-admin-graphs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-bottom:1rem}.super-admin-graphs .revenue-chart-card h3{margin-bottom:.4rem}.super-admin-graph-subtitle{margin:0 0 .7rem;color:#64748b;font-size:.9rem;font-weight:600}.info-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.85rem}.info-item{border:1px solid #d8dee8;background:#f8fafc;border-radius:12px;padding:.75rem .85rem;display:flex;align-items:center;justify-content:space-between;gap:.75rem;min-width:0}.info-item span{color:#64748b;font-weight:700;font-size:.85rem}.info-item strong{color:#143255;font-weight:800;font-size:1.02rem;overflow-wrap:anywhere}.admin-column-chart-wrap{width:100%;min-height:182px;border:1px solid #d8dee8;border-radius:10px;background:repeating-linear-gradient(to top,#eef2f7 0,#eef2f7 1px,transparent 1px,transparent 24px),#f8fafc;padding:.7rem;animation:dashboardGraphAppear .45s ease-out both}.admin-column-grid{min-height:142px;display:grid;gap:.45rem;align-items:end}.admin-column-group{display:grid;justify-items:center;gap:.3rem}.admin-column-bars{width:100%;min-height:124px;display:flex;align-items:flex-end;justify-content:center;gap:4px}.admin-column-bar{width:10px;border-radius:3px 3px 0 0;transform-origin:bottom;animation:teacherColumnGrow .55s ease-out both}.admin-column-bar.income{background:#16a34a}.admin-column-bar.expense{background:#ef4444}.admin-column-bar.profit{background:#2563eb}.admin-column-bar.negative{background:#f97316}.admin-column-group p{margin:0;font-size:.66rem;font-weight:700;color:#475569}.admin-chart-legend{margin-top:.4rem;display:flex;justify-content:center;gap:.8rem;flex-wrap:wrap}.admin-chart-legend-item{display:inline-flex;align-items:center;gap:.35rem;font-size:.78rem;color:#475569;font-weight:600}.admin-chart-legend-dot{width:18px;height:3px;border-radius:999px;display:inline-block}.admin-chart-legend-dot.income{background:#16a34a}.admin-chart-legend-dot.expense{background:#ef4444}.admin-chart-legend-dot.profit{background:#2563eb}.admin-pie-wrap{display:grid;justify-items:center;gap:.65rem;padding-top:.35rem}.admin-pie-chart{width:132px;height:132px;border-radius:50%;border:1px solid #d5dde8;display:grid;place-items:center;animation:adminPieAppear .65s ease-out both}.admin-pie-hole{width:78px;height:78px;border-radius:50%;background:#fff;border:1px solid #e5e7eb;display:grid;place-items:center;text-align:center;line-height:1.1;padding:.2rem}.admin-pie-hole span{font-size:.58rem;font-weight:700;color:#64748b;text-transform:uppercase;letter-spacing:.2px}.admin-pie-hole strong{font-size:.78rem;color:#143255}@keyframes adminPieAppear{0%{transform:scale(.75) rotate(-20deg);opacity:0}to{transform:scale(1) rotate(0);opacity:1}}.teacher-column-chart-wrap{width:100%;min-height:180px;border:1px solid #d8dee8;border-radius:10px;background:repeating-linear-gradient(to top,#eef2f7 0,#eef2f7 1px,transparent 1px,transparent 24px),#f8fafc;padding:.7rem;animation:dashboardGraphAppear .45s ease-out both}.teacher-column-grid{min-height:142px;display:grid;gap:.45rem;align-items:end}.teacher-column-group{display:grid;justify-items:center;gap:.3rem}.teacher-column-bars{width:100%;min-height:124px;display:flex;align-items:flex-end;justify-content:center;gap:4px}.teacher-column-bar{width:10px;border-radius:3px 3px 0 0;transform-origin:bottom;animation:teacherColumnGrow .55s ease-out both}.teacher-column-bar.income{background:#16a34a}.teacher-column-bar.expense{background:#ef4444}.teacher-column-bar.profit{background:#2563eb}.teacher-column-group p{margin:0;font-size:.66rem;font-weight:700;color:#475569}.teacher-line-legend{margin-top:.4rem;display:flex;justify-content:center;gap:.8rem;flex-wrap:wrap}.teacher-line-legend-item{display:inline-flex;align-items:center;gap:.35rem;font-size:.78rem;color:#475569;font-weight:600}.teacher-line-legend-dot{width:18px;height:3px;border-radius:999px;display:inline-block}.teacher-line-legend-dot.income{background:#16a34a}.teacher-line-legend-dot.expense{background:#ef4444}.teacher-line-legend-dot.profit{background:#2563eb}@keyframes teacherColumnGrow{0%{transform:scaleY(.15);opacity:0}to{transform:scaleY(1);opacity:1}}@keyframes dashboardGraphAppear{0%{transform:translateY(6px);opacity:0}to{transform:translateY(0);opacity:1}}@media(max-width:1200px){.form-grid.cols-7{grid-template-columns:repeat(4,minmax(0,1fr))}.form-grid.cols-6{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:900px){.dashboard-layout{grid-template-columns:1fr;grid-template-rows:auto auto 1fr}.sidebar{grid-row:2;border-right:0;border-bottom:1px solid #dbe3ef;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem}.dashboard-content{grid-row:3;padding:1rem}.topbar{flex-direction:column;align-items:flex-start;gap:.6rem;height:auto;padding:1rem}.topbar-actions{flex-wrap:wrap;width:100%}.topbar-actions p{width:100%}.stats-grid,.overview-grid,.super-admin-graphs,.info-grid,.course-form,.form-grid.cols-7,.form-grid.cols-6,.form-grid.cols-3{grid-template-columns:1fr}.revenue-chart-wrap,.revenue-chart-wrap.yearly{grid-template-columns:repeat(6,minmax(0,1fr))}.report-card-summary-grid{grid-template-columns:1fr}.students-toolbar{flex-direction:column;align-items:flex-start}.students-toolbar-right{width:100%;flex-direction:column;align-items:stretch}.students-toolbar-right input{min-width:100%}.student-actions{flex-wrap:wrap}.passport-photo-section{flex-direction:column;align-items:flex-start}.student-view-grid{grid-template-columns:1fr}.student-view-title-wrap{align-items:flex-start}.student-view-grid .span-2{grid-column:span 1}.page-title{font-size:2rem}.recent-list li{flex-direction:column;align-items:stretch}.recent-student-meta{justify-items:start}.portal-profile-grid{grid-template-columns:1fr}.portal-profile-item.span-2{grid-column:span 1}}@media(max-width:700px){.sidebar{grid-template-columns:1fr}.sidebar-item{font-size:.92rem;padding:.7rem .6rem}.topbar-actions button{width:100%;justify-content:center}.stats-grid{grid-template-columns:1fr}}@media(max-width:520px){.topbar-title{font-size:1.2rem}.page-title{font-size:1.6rem}.dashboard-content{padding:.85rem}}.super-admin-theme{--super-bg: #f3f4f6;--super-surface: #ffffff;--super-surface-alt: #f8fafc;--super-border: #e6ebf3;--super-text: #0f172a;--super-muted: #64748b;--super-topbar-start: #173a5e;--super-topbar-end: #2b6aa1;--super-topbar-text: #ffffff;--super-sidebar-text: #4b5563;--super-sidebar-hover: #eef3f9;--super-sidebar-active-bg: #e8eff8;--super-sidebar-active-text: #12345a;--super-accent: #3ba0e6;--super-button-bg: #ffffff;--super-button-text: #1e3a5f;--super-button-border: #d5e1f0;--super-page-title: #123254;--super-card-title: #1a3556;--super-stat-number: #143255;--super-stat-label: #6b7280;--super-input-bg: #ffffff;--super-input-border: #cbd5e1;--super-table-head-start: #1f4b76;--super-table-head-end: #3b82c4;--super-table-row-hover: #f8fbff;background:var(--super-bg);color:var(--super-text)}.super-admin-theme[data-theme=dark]{--super-bg: #0f172a;--super-surface: #111827;--super-surface-alt: #0b1220;--super-border: #1f2937;--super-text: #e2e8f0;--super-muted: #94a3b8;--super-topbar-start: #0b1a2b;--super-topbar-end: #12314f;--super-topbar-text: #e2e8f0;--super-sidebar-text: #cbd5e1;--super-sidebar-hover: #1f2937;--super-sidebar-active-bg: #1e293b;--super-sidebar-active-text: #e2e8f0;--super-accent: #38bdf8;--super-button-bg: #1f2937;--super-button-text: #e2e8f0;--super-button-border: #334155;--super-page-title: #e2e8f0;--super-card-title: #e2e8f0;--super-stat-number: #f8fafc;--super-stat-label: #94a3b8;--super-input-bg: #0f172a;--super-input-border: #334155;--super-table-head-start: #0f2742;--super-table-head-end: #173a63;--super-table-row-hover: #1f2937}.super-admin-theme .topbar{background:linear-gradient(90deg,var(--super-topbar-start) 0%,var(--super-topbar-end) 100%);color:var(--super-topbar-text)}.super-admin-theme .topbar-actions p{color:var(--super-topbar-text)}.super-admin-theme .topbar-actions button,.super-admin-theme .theme-toggle-btn{background:var(--super-button-bg);color:var(--super-button-text);border:1px solid var(--super-button-border)}.super-admin-theme .sidebar{background:var(--super-surface-alt);border-right-color:var(--super-border)}.super-admin-theme .sidebar-item{color:var(--super-sidebar-text)}.super-admin-theme .sidebar-item:hover{background:var(--super-sidebar-hover)}.super-admin-theme .sidebar-item.active{background:var(--super-sidebar-active-bg);color:var(--super-sidebar-active-text);border-left-color:var(--super-accent)}.super-admin-theme .sidebar-reorder-btn{border-color:#334155;background:#1e293b;color:#94a3b8}.super-admin-theme .sidebar-reorder-btn:hover:not(:disabled){background:#334155;border-color:#475569;color:#cbd5e1}.super-admin-theme .sidebar-item-wrapper.sidebar-item-drag-over{outline-color:var(--super-accent)}.super-admin-theme .sidebar-item-drag-handle{color:var(--super-muted)}.super-admin-theme .page-title{color:var(--super-page-title)}.super-admin-theme .stat-card,.super-admin-theme .panel-box,.super-admin-theme .students-table-wrap,.super-admin-theme .admin-column-chart-wrap{background:var(--super-surface);border-color:var(--super-border)}.super-admin-theme .stat-number{color:var(--super-stat-number)}.super-admin-theme .stat-label,.super-admin-theme .super-admin-graph-subtitle,.super-admin-theme .teacher-overview-total,.super-admin-theme .teacher-column-group p,.super-admin-theme .teacher-line-legend-item{color:var(--super-muted)}.super-admin-theme .panel-box h2{color:var(--super-card-title)}.super-admin-theme .recent-list li,.super-admin-theme .info-item{background:var(--super-surface-alt);border-color:var(--super-border);color:var(--super-text)}.super-admin-theme .info-item span{color:var(--super-muted)}.super-admin-theme .info-item strong{color:var(--super-text)}.super-admin-theme .students-table th,.super-admin-theme .students-table td{border-bottom-color:var(--super-border);color:var(--super-text)}.super-admin-theme .students-table thead th{background:linear-gradient(90deg,var(--super-table-head-start) 0%,var(--super-table-head-end) 100%);color:var(--super-topbar-text)}.super-admin-theme .students-table tbody tr:hover{background:var(--super-table-row-hover)}.super-admin-theme input,.super-admin-theme select,.super-admin-theme textarea{background:var(--super-input-bg);border-color:var(--super-input-border);color:var(--super-text)}.super-admin-theme input::placeholder,.super-admin-theme textarea::placeholder{color:var(--super-muted)}.app-theme{--app-bg: #f3f4f6;--app-surface: #ffffff;--app-surface-alt: #f8fafc;--app-border: #e6ebf3;--app-text: #0f172a;--app-muted: #64748b;--app-topbar-start: #173a5e;--app-topbar-end: #2b6aa1;--app-topbar-text: #ffffff;--app-sidebar-text: #4b5563;--app-sidebar-hover: #eef3f9;--app-sidebar-active-bg: #e8eff8;--app-sidebar-active-text: #12345a;--app-accent: #3ba0e6;--app-button-bg: #ffffff;--app-button-text: #1e3a5f;--app-button-border: #d5e1f0;--app-page-title: #123254;--app-card-title: #1a3556;--app-stat-number: #143255;--app-stat-label: #6b7280;--app-input-bg: #ffffff;--app-input-border: #cbd5e1;--app-table-head-start: #1f4b76;--app-table-head-end: #3b82c4;--app-table-row-hover: #f8fbff;background:var(--app-bg);color:var(--app-text)}.app-theme[data-theme=dark]{--app-bg: #0f172a;--app-surface: #111827;--app-surface-alt: #0b1220;--app-border: #1f2937;--app-text: #e2e8f0;--app-muted: #94a3b8;--app-topbar-start: #0b1a2b;--app-topbar-end: #12314f;--app-topbar-text: #e2e8f0;--app-sidebar-text: #cbd5e1;--app-sidebar-hover: #1f2937;--app-sidebar-active-bg: #1e293b;--app-sidebar-active-text: #e2e8f0;--app-accent: #38bdf8;--app-button-bg: #1f2937;--app-button-text: #e2e8f0;--app-button-border: #334155;--app-page-title: #e2e8f0;--app-card-title: #e2e8f0;--app-stat-number: #f8fafc;--app-stat-label: #94a3b8;--app-input-bg: #0f172a;--app-input-border: #334155;--app-table-head-start: #0f2742;--app-table-head-end: #173a63;--app-table-row-hover: #1f2937}.app-theme .topbar{background:linear-gradient(90deg,var(--app-topbar-start) 0%,var(--app-topbar-end) 100%);color:var(--app-topbar-text)}.app-theme .topbar-actions p{color:var(--app-topbar-text)}.app-theme .topbar-actions button,.app-theme .theme-toggle-btn{background:var(--app-button-bg);color:var(--app-button-text);border:1px solid var(--app-button-border)}.app-theme .sidebar{background:var(--app-surface-alt);border-right-color:var(--app-border)}.app-theme .sidebar-item{color:var(--app-sidebar-text)}.app-theme .sidebar-item:hover{background:var(--app-sidebar-hover)}.app-theme .sidebar-item.active{background:var(--app-sidebar-active-bg);color:var(--app-sidebar-active-text);border-left-color:var(--app-accent)}.app-theme .sidebar-reorder-btn{border-color:#334155;background:#1e293b;color:#94a3b8}.app-theme .sidebar-reorder-btn:hover:not(:disabled){background:#334155;border-color:#475569;color:#cbd5e1}.app-theme .page-title{color:var(--app-page-title)}.app-theme .stat-card,.app-theme .panel-box,.app-theme .students-table-wrap,.app-theme .admin-column-chart-wrap,.app-theme .teacher-column-chart-wrap{background:var(--app-surface);border-color:var(--app-border)}.app-theme .stat-number{color:var(--app-stat-number)}.app-theme .stat-label,.app-theme .super-admin-graph-subtitle,.app-theme .teacher-overview-total,.app-theme .teacher-column-group p,.app-theme .teacher-line-legend-item,.app-theme .fee-progress-wrap p{color:var(--app-muted)}.app-theme .panel-box h2{color:var(--app-card-title)}.app-theme .recent-list li,.app-theme .info-item{background:var(--app-surface-alt);border-color:var(--app-border);color:var(--app-text)}.app-theme .info-item span{color:var(--app-muted)}.app-theme .info-item strong{color:var(--app-text)}.app-theme .students-table th,.app-theme .students-table td{border-bottom-color:var(--app-border);color:var(--app-text)}.app-theme .students-table thead th{background:linear-gradient(90deg,var(--app-table-head-start) 0%,var(--app-table-head-end) 100%);color:var(--app-topbar-text)}.app-theme .students-table tbody tr:hover{background:var(--app-table-row-hover)}.app-theme input,.app-theme select,.app-theme textarea{background:var(--app-input-bg);border-color:var(--app-input-border);color:var(--app-text)}.app-theme input::placeholder,.app-theme textarea::placeholder{color:var(--app-muted)}.actions-cell{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}.actions-cell button{padding:6px 16px;border:none;border-radius:4px;font-size:12px;font-weight:600;cursor:pointer;transition:all .2s ease;color:#fff;white-space:nowrap}.view-btn{background-color:#10b981}.view-btn:hover{background-color:#059669;transform:translateY(-2px);box-shadow:0 4px 8px #10b9814d}.edit-btn{background-color:#3b82f6}.edit-btn:hover{background-color:#2563eb;transform:translateY(-2px);box-shadow:0 4px 8px #3b82f64d}.print-btn{background-color:#8b5cf6}.print-btn:hover{background-color:#7c3aed;transform:translateY(-2px);box-shadow:0 4px 8px #8b5cf64d}.delete-btn{background-color:#ef4444}.delete-btn:hover{background-color:#dc2626;transform:translateY(-2px);box-shadow:0 4px 8px #ef44444d}.actions-cell button:active{transform:translateY(0)}@media(max-width:768px){.actions-cell{flex-direction:column;gap:4px}.actions-cell button{width:100%;padding:5px 10px;font-size:11px}}
