@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

.bg-yellow { background-color: #EAB308 !important; color: #000 !important; }
.bg-purple { background-color: #A855F7 !important; color: #fff !important; }

:root {
    --primary: #4F46E5;
    --primary-hover: #4338CA;
    --primary-light: #EEF2FF;
    --secondary: #10B981;
    --secondary-hover: #059669;
    --info: #3B82F6;
    --warning: #F59E0B;
    --danger: #EF4444;
    --success: #10B981;
    --dark: #1F2937;
    --light: #F9FAFB;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --sidebar-width: 280px;
    --sidebar-collapsed: 80px;
    --topbar-height: 70px;
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --border-radius-lg: 16px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    color: var(--gray-700);
    background-color: var(--gray-50);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.3;
}

::selection {
    background-color: var(--primary-light);
    color: var(--primary);
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-success { color: var(--success) !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-info { color: var(--info) !important; }

.bg-primary { background-color: var(--primary) !important; }
.bg-secondary { background-color: var(--secondary) !important; }
.bg-success { background-color: var(--success) !important; }
.bg-danger { background-color: var(--danger) !important; }
.bg-warning { background-color: var(--warning) !important; }
.bg-info { background-color: var(--info) !important; }

.border-primary { border-color: var(--primary) !important; }
.border-secondary { border-color: var(--secondary) !important; }

.btn {
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
    background-color: var(--secondary-hover);
    border-color: var(--secondary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

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

.btn-outline-secondary {
    color: var(--secondary);
    border-color: var(--secondary);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 13px;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 16px;
}

.btn-icon {
    width: 38px;
    height: 38px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
}

.btn-icon i {
    pointer-events: none;
}

.btn-icon.btn-sm {
    width: 32px;
    height: 32px;
}

.btn-icon.btn-lg {
    width: 48px;
    height: 48px;
}

.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    background: white;
    overflow: visible;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    background-color: transparent;
    border-bottom: 1px solid var(--gray-100);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background-color: transparent;
    border-top: 1px solid var(--gray-100);
    padding: 1rem 1.5rem;
}

.card-elevated {
    box-shadow: var(--shadow-lg);
}

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

.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    border-radius: 6px;
}

.badge-primary {
    background-color: var(--primary-light);
    color: var(--primary);
}

.badge-success {
    background-color: #D1FAE5;
    color: #059669;
}

.badge-danger {
    background-color: #FEE2E2;
    color: #DC2626;
}

.badge-warning {
    background-color: #FEF3C7;
    color: #D97706;
}

.badge-info {
    background-color: #DBEAFE;
    color: #2563EB;
}

.badge-secondary {
    background-color: #E5E7EB;
    color: #4B5563;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--gray-600);
}

.avatar-sm {
    width: 32px;
    height: 32px;
    font-size: 12px;
}

.avatar-lg {
    width: 64px;
    height: 64px;
    font-size: 24px;
}

.avatar-xl {
    width: 80px;
    height: 80px;
    font-size: 32px;
}

.avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.form-control, .form-select {
    border-radius: var(--border-radius-sm);
    padding: 0.625rem 1rem;
    border: 1px solid var(--gray-200);
    font-size: 14px;
    transition: var(--transition);
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
}

.input-group-text {
    border-radius: var(--border-radius-sm);
    background-color: var(--gray-50);
    border-color: var(--gray-200);
}

.form-check-input:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.table {
    margin-bottom: 0;
}

.table thead th {
    font-weight: 600;
    color: var(--gray-600);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--gray-200);
    padding: 1rem;
    background-color: var(--gray-50);
}

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

.table tbody tr:hover {
    background-color: var(--gray-50);
}

.table-hover tbody tr:hover {
    background-color: var(--gray-50);
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: var(--gray-50);
}

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

.dropdown-menu {
    border: none;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    z-index: 100002;
}

.dropdown-item {
    border-radius: 6px;
    padding: 0.5rem 1rem;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dropdown-item:hover {
    background-color: var(--gray-50);
    color: var(--primary);
}

.dropdown-item.active {
    background-color: var(--primary-light);
    color: var(--primary);
}

.modal-content {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-xl);
}

.modal-header {
    border-bottom: 1px solid var(--gray-100);
    padding: 1.25rem 1.5rem;
}

.modal-title {
    font-weight: 600;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--gray-100);
    padding: 1rem 1.5rem;
}

.modal-backdrop.show {
    opacity: 0.5;
}

.modal-header.bg-danger {
    background-color: var(--danger) !important;
}

.delete-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-icon-wrapper i {
    font-size: 32px;
    color: var(--danger);
}

.teacher-profile-view .avatar-xl {
    width: 100px;
    height: 100px;
}

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

.nav-tabs {
    border-bottom: 2px solid var(--gray-100);
}

.nav-tabs .nav-link {
    border: none;
    color: var(--gray-500);
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.nav-tabs .nav-link:hover {
    color: var(--primary);
    border-color: transparent;
}

.nav-tabs .nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: transparent;
}

.page-link {
    border-radius: var(--border-radius-sm);
    margin: 0 0.25rem;
    color: var(--gray-600);
}

.page-link:hover {
    color: var(--primary);
    background-color: var(--gray-50);
    border-color: var(--gray-200);
}

.page-item.active .page-link {
    background-color: var(--primary);
    border-color: var(--primary);
}

.pagination {
    margin: 0;
}

.alert {
    border: none;
    border-radius: var(--border-radius-sm);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background-color: #D1FAE5;
    color: #059669;
}

.alert-danger {
    background-color: #FEE2E2;
    color: #DC2626;
}

.alert-warning {
    background-color: #FEF3C7;
    color: #D97706;
}

.alert-info {
    background-color: #DBEAFE;
    color: #2563EB;
}

.progress {
    height: 8px;
    border-radius: 4px;
    background-color: var(--gray-100);
}

.progress-bar {
    border-radius: 4px;
}

.toast {
    border: none;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-lg);
}

.toast-header {
    background-color: white;
    border-bottom: 1px solid var(--gray-100);
}

.custom-file-input:focus ~ .custom-file-label,
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.custom-file-label {
    border-radius: var(--border-radius-sm);
    padding: 0.625rem 1rem;
    border: 1px solid var(--gray-200);
    background-color: white;
}

.image-preview {
    width: 100%;
    max-width: 150px;
    height: 150px;
    border-radius: var(--border-radius);
    object-fit: cover;
    border: 2px dashed var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gray-50);
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
}

.file-upload-wrapper {
    position: relative;
}

.file-upload-preview {
    position: relative;
    display: inline-block;
}

.file-upload-preview .remove-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--danger);
    color: white;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
}

