:root {
    --brand-deep: #0b1a2b;
    --brand-mid: #123958;
    --brand-night: #1a6b7b;
    --brand-muted: #7a889e;
    --brand-card: #112a3f;
    --brand-accent: #f6b23c;
    --brand-accent-strong: #ff8a3c;
    --brand-accent-soft: #fff1d5;
    --surface: #f6f7fb;
    --card: #ffffff;
    --text: #0b1220;
    --muted: #5e6b80;
    --bg: #f4f2ee;
    --soft: #fdf5ec;
    --border: rgba(11, 18, 32, 0.12);
    --shadow: 0 30px 80px rgba(7, 12, 26, 0.12);
    --glass: rgba(255, 255, 255, 0.18);
    --danger: #d65555;
    --navy: var(--brand-deep);
    --navy-2: var(--brand-mid);
    --orange: var(--brand-accent);
    --orange-2: #ffd38c;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #e3f2ff 0%, #fff6ec 50%, #ffe4d6 100%);
    min-height: 100vh;
    color: var(--text);
}

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 260px;
   background: linear-gradient(135deg, #0b1739 0%, #182447 55%);
    padding: 24px 0;
    transition: all 0.3s ease;
    z-index: 100;
    border-right: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 15px 40px rgba(0,0,0,0.45);
    display: flex;
    flex-direction: column;
}

.sidebar-brand {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 0 24px 25px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 20px;
    color: #fff;
}

.brand-logo {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.08em;
    border: 1px solid rgba(255,255,255,0.15);
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-mark {
    font-size: 16px;
    letter-spacing: 0.2em;
}

.brand-beacon {
    display: flex;
    gap: 6px;
    padding-top: 16px;
}

.brand-beacon .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.25);
    animation: pulse 2.4s infinite ease-in-out;
}

.brand-beacon .dot-2 { animation-delay: 0.2s; }
.brand-beacon .dot-3 { animation-delay: 0.4s; }

@keyframes pulse {
    from { opacity: 0.65; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.35); }
    to { opacity: 0.65; transform: scale(1); }
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 0 16px 20px;
}

.nav-label {
    color: rgba(255,255,255,0.5);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 16px 8px 8px;
}

.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-menu li + li {
    margin-top: 4px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    color: rgba(255,255,255,0.78);
    text-decoration: none;
    border-radius: 14px;
    transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-menu a i {
    width: 18px;
    text-align: center;
    font-size: 16px;
}

.sidebar-menu a:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}

.sidebar-menu a.active {
    background: linear-gradient(130deg, var(--brand-accent) 0%, var(--brand-accent-strong) 100%);
    color: #fff;
    box-shadow: 0 10px 20px rgba(255,143,63,0.35);
}

.sidebar-footer {
    padding: 20px 24px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    text-align: center;
}

.sidebar-logout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 999px;
    background: rgba(255,183,3,0.18);
    color: var(--brand-accent-soft);
    text-decoration: none;
    font-weight: 600;
}

.sidebar-footer small {
    display: block;
    margin-top: 12px;
    color: rgba(255,255,255,0.5);
    font-size: 12px;
}

.sidebar-footer a { color: var(--brand-accent); }

.main-content {
    background-color: var(--surface);
    margin-left: 260px;
    padding: 30px;
    min-height: 100vh;
}

.app-topbar {
    background: linear-gradient(135deg, #0b1739 0%, #182447 55%, #40204b 100%);
    margin-left: 260px;
    padding: 30px 40px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

.app-topbar h2 {
    color: #fff;
    margin: 4px 0 0;
}

.topbar-eyebrow {
    margin: 0;
    color: rgba(255,255,255,0.65);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 12px;
}

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

.topbar-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 10px 18px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.18);
    text-decoration: none;
    font-size: 14px;
}

.topbar-pill.secondary {
    background: rgba(255,255,255,0.08);
}

.topbar-pill.danger {
    background: rgba(208,95,126,0.15);
    border-color: rgba(208,95,126,0.4);
}

.modern-dashboard {
    padding: 40px 40px 60px;
    background: var(--surface);
}