/* ===== LAYOUT ===== */
.layout-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: var(--sidebar-width);
    background: white;
    border-right: 1px solid var(--gray-100);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed);
}

.sidebar-header {
    flex-shrink: 0;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-100);
}

.sidebar-profile {
    flex-shrink: 0;
    padding: 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar.collapsed .sidebar-profile {
    justify-content: center;
    padding: 1rem;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: var(--gray-300);
    border-radius: 2px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: var(--gray-400);
}

.sidebar-footer {
    flex-shrink: 0;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-100);
}

.sidebar.collapsed .sidebar-footer {
    padding: 1rem;
}

.sidebar.collapsed .sidebar-footer .btn span {
    display: none;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    position: sticky;
    top: 0;
    height: var(--topbar-height);
    background: white;
    border-bottom: 1px solid var(--gray-100);
    z-index: 998;
    flex-shrink: 0;
}

.content-wrapper {
    padding: 2rem;
    min-height: calc(100vh - var(--topbar-height));
}

/* ===== COLLAPSED STATE ===== */
.sidebar.collapsed .sidebar-logo h1 { display: none; }
.sidebar.collapsed .sidebar-profile-info { display: none; }
.sidebar.collapsed .nav-section-title { display: none; }
.sidebar.collapsed .nav-link span { display: none; }
.sidebar.collapsed .nav-submenu { display: none !important; }
.sidebar.collapsed .nav-parent .submenu-arrow { display: none; }

/* ===== ADMIN SIDEBAR COLLAPSED STATE ===== */
.admin-sidebar.collapsed { width: var(--sidebar-collapsed); }
.admin-sidebar.collapsed .sidebar-profile-info { display: none; }
.admin-sidebar.collapsed .nav-section-title { display: none; }
.admin-sidebar.collapsed .nav-link span { display: none; }
.admin-sidebar.collapsed .nav-submenu { display: none !important; }
.admin-sidebar.collapsed .nav-parent .submenu-arrow { display: none; }
.admin-sidebar.collapsed .sidebar-footer .btn span { display: none; }
.admin-sidebar.collapsed .sidebar-footer { padding: 1rem; }

.admin-main { flex: 1; margin-left: var(--sidebar-width); min-width: 0; display: flex; flex-direction: column; transition: var(--transition); padding-top: var(--topbar-height); }
.admin-main.sidebar-collapsed { margin-left: var(--sidebar-collapsed); }
.admin-main .admin-topbar { position: fixed; top: 0; left: 0; right: 0; height: var(--topbar-height); background: white; border-bottom: 1px solid var(--gray-100); z-index: 1001; display: flex; align-items: center; justify-content: space-between; padding: 0 2rem; transition: var(--transition); }
.admin-main .content-wrapper { padding: 2rem; min-height: 100vh; }

/* ===== ADMIN SIDEBAR SUBMENU ===== */
.admin-sidebar .nav-submenu { margin-left: 3rem; display: none; }
.admin-sidebar .nav-submenu.expanded { display: block; }
.admin-sidebar .nav-submenu .nav-link { padding: 0.5rem 1rem; font-size: 13px; }
.admin-sidebar .nav-parent { position: relative; cursor: pointer; }
.admin-sidebar .nav-parent .submenu-arrow { font-size: 12px !important; transition: transform 0.3s ease; margin-left: auto; flex-shrink: 0; }
.admin-sidebar .nav-parent.expanded .submenu-arrow { transform: rotate(180deg); }

/* ===== GENERIC SUBMENU (for all modules) ===== */
.nav-submenu { margin-left: 3rem; display: none; }
.nav-submenu.expanded { display: block; }
.nav-submenu .nav-link { padding: 0.5rem 1rem; font-size: 13px; }
.nav-parent { position: relative; cursor: pointer; }
.nav-parent .submenu-arrow { font-size: 12px !important; transition: transform 0.3s ease; margin-left: auto; flex-shrink: 0; }
.nav-parent.expanded .submenu-arrow { transform: rotate(180deg); }

.topbar {
    position: sticky;
    top: 0;
    height: var(--topbar-height);
    background: white;
    border-bottom: 1px solid var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 999;
    overflow: visible;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.toggle-sidebar {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    transition: var(--transition);
}

.toggle-sidebar:hover {
    background-color: var(--gray-50);
    color: var(--primary);
}

.topbar-school-name {
    font-weight: 600;
    color: var(--gray-800);
}

.toggle-sidebar + .topbar-school-name {
    border-left: 1px solid var(--gray-200);
    padding-left: 0.5rem;
}

.breadcrumb-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 14px;
}

.breadcrumb-wrapper .breadcrumb {
    margin: 0;
    padding: 0;
    background: transparent;
    font-size: 14px;
}

.breadcrumb-wrapper .breadcrumb-item a {
    color: var(--gray-500);
}

.breadcrumb-wrapper .breadcrumb-item.active {
    color: var(--gray-700);
    font-weight: 500;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.topbar-search {
    position: relative;
}

.topbar-search input {
    width: 250px;
    padding-left: 2.5rem;
}

.topbar-search i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.topbar-item {
    position: relative;
}

.topbar-icon-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    transition: var(--transition);
    position: relative;
}

.topbar-icon-btn:hover {
    background-color: var(--gray-50);
    color: var(--primary);
}

.topbar-icon-btn .badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 10px;
    border-radius: 50%;
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.topbar-user:hover {
    background-color: var(--gray-50);
}

.topbar-user-info {
    text-align: right;
}

.topbar-user-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--gray-800);
}

.topbar-user-role {
    font-size: 12px;
    color: var(--gray-500);
}

.stat-card {
    padding: 1.5rem;
    border-radius: var(--border-radius);
    background: white;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    text-align: center;
}

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

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.stat-card.primary::before { background: var(--primary); }
.stat-card.success::before { background: var(--success); }
.stat-card.warning::before { background: var(--warning); }
.stat-card.danger::before { background: var(--danger); }
.stat-card.info::before { background: #0EA5E9; }

.stat-card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 1rem auto;
}

.stat-card.primary .stat-card-icon { background: var(--primary-light); color: var(--primary); }
.stat-card.success .stat-card-icon { background: #D1FAE5; color: var(--success); }
.stat-card.warning .stat-card-icon { background: #FEF3C7; color: var(--warning); }
.stat-card.danger .stat-card-icon { background: #FEE2E2; color: var(--danger); }
.stat-card.info .stat-card-icon { background: #E0F2FE; color: #0EA5E9; }

.stat-card-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.stat-card-label {
    font-size: 14px;
    color: var(--gray-500);
}

.stat-card-trend {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 13px;
    margin-top: 0.5rem;
}

.stat-card-trend.up { color: var(--success); }
.stat-card-trend.down { color: var(--danger); }

.filter-bar {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow);
}

.filter-bar .row {
    gap: 1rem 0;
}

.filter-bar .form-group {
    margin-bottom: 0;
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
}

.chart-container {
    position: relative;
    height: 300px;
    padding: 1rem;
}

.activity-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-50);
}

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

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 500;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.activity-time {
    font-size: 12px;
    color: var(--gray-400);
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    background: white;
    box-shadow: var(--shadow);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.quick-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: var(--primary-light);
}

.quick-action-btn i {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.quick-action-btn span {
    font-weight: 500;
    color: var(--gray-700);
}

.search-box {
    position: relative;
}

.search-box input {
    padding-left: 2.5rem;
    width: 100%;
}

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

.data-table_wrapper {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.data-table_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
}

.data-table_title {
    font-weight: 600;
    font-size: 16px;
    color: var(--gray-800);
}

.data-table_actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.data-table_filters {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
    background: var(--gray-50);
}

.data-table_body {
    overflow-x: auto;
}

.data-table_footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-100);
}

.data-table_info {
    font-size: 14px;
    color: var(--gray-600);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 32px;
    color: var(--gray-400);
}

.empty-state-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.empty-state-text {
    font-size: 14px;
    color: var(--gray-500);
    max-width: 400px;
    margin: 0 auto 1.5rem;
}

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

.message-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.message-item:hover {
    background-color: var(--gray-50);
}

.message-item.unread {
    background-color: var(--primary-light);
}

.message-item.unread:hover {
    background-color: #E0E7FF;
}

.message-avatar {
    flex-shrink: 0;
}

.message-content {
    flex: 1;
    min-width: 0;
}

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

.message-sender {
    font-weight: 600;
    color: var(--gray-800);
}

.message-time {
    font-size: 12px;
    color: var(--gray-400);
}

.message-subject {
    font-size: 14px;
    color: var(--gray-700);
    margin-bottom: 0.25rem;
}