.dashboard-hero {
    background: linear-gradient(135deg, #0b1739 0%, #182447 55%, #40204b 100%);
    color: #fff;
    border-radius: 24px;
    padding: 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 35px;
    box-shadow: 0 20px 40px rgba(18, 64, 43, 0.25);
}

.dashboard-hero h1 {
    font-size: 32px;
    margin: 10px 0;
}

.dashboard-hero p {
    color: rgba(255,255,255,0.85);
    max-width: 460px;
}

.eyebrow-text {
    font-size: 13px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
}

.hero-tags {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.hero-tags span {
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.35);
    padding: 6px 16px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-persona {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    background: rgba(255,255,255,0.06);
    border-radius: 18px;
    backdrop-filter: blur(6px);
}

.hero-avatar {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 600;
    text-transform: uppercase;
    overflow: hidden;
}

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

.hero-persona-info h4 {
    margin: 0;
    color: #fff;
}

.insight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
}

.insight-card {
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: 0 12px 25px rgba(15,35,52,0.08);
    border: 1px solid rgba(22, 84, 70, 0.05);
}

.insight-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
}

.gradient-blue { background: linear-gradient(135deg, #8f94fb 0%, #4e54c8 100%); }
.gradient-green { background: linear-gradient(135deg, #43cea2 0%, #185a9d 100%); }
.gradient-orange { background: linear-gradient(135deg, #ff9a9e 0%, #f6416c 100%); }
.gradient-purple { background: linear-gradient(135deg, #c471ed 0%, #f7797d 100%); }

.insight-body p {
    color: #7a8699;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.insight-body h3 {
    margin: 0;
    color: #1f2d3d;
    font-size: 34px;
}

.insight-body span {
    color: #9faaba;
    font-size: 13px;
}

.dashboard-panels {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.dashboard-panels.secondary {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.panel-card {
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 18px 35px rgba(14, 49, 32, 0.08);
    border: 1px solid rgba(16, 53, 36, 0.05);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.panel-header h3 {
    margin: 4px 0 0;
    color: #1b2333;
}

.panel-link {
    text-decoration: none;
    font-size: 13px;
    color: #1f7152;
}

.activity-feed {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-row {
    display: flex;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid #eef2f6;
}

.activity-row.empty {
    background: #f6faf3;
    border-style: dashed;
}

.activity-row p {
    margin: 0;
    color: #1f2b39;
    font-weight: 600;
}

.activity-row span {
    font-size: 13px;
    color: #8a93a5;
}

.quick-actions-panel {
    background: linear-gradient(180deg, #ffffff 0%, #f6fbf9 100%);
}

.quick-action-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.quick-tile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 16px;
    background: #fff;
    text-decoration: none;
    color: #1f2933;
    border: 1px solid rgba(25, 82, 61, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-tile:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(19, 50, 32, 0.12);
}

.quick-tile i {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(31, 133, 98, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1f7152;
}

.panel-footer {
    margin-top: 24px;
    text-align: center;
}

.logout-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 999px;
    background: #725407;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s ease;
}

.logout-pill:hover { opacity: 0.9; }

.performance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
}

.mini-stat {
    padding: 16px;
    border-radius: 14px;
    background: #f8fafc;
}

.mini-stat h4 {
    margin: 0;
    font-size: 26px;
    color: #1d2837;
}

.mini-stat span {
    font-size: 13px;
    color: #7c889c;
}

.system-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.system-list li {
    display: flex;
    flex-direction: column;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid #eef2f7;
}

.system-list span {
    font-weight: 600;
    color: #1c2233;
}

.system-list small {
    color: #838ca4;
    margin-top: 4px;
}

.text-success { color: #2ecc71; }
.text-info { color: #3498db; }
.text-warning { color: #f39c12; }

.top-bar {
    background: #fff;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.welcome-text h2 {
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 5px;
}

.welcome-text p {
    color: #7f8c8d;
    font-size: 14px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, green 0%, rgb(133, 206, 133) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
}

.user-details h4 {
    color: #2c3e50;
    font-size: 16px;
}

.user-details p {
    color: #7f8c8d;
    font-size: 13px;
}

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

.stat-card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
}

.stat-icon.blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-icon.green {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.stat-icon.orange {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.stat-icon.purple {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.stat-details h3 {
    color: #2c3e50;
    font-size: 32px;
    font-weight: 700;
}

.stat-details p {
    color: #7f8c8d;
    font-size: 14px;
    margin-top: 5px;
}

.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

.content-card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.content-card h3 {
    color: #2c3e50;
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #ecf0f1;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #ecf0f1;
}

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

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ecf0f1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #667eea;
}

.activity-details p {
    color: #2c3e50;
    font-size: 14px;
    margin-bottom: 3px;
}

.activity-details span {
    color: #7f8c8d;
    font-size: 12px;
}

.quick-action {
    display: block;
    background: linear-gradient(135deg, green 0%, rgb(133, 206, 133) 100%);
    color: #fff;
    padding: 15px;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.quick-action:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.logout-btn {
    background: #e74c3c;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: #c0392b;
}

@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
        padding: 24px 18px;
    }
    .sidebar { transform: translateX(-260px); }
    .main-content,
    .modern-dashboard { margin-left: 0; padding: 20px; }
    .dashboard-hero { flex-direction: column; align-items: flex-start; }
    .dashboard-panels { grid-template-columns: 1fr; }
}

/* Mobile sidebar open state and overlay */

/* Mobile sidebar open state and overlay */
.sidebar.open {
    transform: translateX(0) !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    z-index: 110;
}

.mobile-sidebar-toggle {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 130;
    background: transparent;
    color: #0a0a0a;
    border: 2px solid rgba(255,255,255,0.12);
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    backdrop-filter: blur(4px);
}

.mobile-sidebar-toggle i { font-size: 18px; }

.sidebar-overlay {
    visibility: hidden;
    opacity: 0;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 100;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

body.no-scroll { overflow: hidden; }

@media (max-width: 768px) {
    .mobile-sidebar-toggle { display: flex; }
}

/* teachears.php */


.main-content-teachers,
.main-content-students {
    margin-left: 260px;
    padding: 40px;
    background: var(--surface);
    min-height: 100vh;
}

.teachers-module .eyebrow-text,
.students-module .eyebrow-text {
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
}

.teachers-hero,
.students-hero {
    background: var(--card);
    border-radius: 24px;
    padding: 36px;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    box-shadow: 0 25px 50px rgba(10, 17, 37, 0.08);
    margin-bottom: 30px;
    flex-wrap: wrap;
    border: 1px solid rgba(12, 26, 61, 0.05);
}

.hero-content h1 {
    margin: 10px 0;
    font-size: 32px;
    color: #111827;
}

.hero-content p {
    color: #64748b;
    max-width: 520px;
}

.hero-actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-primary {
    background: linear-gradient(135deg, #ffb703, #443204);
    border: none;
    color: #fff;
    padding: 12px 22px;
    border-radius: 14px;
    font-weight: 600;
    box-shadow: 0 10px 30px #dacca9;
}

.hero-outline {
    border: 1px solid rgba(255,255,255,0);
    color: #111a3a;
    padding: 12px 22px;
    border-radius: 14px;
    font-weight: 600;
    background: rgba(120,127,173,0.08);
}

.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    flex: 1;
}

.hero-stat {
    background: linear-gradient(180deg, #fdf3f7 0%, #ffffff 100%);
    border-radius: 18px;
    padding: 18px;
    border: 1px solid rgba(15, 35, 52, 0.05);
    box-shadow: 0 10px 20px rgba(15, 35, 52, 0.08);
}

.hero-stat p {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin-bottom: 6px;
}

.hero-stat h3 {
    margin: 0;
    font-size: 30px;
    color: #0f172a;
}

.hero-stat span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
}

.teachers-alert,
.students-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    border-radius: 14px;
    margin-bottom: 20px;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(16,185,129,0.12);
}

.teachers-alert.success,
.students-alert.success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid rgba(4,120,87,0.2);
}

.teachers-controls,
.students-controls {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.students-filters {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
}

.filter-selects {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.subject-chip-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.subject-chip {
    border: 1px solid rgba(120,127,173,0.4);
    border-radius: 999px;
    padding: 8px 18px;
    background: rgba(255,255,255,0.8);
    color: #111a3a;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.subject-chip.active {
    background: linear-gradient(135deg, #ff758c, #ff7eb3);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 20px rgba(255,126,179,0.25);
}

.control-search {
    flex: 1;
    max-width: 480px;
    position: relative;
}

.control-search input {
    width: 100%;
    border: 1px solid #dbe2f1;
    border-radius: 16px;
    padding: 14px 16px 14px 48px;
    font-size: 15px;
    background: #fff;
}

.control-search i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

.filter-select {
    border: 1px solid #dbe2f1;
    border-radius: 14px;
    padding: 12px 40px 12px 16px;
    background: #fff;
    font-size: 14px;
    min-width: 160px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.control-meta {
    display: flex;
    gap: 16px;
    align-items: center;
    font-size: 14px;
    color: #64748b;
}

.clear-filter {
    color: #d64545;
    text-decoration: none;
    font-weight: 600;
}

.teachers-table-card {
    background: var(--card);
    border-radius: 24px;
    padding: 28px;
    box-shadow: 0 18px 40px rgba(15, 35, 52, 0.07);
    overflow: hidden;
}

.table-header.modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 15px;
}

.table-header.modern h3 {
    margin: 4px 0 0;
    color: #0f172a;
}

.table-meta {
    font-size: 13px;
    color: #94a3b8;
}

.teachers-table-wrapper {
    width: 100%;
}

.teachers-table {
    margin-bottom: 0;
    min-width: 100%;
}

.teachers-table thead th {
    background: #f7f8fd;
    border-bottom: 1px solid #e3e8ff;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
}

.teacher-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.teacher-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e2e8f0;
}

.teacher-avatar.large {
    width: 90px;
    height: 90px;
    border-radius: 22px;
    background: #f1f5f9;
}

.teacher-name {
    font-weight: 600;
    color: #0f172a;
}

.teacher-id {
    font-size: 12px;
    color: #94a3b8;
}

.badge {
    padding: 6px 12px;
    border-radius: 999px;
}

.action-buttons {
    display: flex;
    gap: 6px;
}

.btn-sm {
    padding: 6px 10px;
    font-size: 12px;
}

.pagination {
    margin-top: 24px;
}

.pagination .page-link {
    border-radius: 999px !important;
    margin: 0 4px;
}

.empty-state {
    text-align: center;
    padding: 70px 20px;
}

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

.empty-state h4 {
    color: #0f172a;
    margin-bottom: 8px;
}

.empty-state-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 14px;
    background: linear-gradient(135deg, #ff758c, #ff7eb3);
    color: #fff;
    padding: 12px 26px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 12px 24px rgba(255,126,179,0.3);
}

.teachers-table-card {
    overflow: hidden;
}

.teachers-table-wrapper {
    width: 100%;
}

.teachers-table-wrapper::-webkit-scrollbar {
    height: 6px;
}

.teachers-table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
}

.teachers-table-wrapper::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
}

.teachers-table {
    min-width: 100%;
}

.teachers-table-card .btn {
    border-radius: 8px;
}

.settings-page {
    margin-left: 260px;
    padding: 40px;
    background: var(--surface);
    min-height: 100vh;
}

.settings-hero {
    background: var(--card);
    border-radius: 26px;
    padding: 32px 36px;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    box-shadow: 0 25px 50px rgba(12, 23, 57, 0.08);
    border: 1px solid rgba(15, 35, 52, 0.05);
}

.settings-hero .hero-text h1 {
    margin: 10px 0;
    font-size: 34px;
    color: #0f172a;
}

.settings-hero .hero-text p {
    color: #64748b;
    max-width: 460px;
}

.settings-hero .hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.settings-hero .hero-actions a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    border-radius: 14px;
    text-decoration: none;
    background: rgba(255,255,255,0.6);
    border: 1px solid rgba(15, 35, 52, 0.08);
    color: #0f172a;
    font-weight: 600;
}

.settings-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin: 30px 0;
}

.settings-stat {
    background: linear-gradient(135deg, rgba(240,122,151,0.12), rgba(255,255,255,0.9));
    border-radius: 20px;
    padding: 18px;
    border: 1px solid rgba(240,122,151,0.15);
    box-shadow: 0 12px 22px rgba(240,122,151,0.15);
}

.settings-stat h3 {
    margin: 4px 0 0;
    font-size: 32px;
    color: #0f172a;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.settings-card {
    background: var(--card);
    border-radius: 24px;
    padding: 26px;
    box-shadow: 0 20px 40px rgba(12, 23, 57, 0.08);
    border: 1px solid rgba(15, 35, 52, 0.05);
}

.settings-card.wide {
    grid-column: span 2;
}

.settings-card header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.settings-card header h3 {
    margin: 4px 0 0;
    color: #0f172a;
}

.settings-card form .form-label {
    font-weight: 600;
    color: #0f172a;
}

.settings-card .btn {
    border-radius: 12px;
    padding: 10px 18px;
}

.pin-assign-card {
    border: 1px dashed rgba(15, 35, 52, 0.15);
    border-radius: 18px;
    background: #fafbff;
}

.pin-assign-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.pin-assign-actions {
    grid-column: span 2;
}

.pin-assign-actions .btn {
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

@media (max-width: 1024px) {
    .teachers-hero,
    .students-hero {
        flex-direction: column;
    }

    .hero-stats-grid {
        width: 100%;
    }

    .settings-page {
        margin-left: 0;
        padding: 30px 20px;
    }

    .settings-card.wide {
        grid-column: span 1;
    }

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

    .settings-grid {
        grid-template-columns: 1fr;
    }

    .pin-assign-grid {
        grid-template-columns: 1fr;
    }

    .pin-assign-actions {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .app-topbar {
        margin-left: 0;
        padding: 20px;
    }

    .main-content-teachers,
    .main-content-students {
        margin-left: 0;
        padding: 20px 15px;
    }

    .teachers-hero,
    .students-hero {
        padding: 24px;
    }

    .teachers-table-card {
        padding: 22px;
    }

    .teachers-controls,
    .students-controls {
        flex-direction: column;
        align-items: flex-start;
    }

    .control-search {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .teachers-table {
        display: block;
    }

    .teachers-table thead {
        display: none;
    }

    .teachers-table tbody {
        display: block;
    }

    .teachers-table tbody tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #ecf0f1;
        border-radius: 12px;
        padding: 15px;
        background: #fff;
        box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    }

    .teachers-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        text-align: right;
        border-top: none;
        padding: 8px 0;
    }

    .teachers-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #0f172a;
        text-transform: capitalize;
        margin-right: 15px;
        text-align: left;
    }

    .teacher-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .action-buttons {
        flex-wrap: wrap;
        justify-content: flex-end;
        width: 100%;
    }

    .action-buttons .btn {
        flex: 1 1 calc(50% - 8px);
        min-width: 120px;
    }
}

.modal .form-label {
    font-weight: 600;
    color: #2c3e50;
}

.modal .modal-body p {
    margin-bottom: 0.5rem;
}

/* add students
 */


 .wizard-container {
    max-width: 900px;
    margin: 0 auto;
}

.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.wizard-header {
    background: linear-gradient(135deg, green 0%, rgb(133, 206, 133) 100%);
    color: white;
    padding: 30px;
    border-radius: 15px 15px 0 0;
}

.wizard-steps {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    padding: 0 20px;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step::before {
    content: '';
    position: absolute;
    top: 25px;
    left: -50%;
    width: 100%;
    height: 3px;
    background: #e0e0e0;
    z-index: -1;
}

.step:first-child::before {
    display: none;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 10px;
    transition: all 0.3s;
}

.step.active .step-number {
    background: linear-gradient(135deg, green 0%, rgb(133, 206, 133) 100%);
    color: white;
    transform: scale(1.1);
}

.step.completed .step-number {
    background: #28a745;
    color: white;
}

.step.completed::before {
    background: #28a745;
}

.step-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.step.active .step-label {
    color: yellowgreen;
    font-weight: 600;
}

.wizard-content {
    padding: 40px;
}

.wizard-step-content {
    display: none;
}

.wizard-step-content.active {
    display: block;
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    padding: 12px;
    transition: all 0.3s;
}

.form-control:focus, .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

.photo-upload-area {
    border: 3px dashed #e0e0e0;
    border-radius: 10px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.photo-upload-area:hover {
    border-color: #667eea;
    background: #f8f9fa;
}

.photo-upload-area i {
    font-size: 50px;
    color: #667eea;
    margin-bottom: 15px;
}

.preview-image {
    max-width: 200px;
    max-height: 200px;
    margin-top: 20px;
    border-radius: 10px;
    display: none;
}

.wizard-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.btn {
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, green 0%, rgb(133, 206, 133) 100%);
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.summary-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
}

.summary-label {
    font-weight: 600;
    color: #666;
    font-size: 14px;
}

.summary-value {
    color: #333;
    font-size: 16px;
    margin-top: 5px;
}