.message-preview {
    font-size: 13px;
    color: var(--gray-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    border-bottom: 1px solid var(--gray-100);
}

.calendar-title {
    font-weight: 600;
    font-size: 18px;
}

.calendar-nav {
    display: flex;
    gap: 0.5rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-weekday {
    padding: 0.75rem;
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    color: var(--gray-500);
    text-transform: uppercase;
    border-bottom: 1px solid var(--gray-100);
}

.calendar-day {
    min-height: 100px;
    padding: 0.5rem;
    border-right: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    transition: var(--transition);
}

.calendar-day:nth-child(7n) {
    border-right: none;
}

.calendar-day:hover {
    background-color: var(--gray-50);
}

.calendar-day.other-month {
    background-color: var(--gray-50);
    color: var(--gray-400);
}

.calendar-day.today {
    background-color: var(--primary-light);
}

.calendar-day-number {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 0.5rem;
}

.calendar-day.today .calendar-day-number {
    color: var(--primary);
}

.calendar-event {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 11px;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.calendar-event.academic { background: #DBEAFE; color: #2563EB; }
.calendar-event.event { background: #D1FAE5; color: #059669; }
.calendar-event.exam { background: #FEE2E2; color: #DC2626; }
.calendar-event.holiday { background: #FEF3C7; color: #D97706; }

.calendar-event { display: block !important; }

.event-list {
    max-height: 500px;
    overflow-y: auto;
}

.event-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--border-radius-sm);
    margin-bottom: 0.5rem;
    background: var(--gray-50);
    transition: var(--transition);
}

.event-item:hover {
    background: var(--gray-100);
}

.event-date {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-sm);
    background: var(--primary);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.event-date-day {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.event-date-month {
    font-size: 10px;
    text-transform: uppercase;
}

.event-info {
    flex: 1;
}

.event-title {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.event-time {
    font-size: 13px;
    color: var(--gray-500);
}

.profile-header {
    position: relative;
    margin-bottom: 2rem;
}

.profile-cover {
    height: 200px;
    background: linear-gradient(135deg, var(--primary) 0%, #818CF8 100%);
    border-radius: var(--border-radius);
}

.profile-info {
    position: relative;
    margin-top: -60px;
    padding: 0 2rem;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    background: white;
}

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

.profile-details {
    margin-top: 1rem;
}

.profile-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-800);
}

.profile-role {
    color: var(--gray-500);
}

.profile-tabs {
    margin-top: 2rem;
}

.landing-navbar {
    background: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.landing-navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.landing-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.landing-logo img {
    width: 45px;
    height: 45px;
}

.landing-logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.landing-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.landing-nav a {
    font-weight: 500;
    color: var(--gray-600);
    transition: var(--transition);
}

.landing-nav a:hover {
    color: var(--primary);
}

.landing-nav-buttons {
    display: flex;
    gap: 1rem;
}

.hero-section {
    padding: 8rem 0 5rem;
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 150%;
    background: linear-gradient(135deg, transparent 0%, rgba(79, 70, 229, 0.1) 100%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-title span {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-image {
    position: relative;
}

.hero-image img {
    max-width: 100%;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
}

.features-section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.section-subtitle {
    text-align: center;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto 3rem;
}

.feature-card {
    padding: 2rem;
    border-radius: var(--border-radius);
    background: white;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--border-radius);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 1.5rem;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-text {
    color: var(--gray-500);
    line-height: 1.7;
}

.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, #6366F1 100%);
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.landing-footer {
    background: var(--gray-900);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-brand img {
    width: 40px;
    height: 40px;
}

.footer-brand h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
}

.footer-text {
    color: var(--gray-400);
    margin-bottom: 1.5rem;
}

.footer-title {
    font-weight: 600;
    color: white;
    margin-bottom: 1.25rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray-400);
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
    color: var(--gray-400);
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 100%);
    padding: 2rem;
}

.login-card {
    width: 100%;
    max-width: 450px;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    padding: 2.5rem;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.login-logo img {
    width: 50px;
    height: 50px;
}

.login-logo h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

.login-subtitle {
    color: var(--gray-500);
}

.login-tabs {
    display: flex;
    margin-bottom: 2rem;
    background: var(--gray-50);
    border-radius: var(--border-radius-sm);
    padding: 0.25rem;
}

.login-tab {
    flex: 1;
    padding: 0.75rem;
    text-align: center;
    border: none;
    background: transparent;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray-500);
}

.login-tab.active {
    background: white;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.role-select {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.role-option {
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--border-radius-sm);
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.role-option:hover {
    border-color: var(--primary);
}

.role-option.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}

.role-option i {
    font-size: 24px;
    margin-bottom: 0.5rem;
    color: var(--gray-400);
}

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

.role-option span {
    display: block;
    font-size: 13px;
    font-weight: 500;
}

.login-form .form-group {
    margin-bottom: 1.25rem;
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.login-btn {
    width: 100%;
    padding: 0.875rem;
    font-size: 16px;
}

.forgot-password {
    font-size: 14px;
    color: var(--primary);
}

@media (max-width: 991.98px) {
    :root {
        --sidebar-width: 280px;
    }

    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
    }

    .layout-wrapper {
        display: flex !important;
        flex-direction: row !important;
        width: 100% !important;
        max-width: 100vw !important;
        position: relative;
    }

    .sidebar {
        position: fixed !important;
        top: var(--topbar-height) !important;
        left: 0 !important;
        width: var(--sidebar-width) !important;
        height: calc(100vh - var(--topbar-height)) !important;
        transform: translateX(-100%);
        z-index: 100000 !important;
        overflow: hidden !important;
    }

    .sidebar-nav {
        overflow-y: auto !important;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        width: 100%;
        min-width: 0;
    }

    .content-wrapper {
        padding: 1rem;
        min-height: auto;
    }

    header.topbar {
        width: 100vw !important;
        max-width: 100vw !important;
        overflow: visible !important;
        position: relative !important;
        z-index: 100 !important;
        display: flex !important;
        padding: 0.375rem 0.5rem !important;
        gap: 0.25rem !important;
    }

    .topbar .dropdown-menu {
        position: fixed !important;
        z-index: 999999 !important;
        max-width: calc(100vw - 16px) !important;
    }

    .topbar-left {
        flex-shrink: 0 !important;
    }

    .topbar-right {
        flex-shrink: 0 !important;
        margin-left: auto !important;
        overflow: visible !important;
    }

    .topbar-right > * {
        flex-shrink: 0 !important;
    }

    .topbar-item {
        flex-shrink: 0 !important;
        overflow: visible !important;
    }

    .topbar-icon-btn {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
    }

    .topbar-user {
        flex-shrink: 0 !important;
        overflow: visible !important;
    }

    .toggle-sidebar {
        width: 28px !important;
        height: 28px !important;
    }

    .d-flex.justify-content-between {
        gap: 0.5rem !important;
    }

    .d-flex.justify-content-between .btn {
        font-size: 0.75rem !important;
        padding: 0.375rem 0.5rem !important;
        white-space: nowrap !important;
    }

    .d-flex.justify-content-between .btn i {
        margin-right: 0.25rem !important;
    }

    .content-wrapper .btn {
        font-size: 0.75rem;
        padding: 0.375rem 0.5rem;
    }

    .content-wrapper h2 {
        font-size: 1rem;
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .topbar {
        padding: 0.5rem 1rem;
        flex-wrap: wrap !important;
        display: flex !important;
        justify-content: space-between !important;
        width: 100%;
        gap: 0.5rem;
        overflow: visible !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
    }

    .topbar-search {
        display: none !important;
    }

    .topbar-left {
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
        display: flex !important;
        align-items: center !important;
    }

    .topbar-right {
        gap: 0.25rem !important;
        display: flex !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        justify-content: flex-end !important;
    }

    .topbar-right > .topbar-item {
        flex-shrink: 0;
        display: flex;
        align-items: center;
    }

    .topbar-icon-btn {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        padding: 0 !important;
        font-size: 0.75rem !important;
        line-height: 28px !important;
    }

    .topbar-icon-btn i {
        font-size: 0.75rem !important;
    }

    .topbar-icon-btn .badge {
        font-size: 0.5rem;
        min-width: 12px;
        height: 12px;
        line-height: 12px;
        padding: 0 2px;
        position: absolute;
        top: 0;
        right: 0;
    }

    .topbar-user {
        margin-left: auto;
        flex-shrink: 0;
    }

    .topbar-user .avatar {
        width: 24px !important;
        height: 24px !important;
        min-width: 24px !important;
    }

    .topbar-user .avatar img {
        width: 24px !important;
        height: 24px !important;
    }

    .topbar-user-info {
        display: none !important;
    }

    #subscriptionAlert,
    .school-selector {
        display: none !important;
    }

    .dropdown-menu {
        width: 100%;
        max-width: 100vw;
        position: fixed !important;
        z-index: 999999 !important;
    }

    .breadcrumb {
        font-size: 0.85rem;
        margin: 0;
        padding: 0;
    }

    .list-group-item {
        padding: 0.5rem;
    }

    .list-group-item label {
        flex-wrap: wrap;
        gap: 0.5rem !important;
    }

    .list-group-item span[style*="padding"] {
        font-size: 0.7rem !important;
        padding: 2px 6px !important;
    }

    .content-wrapper {
        padding: 1rem;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
        width: auto;
        max-width: 100vw;
    }

    .row > * {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .g-4, .g-3, .g-2 {
        --bs-gutter-x: 0.5rem;
        --bs-gutter-y: 0.5rem;
    }

    .col-sm-6, .col-md-4, .col-md-6, .col-md-8, .col-xl-3 {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
    }

    .card {
        width: 100%;
        max-width: 100vw;
    overflow: visible;
    }

    .card-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start !important;
        width: 100%;
    }

    .card-header > * {
        width: 100%;
        max-width: 100%;
    }

    .card-header > *:not(h5):not(.h5) {
        width: 100%;
    }

    .card-body {
        padding: 1rem;
        width: 100%;
        overflow-x: auto;
    }

    .d-flex.justify-content-between {
        flex-direction: column;
        align-items: flex-start !important;
        width: 100%;
    }

    .d-flex.justify-content-between > * {
        width: 100%;
        max-width: 100%;
    }

    .d-flex.justify-content-between button,
    .d-flex.justify-content-between .btn {
        align-self: flex-start;
        margin-top: 0.5rem;
        width: auto;
    }

    .form-control, .form-select {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .d-flex.gap-2 {
        gap: 0.5rem !important;
        flex-wrap: wrap !important;
        width: 100%;
    }

    .d-flex.gap-2 > * {
        flex: 0 1 auto !important;
        min-width: 120px;
        max-width: 100%;
    }

    .d-flex.gap-2 .form-control,
    .d-flex.gap-2 .form-select {
        flex: 1 1 120px !important;
        width: auto !important;
        min-width: 120px;
        max-width: 250px;
    }

    .d-flex.gap-2 .form-control {
        max-width: 200px !important;
    }
    }

    .stat-card {
        padding: 1rem;
        width: 100%;
        text-align: center;
    }

    h2, .h2 {
        font-size: 1.25rem;
        word-wrap: break-word;
    }

    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-responsive > * {
        width: 100%;
        min-width: auto;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-section {
        padding: 4rem 0 2rem;
    }

    .landing-nav {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .section-title {
        font-size: 2rem;
    }

    .content-wrapper {
        padding: 1rem;
    }

    h2, .h2 {
        font-size: 1.25rem;
    }

    .stat-card {
        padding: 1rem;
        text-align: center;
    }

    .stat-card-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
        margin: 0 auto 1rem auto;
    }

    .stat-card-value {
        font-size: 1.5rem;
    }

    .stat-card-label {
        font-size: 0.75rem;
    }

    .row.g-4 {
        gap: 1rem !important;
    }

    .row.g-4 > [class*="col-"] {
        margin-bottom: 0;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .btn-sm {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }

    .form-control, .form-select {
        font-size: 0.875rem;
        padding: 0.5rem 0.75rem;
    }

    .table {
        font-size: 0.75rem;
    }

    .table th, .table td {
        padding: 0.5rem;
    }

    .table .btn-sm {
        padding: 0.25rem 0.375rem;
    }

    .table .btn-sm i {
        font-size: 0.75rem;
    }

    .badge {
        font-size: 0.65rem;
        padding: 0.25em 0.5em;
    }

    .breadcrumb {
        font-size: 0.75rem;
    }

    .card {
        margin-bottom: 1rem;
    }

    .modal-dialog {
        margin: 0.5rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .nav-link {
        padding: 0.625rem 0.75rem;
        font-size: 0.875rem;
    }

    .nav-link i {
        font-size: 1rem;
    }
}

    .hero-buttons {
        flex-direction: column;
    }

    .section-title {
        font-size: 2rem;
    }

    .content-wrapper {
        padding: 1rem;
    }

    .topbar {
        padding: 0 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .content-wrapper {
        padding: 1rem;
    }

    .topbar {
        padding: 0 1rem;
    }

    .stat-card {
        padding: 1.25rem;
        text-align: center;
    }

    .stat-card-value {
        font-size: 1.5rem;
    }

    .data-table_header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .data-table_filters .row {
        flex-direction: column;
    }

    .calendar-day {
        min-height: 60px;
        padding: 0.25rem;
    }

    .calendar-day-number {
        font-size: 12px;
    }

    .calendar-event {
        display: none;
    }

    .calendar-day.today .calendar-event:first-child {
        display: block;
    }

    .profile-cover {
        height: 150px;
    }

    .profile-info {
        margin-top: -40px;
        padding: 0 1rem;
    }

    .profile-avatar {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 575.98px) {
    .card-body {
        padding: 1rem;
    }

    .filter-actions {
        flex-direction: column;
        width: 100%;
    }

    .filter-actions .btn {
        width: 100%;
    }

    .table-responsive {
        font-size: 13px;
    }

    .modal-dialog {
        margin: 0.5rem;
    }

    .login-card {
        padding: 1.5rem;
    }
}

.offcanvas-backdrop.show {
    opacity: 0.5;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.overlay.show {
    opacity: 1;
    visibility: visible;
}

.spinner-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.table-loading {
    position: relative;
}

.table-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.list-group-item {
    border: none;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
}

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

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gray-200);
}

.timeline-item {
    position: relative;
    padding-bottom: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: white;
    border: 2px solid var(--primary);
}

.timeline-item.success::before { border-color: var(--success); }
.timeline-item.warning::before { border-color: var(--warning); }
.timeline-item.danger::before { border-color: var(--danger); }

.timeline-time {
    font-size: 12px;
    color: var(--gray-400);
    margin-bottom: 0.25rem;
}

.timeline-content {
    font-weight: 500;
    color: var(--gray-800);
}

.wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.wizard-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gray-200);
    z-index: 0;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.wizard-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.wizard-step.active .wizard-step-number {
    background: var(--primary);
    color: white;
}

.wizard-step.completed .wizard-step-number {
    background: var(--success);
    color: white;
}

.wizard-step-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-500);
}

.wizard-step.active .wizard-step-title,
.wizard-step.completed .wizard-step-title {
    color: var(--gray-800);
}

.kanban-board {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.kanban-column {
    min-width: 300px;
    background: var(--gray-50);
    border-radius: var(--border-radius);
    padding: 1rem;
}

.kanban-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gray-200);
}

.kanban-title {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.kanban-count {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--gray-200);
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.kanban-card {
    background: white;
    border-radius: var(--border-radius-sm);
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-sm);
    cursor: grab;
}

.kanban-card-title {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.kanban-card-meta {
    font-size: 12px;
    color: var(--gray-500);
    display: flex;
    gap: 1rem;
}

.gantt-chart {
    overflow-x: auto;
}

.gantt-row {
    display: flex;
    border-bottom: 1px solid var(--gray-100);
}

.gantt-label {
    width: 200px;
    padding: 0.75rem;
    font-weight: 500;
    flex-shrink: 0;
    border-right: 1px solid var(--gray-100);
}

.gantt-timeline {
    flex: 1;
    position: relative;
    height: 50px;
}

.gantt-bar {
    position: absolute;
    height: 30px;
    top: 10px;
    border-radius: 4px;
    background: var(--primary);
    color: white;
    padding: 0 0.75rem;
    display: flex;
    align-items: center;
    font-size: 12px;
    white-space: nowrap;
}

.rating {
    display: flex;
    gap: 0.25rem;
}

.rating i {
    color: var(--gray-300);
}

.rating i.filled {
    color: var(--warning);
}

.grade-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
}

.grade-badge.A { background: #D1FAE5; color: #059669; }
.grade-badge.B { background: #DBEAFE; color: #2563EB; }
.grade-badge.C { background: #FEF3C7; color: #D97706; }
.grade-badge.D { background: #FED7AA; color: #EA580C; }
.grade-badge.F { background: #FEE2E2; color: #DC2626; }

.attendance-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.attendance-indicator.present { background: #D1FAE5; color: #059669; }
.attendance-indicator.absent { background: #FEE2E2; color: #DC2626; }
.attendance-indicator.late { background: #FEF3C7; color: #D97706; }
.attendance-indicator.excused { background: #DBEAFE; color: #2563EB; }

.student-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: var(--border-radius-sm);
    margin-bottom: 0.75rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.student-card:hover {
    box-shadow: var(--shadow-md);
}

.student-card-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--gray-200);
}

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

.student-card-info {
    flex: 1;
}

.student-card-name {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.student-card-meta {
    font-size: 13px;
    color: var(--gray-500);
}

.subject-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    background: var(--gray-100);
    color: var(--gray-600);
    margin: 0.25rem;
}

.subject-badge.math { background: #DBEAFE; color: #2563EB; }
.subject-badge.english { background: #D1FAE5; color: #059669; }
.subject-badge.science { background: #FEE2E2; color: #DC2626; }
.subject-badge.history { background: #FEF3C7; color: #D97706; }
.subject-badge.art { background: #F3E8FF; color: #9333EA; }

.print-header {
    display: none;
}

@media print {
    body.print-grayscale {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        filter: grayscale(100%);
    }
    
    body.print-grayscale * {
        color: #000 !important;
        background: #fff !important;
        border-color: #000 !important;
    }
    
    body.print-grayscale .bg-primary,
    body.print-grayscale .bg-success,
    body.print-grayscale .bg-warning,
    body.print-grayscale .bg-danger,
    body.print-grayscale .bg-info {
        background: #fff !important;
        border: 1px solid #000 !important;
    }
    
    .sidebar, .topbar, .btn, .filter-bar, .no-print {
        display: none !important;
    }
    
    html, body {
        overflow: visible !important;
        width: auto !important;
    }
    
    .layout-wrapper, .main-content, .content-wrapper {
        overflow: visible !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }
}

    .report-preview {
        width: 100% !important;
        max-width: 210mm !important;
        margin: 0 auto !important;
        padding: 15px !important;
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        overflow-x: visible;
    }

    .content-wrapper .report-preview {
        max-height: none !important;
        overflow: visible !important;
    }

    .table-responsive {
        overflow-x: visible !important;
    }

    .report-preview table {
        font-size: 9pt !important;
    }

    .report-preview th,
    .report-preview td {
        padding: 3px !important;
    }

    @page {
        size: A4;
        margin: 5mm;
    }

    .report-preview {
        overflow-x: auto;
        margin-left: 0 !important;
        padding-left: 15px !important;
    }
}

    .main-content {
        margin-left: 0 !important;
    }

    .print-header {
        display: block;
        text-align: center;
        margin-bottom: 2rem;
        padding-bottom: 1rem;
        border-bottom: 2px solid var(--gray-200);
    }

    .print-header h1 {
        font-size: 24px;
        margin-bottom: 0.5rem;
    }

    .print-header p {
        color: var(--gray-500);
        margin: 0;
    }

        .card {
            box-shadow: none;
            border: 1px solid var(--gray-200);
        }
}

.subject-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-sm);
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.subject-list-item:hover {
    background-color: var(--gray-50);
    border-color: var(--primary);
}

.subject-list-item.selected {
    background-color: var(--primary-light);
    border-color: var(--primary);
}

.subject-counter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.subject-counter .count {
    font-weight: 700;
    color: var(--primary);
}

.academic-year-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--primary-light);
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    color: var(--primary);
}

.academic-year-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.level-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
}

.level-badge.olevel {
    background: var(--primary-light);
    color: var(--primary);
}

.level-badge.alevel {
    background: #D1FAE5;
    color: #059669;
}

.subject-requirement {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--border-radius-sm);
    margin-bottom: 1rem;
}

.subject-requirement-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.requirement-item i {
    width: 20px;
    text-align: center;
}

.mini-subject-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: var(--gray-100);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.mini-subject-badge.compulsory {
    background: #D1FAE5;
    color: #059669;
}

.mini-subject-badge.optional {
    background: var(--gray-200);
    color: var(--gray-600);
}

.student-subject-list {
    max-height: 200px;
    overflow-y: auto;
}

.subject-group {
    margin-bottom: 1rem;
}

.subject-group-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
    padding-bottom: 0.25rem;
    border-bottom: 1px solid var(--gray-200);
}

.progress-subject {
    height: 6px;
    border-radius: 3px;
}

.progress-subject .progress-bar {
    transition: width 0.5s ease;
}

.assignment-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.assignment-status.complete {
    color: var(--success);
}

.assignment-status.incomplete {
    color: var(--warning);
}

.assignment-status.invalid {
    color: var(--danger);
}

.bulk-action-bar {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 1rem;
    border-top: 1px solid var(--gray-200);
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.05);
}

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

.quick-stat-card .icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 24px;
}

.class-structure-card {
    border-left: 4px solid var(--primary);
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--border-radius-sm);
    margin-bottom: 1rem;
}

.class-structure-card h6 {
    margin-bottom: 0.5rem;
}

.subject-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
}

.subject-checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.subject-checkbox-item:hover {
    border-color: var(--primary);
    background: var(--gray-50);
}

.subject-checkbox-item.checked {
    border-color: var(--primary);
    background: var(--primary-light);
}

.subject-checkbox-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.alevel-structure {
    background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.alevel-structure .compulsory-section {
    background: white;
    border-radius: var(--border-radius-sm);
    padding: 1rem;
    margin-bottom: 1rem;
}

.alevel-structure .optional-section {
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius-sm);
    padding: 1rem;
}

.marks-entry-warning {
    background: #FEF3C7;
    border: 1px solid #F59E0B;
    border-radius: var(--border-radius-sm);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.marks-entry-warning i {
    color: #D97706;
}

.subject-registered-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.year-refresh-notice {
    background: linear-gradient(135deg, var(--primary-light) 0%, #C7D2FE 100%);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.year-refresh-notice i {
    color: var(--primary);
}

/* ===== LANDING PAGE REDESIGN ===== */

.landing-navbar {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.75rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}
.landing-navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0,0,0,0.08);
    border-bottom-color: rgba(0,0,0,0.05);
    padding: 0.5rem 0;
}
.nav-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: cover;
}
.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), #818CF8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}
.brand-text {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--gray-900);
}
.landing-navbar .nav-link {
    font-weight: 500;
    color: var(--gray-600);
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}
.landing-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
    border-radius: 2px;
}
.landing-navbar .nav-link:hover,
.landing-navbar .nav-link.active {
    color: var(--primary);
}
.landing-navbar .nav-link:hover::after,
.landing-navbar .nav-link.active::after {
    width: 100%;
}

@media (max-width: 991.98px) {
    .landing-navbar {
        background: rgba(255,255,255,0.98);
    }
    .landing-navbar .navbar-collapse {
        background: #ffffff;
        border-radius: 12px;
        padding: 1rem;
        margin-top: 0.75rem;
        box-shadow: 0 10px 40px rgba(0,0,0,0.1);
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
}

.hero {
    padding: 8rem 0 5rem;
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 50%, #F0FDF4 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}
.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
}
.shape-1 {
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: var(--primary);
    opacity: 0.15;
}
.shape-2 {
    bottom: -10%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: var(--secondary);
    opacity: 0.12;
}
.shape-3 {
    top: 40%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: #F59E0B;
    opacity: 0.08;
}
.gradient-text {
    background: linear-gradient(135deg, var(--primary), #818CF8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}
.hero-desc {
    font-size: 1.2rem;
    color: var(--gray-500);
    max-width: 540px;
    line-height: 1.7;
    margin-bottom: 2rem;
}
.hero-check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
}
.hero-visual {
    position: relative;
    padding: 2rem;
}
.main-card {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(79,70,229,0.15);
    position: relative;
    z-index: 2;
}
.card-sm {
    position: absolute;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    z-index: 3;
    min-width: 130px;
    text-align: center;
}
.card-sm-1 { top: 0; right: 0; }
.card-sm-2 { bottom: 15%; left: -5%; }
.card-sm-3 { bottom: 0; right: 10%; }

.hero-stat h4 { font-size: 1.5rem; }

.hero-illustration {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(79,70,229,0.15);
    image-rendering: auto;
}

.schools-scroll-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 16px 0;
}
.schools-scroll-wrapper::before,
.schools-scroll-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}
.schools-scroll-wrapper::before {
    left: 0;
    background: linear-gradient(to right, #fff 0%, transparent 100%);
}
.schools-scroll-wrapper::after {
    right: 0;
    background: linear-gradient(to left, #fff 0%, transparent 100%);
}
.schools-track {
    display: flex;
    align-items: center;
    gap: 24px;
    width: fit-content;
    will-change: transform;
    padding: 8px 0;
}
.schools-scroll-wrapper:hover .schools-track {
    animation-play-state: paused;
}
.school-card {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 22px 14px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 180px;
    cursor: default;
}
.school-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    transform: translateY(-4px);
}
.school-card-img-wrap {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    flex-shrink: 0;
}
.school-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.school-card-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 28px;
    flex-shrink: 0;
}
.school-card-name {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 12px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
    font-weight: 500;
    line-height: 1.3;
}

@media (max-width: 991.98px) {
    .school-card {
        width: 150px;
        padding: 20px 16px 12px;
    }
    .school-card-img-wrap,
    .school-card-placeholder {
        width: 80px;
        height: 80px;
    }
    .school-card-placeholder {
        font-size: 22px;
    }
    .school-card-name {
        max-width: 120px;
        font-size: 0.7rem;
        margin-top: 10px;
    }
    .schools-track {
        gap: 18px;
    }
}
@media (max-width: 575.98px) {
    .schools-scroll-wrapper {
        padding: 8px 0;
    }
    .school-card {
        width: 90px;
        padding: 12px 8px 8px;
        border-radius: 12px;
        box-shadow: 0 1px 8px rgba(0,0,0,0.05);
    }
    .school-card-img-wrap,
    .school-card-placeholder {
        width: 46px;
        height: 46px;
    }
    .school-card-placeholder {
        font-size: 13px;
    }
    .school-card-name {
        max-width: 76px;
        font-size: 0.6rem;
        margin-top: 6px;
        line-height: 1.2;
    }
    .schools-track {
        gap: 10px;
        padding: 4px 0;
    }
    .schools-scroll-wrapper::before,
    .schools-scroll-wrapper::after {
        width: 20px;
    }
}

.features {
    padding: 6rem 0;
    background: var(--gray-50);
}
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--gray-900);
}
.section-subtitle {
    font-size: 1.15rem;
    color: var(--gray-500);
    max-width: 600px;
    line-height: 1.7;
}
.feature-card {
    background: white;
    border: 1px solid var(--gray-100);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    border-color: transparent;
}
.feature-card:hover::before {
    transform: scaleX(1);
}
.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 1.5rem;
}
.icon-primary { background: var(--primary-light); color: var(--primary); }
.icon-success { background: #D1FAE5; color: #059669; }
.icon-warning { background: #FEF3C7; color: #D97706; }
.icon-info { background: #DBEAFE; color: #2563EB; }
.icon-danger { background: #FEE2E2; color: #DC2626; }
.icon-purple { background: #F3E8FF; color: #7C3AED; }

.pricing {
    padding: 6rem 0;
    background: var(--gray-50);
}
.pricing-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    position: relative;
    text-align: center;
}
.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.08);
    border-color: transparent;
}
.pricing-highlighted {
    border: 2px solid var(--primary);
    box-shadow: 0 8px 30px rgba(79,70,229,0.12);
}
.pricing-highlighted:hover {
    box-shadow: 0 20px 60px rgba(79,70,229,0.18);
}
.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 4px 20px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}
.pricing-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-top: 0.5rem;
}
.pricing-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.pricing-desc {
    color: var(--gray-500);
    font-size: 0.95rem;
    margin-bottom: 0;
}
.pricing-amount {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid var(--gray-100);
    border-bottom: 1px solid var(--gray-100);
    margin-bottom: 1.5rem;
}
.pricing-currency {
    font-size: 1.25rem;
    font-weight: 600;
    vertical-align: top;
    color: var(--gray-500);
}
.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1;
}
.pricing-period {
    font-size: 0.95rem;
    color: var(--gray-500);
}
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    flex-grow: 1;
}
.pricing-features li {
    padding: 0.6rem 0;
    font-size: 0.95rem;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    justify-content: center;
}
.pricing-features li i {
    font-size: 0.85rem;
    flex-shrink: 0;
}
.pricing-footer {
    margin-top: auto;
}
.pricing-footer .btn {
    display: flex;
    align-items: center;
    justify-content: center;
}

.roles-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, #6366F1 100%);
    position: relative;
    overflow: hidden;
}
.roles-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}
.roles-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}
.role-card {
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    height: 100%;
    transition: all 0.4s ease;
    position: relative;
}
.role-card:hover {
    background: rgba(255,255,255,0.18);
    transform: translateY(-5px);
}
.role-card.featured {
    background: rgba(255,255,255,0.95);
    border-color: transparent;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
.role-card.featured:hover {
    background: white;
    box-shadow: 0 30px 80px rgba(0,0,0,0.2);
}
.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #F59E0B, #F97316);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 0.35rem 1.25rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.role-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 1.5rem;
}
.role-features {
    list-style: none;
    padding: 0;
    margin: 0;
}
.role-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 14px;
    color: var(--gray-600);
}
.role-card.featured .role-features li {
    color: var(--gray-600);
}

/* Roles carousel */
#rolesCarousel .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.5);
    background: transparent;
    margin: 0 6px;
    opacity: 1;
    transition: all 0.3s ease;
}
#rolesCarousel .carousel-indicators button.active {
    background: white;
    border-color: white;
    transform: scale(1.3);
}
#rolesCarousel .carousel-control-prev-icon,
#rolesCarousel .carousel-control-next-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}
#rolesCarousel .carousel-item {
    transition: transform 0.6s ease-in-out, opacity 0.4s ease;
}
#rolesCarousel .role-card {
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255,255,255,0.95);
}
#rolesCarousel .role-card h4,
#rolesCarousel .role-card p {
    color: var(--gray-800);
}
#rolesCarousel .role-card p.text-muted {
    color: var(--gray-500) !important;
}
#rolesCarousel .role-card .role-features li {
    color: var(--gray-600);
}
/* Testimonials slider */

.role-card:not(.featured) .role-features li {
    color: rgba(255,255,255,0.85);
}
.role-card:not(.featured) h4 {
    color: white;
}
.role-card:not(.featured) p {
    color: rgba(255,255,255,0.7);
}


.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, #6366F1 100%);
    color: white;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}
.cta-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}
.cta-text {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 540px;
}
.cta-section .btn-light {
    color: var(--primary);
    font-weight: 600;
}
.cta-section .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.landing-footer {
    background: var(--gray-900);
    color: white;
    padding: 5rem 0 2rem;
}
.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 16px;
}
.social-link:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}
.footer-title {
    font-weight: 700;
    color: white;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 0.75rem;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}
.footer-links a {
    color: rgba(255,255,255,0.5);
    transition: all 0.3s ease;
    text-decoration: none;
}
.footer-links a:hover {
    color: white;
    padding-left: 4px;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: 3rem;
    padding-top: 2rem;
    text-align: center;
    color: rgba(255,255,255,0.4);
    font-size: 14px;
}

.white { color: white !important; }

@media (max-width: 991.98px) {
    .hero { min-height: 100vh; padding: 6rem 0 3rem; }
    .hero-title { font-size: 2.5rem; }
    .hero-visual { margin-top: 3rem; }
    .card-sm { display: none; }
    .section-title { font-size: 2rem; }
    .cta-title { font-size: 1.75rem; }
    .cta-section .text-lg-end { text-align: left !important; margin-top: 1.5rem; }
}
@media (max-width: 767.98px) {
    .hero { min-height: 100vh; }
    .hero-title { font-size: 2rem; }
    .hero-desc { font-size: 1rem; }
    .features { padding: 4rem 0; }
    .roles-section { padding: 4rem 0; }
    .landing-footer { padding: 3rem 0 1.5rem; }
}
@media (max-width: 575.98px) {
    .hero { min-height: 100vh; padding: 5rem 0 2rem; }
    .hero-title { font-size: 1.75rem; }
}

/* ===== BLOG SECTION ===== */

.page-hero {
    padding: 8rem 0 3rem;
    background: linear-gradient(135deg, #EEF2FF 0%, #E0E7FF 50%, #F0FDF4 100%);
    position: relative;
    overflow: hidden;
}
.page-hero-sm {
    padding: 7.5rem 0 2rem;
}
.min-vh-60 { min-height: 60vh; display: flex; align-items: center; }
.min-vh-40 { min-height: 40vh; display: flex; align-items: center; }

.blog-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1) !important;
}
.blog-card-img-link {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem 0.5rem 0 0;
}
.blog-card-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.blog-card:hover .blog-card-img {
    transform: scale(1.05);
}
.blog-card-img-placeholder {
    height: 200px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
}
.blog-card-video-placeholder {
    height: 200px;
    background: #fef2f2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #dc2626;
}
.blog-card-video-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #dc2626;
    color: #fff;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 600;
    z-index: 2;
}

.prev-next-card {
    transition: transform .2s ease, box-shadow .2s ease;
}
.prev-next-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
}
.prev-next-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.blog-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--gray-900, #111827);
}
.blog-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--gray-900, #111827);
}
.blog-content p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
    color: var(--gray-600, #4b5563);
}
.blog-content ul, .blog-content ol {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
}
.blog-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}
.blog-content blockquote {
    border-left: 4px solid var(--primary, #4F46E5);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: #f8fafc;
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
    color: #475569;
}
.blog-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.25rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
}
.blog-content code {
    background: #f1f5f9;
    padding: 0.15rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    color: #dc2626;
}
.blog-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
}
.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}
.blog-content a {
    color: var(--primary, #4F46E5);
    text-decoration: underline;
}
.blog-content a:hover {
    color: #4338ca;
}

@media (max-width: 767.98px) {
    .page-hero { padding: 6rem 0 2rem; }
    .page-hero-sm { padding: 6rem 0 1.5rem; }
    .blog-card-img { height: 180px; }
}

/* ===== LOGIN PAGE REDESIGN ===== */

.login-wrapper {
    min-height: 100vh;
    display: flex;
}
.login-sidebar {
    width: 480px;
    background: linear-gradient(135deg, var(--primary) 0%, #6366F1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.login-sidebar::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}
.login-sidebar::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -20%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
}
.login-sidebar-content {
    position: relative;
    z-index: 1;
    max-width: 360px;
}
.login-sidebar-logo {
    display: inline-block;
    margin-bottom: 2.5rem;
}
.login-sidebar-logo img {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    object-fit: cover;
}
.brand-icon-lg {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255,255,255,0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 0.05em;
    backdrop-filter: blur(10px);
}
.login-sidebar-title {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.75rem;
}
.login-sidebar-desc {
    color: rgba(255,255,255,0.75);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}
.login-sidebar-features {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 3rem;
}
.login-sidebar-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.lxf-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
}
.login-sidebar-feature h6 {
    color: white;
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 14px;
}
.login-sidebar-feature small {
    color: rgba(255,255,255,0.6);
    font-size: 12px;
}
.login-sidebar-footer {
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.login-sidebar-footer p {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    margin: 0;
}
.login-sidebar-footer a {
    color: white;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.login-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--gray-50);
    min-height: 100vh;
}
.login-form-container {
    width: 100%;
    max-width: 440px;
}
.login-back-link {
    color: var(--gray-600);
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
}
.login-back-link:hover {
    color: var(--primary);
}
.login-form-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}
.login-form-subtitle {
    color: var(--gray-500);
    margin-bottom: 2rem;
}
.forgot-link {
    color: var(--primary);
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
}
.forgot-link:hover {
    text-decoration: underline;
}
.demo-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: 50px;
    background: white;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.demo-btn:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
    transform: translateY(-1px);
}

@media (max-width: 991.98px) {
    .login-sidebar { display: none; }
    .login-main { padding: 2rem 1.5rem; }
    .login-form-container { max-width: 400px; }
}
@media (max-width: 575.98px) {
    .login-main { padding: 1.5rem 1rem; }
    .login-form-title { font-size: 1.5rem; }
}
