/* NetzWerk Academy LMS UI — Bootstrap 5.3 + custom CSS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #17242b;
  --navy-deep: #101a20;
  --teal: #168d8b;
  --teal-dark: #117674;
  --gold: #c9952d;
  --gold-dark: #a97719;
  --ink: #202c3b;
  --muted: #7c8999;
  --line: #e8edf2;
  --page: #f5f7fa;
}
* { box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; color: var(--ink); margin: 0; }
a { text-decoration: none; }


   LMS GLOBAL TYPOGRAPHY
   Premium readable font sizing
===================================== */

html {
    font-size: 16px;
}

body {
    /* font-family: Arial, Helvetica, sans-serif; */
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: #263445;
}

/* Main headings */
h1 {
    font-size: 30px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
}

h2 {
    font-size: 24px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
}

h3 {
    font-size: 20px !important;
    line-height: 1.4 !important;
    font-weight: 700 !important;
}

h4 {
    font-size: 18px !important;
    font-weight: 600 !important;
}

h5 {
    font-size: 16px !important;
    font-weight: 600 !important;
}

/* Paragraph and normal text */
p,
span,
label,
li {
    font-size: 15px;
    line-height: 1.6;
}

/* Sidebar navigation */
.sidebar-menu a,
.cbp-spmenu a {
    font-size: 15px !important;
}

/* Tables */
table {
    font-size: 14px !important;
}

table th {
    font-size: 13px !important;
    font-weight: 700 !important;
}

table td {
    font-size: 14px !important;
}

/* Forms */
input,
select,
textarea,
.form-control {
    font-size: 15px !important;
    min-height: 42px;
}

.login-form-panel #remember{min-height: 17px !important;}

button,
.btn {
    font-size: 14px !important;
    font-weight: 600 !important;
}

/* Small text */
small,
small *,
.caption,
.text-muted {
    font-size: 13px !important;
}

/* Course content */
.course-name,
.course-description {
    font-size: 15px !important;
}

/* Breadcrumb */
.breadcrumb,
.breadcrumb a {
    font-size: 14px !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
    body {
        font-size: 14px !important;
    }

    h1 {
        font-size: 25px !important;
    }

    h2 {
        font-size: 21px !important;
    }

    h3 {
        font-size: 18px !important;
    }

    p,
    span,
    li {
        font-size: 14px;
    }
}


/* Brand mark */
.brand-mark { width: 116px; height: 116px; border: 2px solid #d9b14e; border-radius: 50%; display:flex; align-items:center; justify-content:center; position:relative; margin: 0 auto; color:#bd8c23; }
.brand-mark:before, .brand-mark:after { content:""; position:absolute; width:13px; height:80px; border:2px solid #d5ad4b; top:15px; border-radius:50%; }
.brand-mark:before { left:-8px; transform:rotate(-22deg); border-right:0; }
.brand-mark:after { right:-8px; transform:rotate(22deg); border-left:0; }
.brand-mark span { font-family: Georgia,serif; font-size:70px; line-height:1; color:#b98a20; text-shadow:1px 1px #f8e6a3; }
.brand-ornament { color:#c89a36; font-size:32px; letter-spacing:4px; margin-top:13px; }
.brand-name { color:#9f741c; font-family:Georgia,serif; font-size:clamp(28px,3vw,39px); letter-spacing:5px; margin:0; font-weight:600; }
.brand-subtitle { font-family:Georgia,serif; color:#c8a44b; letter-spacing:9px; font-size:22px; margin:0 0 12px 8px; }
.brand-rule { width:75%; height:1px; background:linear-gradient(90deg,transparent,#bc8c26,transparent); margin:18px auto; }
.brand-tagline { color:#5b6878; font-size:14px; margin-bottom:8px; }
.brand-tagline span { color:var(--gold); padding:0 8px; }
.brand-caption { color:#8792a0; font-size:12px; }

/* Login page */
.login-page { min-height:100vh; display:grid; place-items:center; padding:34px; background:radial-gradient(circle at 12% 15%,#f5edda 0,transparent 25%),radial-gradient(circle at 90% 90%,#d9efec 0,transparent 26%),#f5f7f9; }
.login-shell { width:min(1040px,100%); min-height:590px; display:grid; grid-template-columns:1fr 1fr; background:#fff; border:1px solid rgba(255,255,255,.8); border-radius:28px; overflow:hidden; box-shadow:0 24px 70px rgba(24,39,50,.13); }
.login-brand-panel { background:linear-gradient(145deg,#fffdf7,#f9f4e9); display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:48px 30px; position:relative; overflow:hidden; }
.login-brand-panel:before { content:""; position:absolute; width:320px; height:320px; border:1px solid rgba(196,151,47,.12); border-radius:50%; top:-180px; left:-140px; }
.login-brand-panel:after { content:""; position:absolute; width:260px; height:260px; border:1px solid rgba(196,151,47,.12); border-radius:50%; bottom:-170px; right:-120px; }
.login-form-panel { display:flex; align-items:center; justify-content:center; padding:55px clamp(28px,5vw,70px); }
.login-form-wrap { width:100%; max-width:390px; }
.login-heading-icon { width:52px; height:52px; border-radius:16px; display:grid; place-items:center; color:var(--teal); background:#e8f6f4; font-size:22px; margin-bottom:22px; }
.login-form-wrap h2 { font-weight:800; letter-spacing:-1.2px; font-size:34px; margin-bottom:7px; }
.login-form-wrap h2 span { color:var(--gold-dark); }
.login-form-wrap .text-muted { font-size:13px; }
.form-label { color:#344154; font-size:12px; font-weight:700; margin-bottom:8px; }
.login-input .input-group-text, .login-input .form-control { border-color:#e2e8ee; background:#fbfcfd; font-size:13px; }
.login-input .input-group-text { color:#7c8999; padding:0 15px; }
.login-input .form-control { min-height:51px; box-shadow:none; }
.login-input .form-control:focus { border-color:#8bc9c4; background:#fff; }
.login-input .form-control:focus + .input-group-text { border-color:#8bc9c4; }
.login-input .input-group-text:first-child { border-radius:12px 0 0 12px; }
.login-input .form-control { border-radius:0 12px 12px 0; }
.login-input .password-toggle { border-radius:0 12px 12px 0; cursor:pointer; }
.login-input:has(.password-toggle) .form-control { border-radius:0; }
.form-check-input:checked { background-color:var(--teal); border-color:var(--teal); }
.form-check-label { color:#657184; font-size:12px; }
.text-link { color:var(--teal-dark); font-size:12px; font-weight:700; }
.text-link:hover { color:var(--gold-dark); }
.btn-brand { background:linear-gradient(100deg,#c99a35,#b78220); color:#fff; border:0; border-radius:12px; font-weight:700; font-size:14px; min-height:52px; box-shadow:0 9px 20px rgba(185,132,32,.18); }
.btn-brand:hover { background:linear-gradient(100deg,#b78220,#9d6d15); color:#fff; transform:translateY(-1px); }
.login-security { text-align:center; margin-top:28px; color:#8b96a4; font-size:10px; }
.login-copyright { text-align:center; margin:26px 0 0; font-size:10px; color:#9aa3af; }
.login-mobile-brand { display:none; }

/* Dashboard */
.dashboard-page { background:var(--page); min-height:100vh; }
.admin-layout { min-height:100vh; }
.sidebar { width:248px; background:linear-gradient(180deg,var(--navy),var(--navy-deep)); color:#d1d8de; position:fixed; inset:0 auto 0 0; z-index:1040; display:flex; flex-direction:column; transition:transform .25s ease; box-shadow:6px 0 24px rgba(18,31,39,.06); }
.sidebar-brand { min-height:116px; display:flex; flex-direction:column; align-items:center; justify-content:center; border-bottom:1px solid rgba(255,255,255,.08); color:#d8b45d; gap:5px; }
.sidebar-mark { width:42px; height:42px; border-width:1px; }
.sidebar-mark:before,.sidebar-mark:after { height:30px; width:5px; top:5px; border-width:1px; }
.sidebar-mark span { font-size:27px; }
.sidebar-brand-text { display:flex; flex-direction:column; align-items:center; line-height:1.05; }
.sidebar-brand-text strong { font-family:Georgia,serif; letter-spacing:1.5px; font-size:12px; }
.sidebar-brand-text small { font-family:Georgia,serif; letter-spacing:3px; font-size:9px; margin-top:4px; }
.sidebar-label { color:#71818b; font-size:9px; font-weight:800; letter-spacing:1.7px; padding:24px 22px 10px; }
.sidebar-nav { padding:0 12px; gap:4px; }
.sidebar-nav .nav-link { display:flex; align-items:center; gap:13px; color:#b8c3ca; font-size:12px; font-weight:500; border-radius:9px; padding:12px 13px; min-height:42px; transition:all .18s ease; }
.sidebar-nav .nav-link i:first-child { width:18px; text-align:center; font-size:14px; }
.sidebar-nav .nav-link:hover { color:#fff; background:rgba(255,255,255,.07); }
.sidebar-nav .nav-link.active { color:#fff; background:linear-gradient(100deg,#c99a35,#a9771d); box-shadow:0 5px 15px rgba(171,121,27,.18); }
.nav-arrow { margin-left:auto; font-size:10px; }
.menu-count { margin-left:auto; background:#e6535b; color:white; border-radius:20px; min-width:19px; height:19px; display:grid; place-items:center; font-size:10px; font-weight:700; }
.menu-count.gold { background:#d5a32e; color:#1c2730; }
.sidebar-bottom { margin-top:auto; padding:20px; font-size:10px; color:#8b9aa4; border-top:1px solid rgba(255,255,255,.07); }
.sidebar-bottom a { display:block; margin:8px 0 0 26px; color:#d8b45d; }
.main-area { margin-left:248px; min-width:0; }
.topbar { height:76px; background:#fff; border-bottom:1px solid #e9eef2; display:flex; align-items:center; gap:22px; padding:0 32px; position:sticky; top:0; z-index:1020; }
.sidebar-toggle { display:none; border:0; color:var(--ink); font-size:19px; padding:6px 8px; }
.topbar-search { display:flex; align-items:center; gap:10px; width:min(480px,50%); border:1px solid #e7ecf1; border-radius:10px; padding:0 12px; background:#fbfcfd; color:#8894a1; }
.topbar-search .form-control { border:0; box-shadow:none; background:transparent; font-size:12px; min-height:39px; }
.topbar-search kbd { font-size:9px; color:#8b96a4; background:#f0f3f6; border:1px solid #e2e7ec; border-radius:4px; white-space:nowrap; }
.topbar-actions { margin-left:auto; display:flex; align-items:center; gap:22px; }
.icon-button { border:0; background:transparent; color:#667386; font-size:18px; position:relative; }
.notification-dot { position:absolute; width:7px; height:7px; border-radius:50%; background:#e6545c; top:0; right:0; border:1px solid white; }
.admin-profile { display:flex; align-items:center; gap:10px; }
.avatar { width:37px; height:37px; border-radius:50%; display:grid; place-items:center; color:#fff; background:linear-gradient(135deg,#1c9997,#176b78); font-size:11px; font-weight:800; box-shadow:0 0 0 3px #eaf5f4; }
.profile-text { display:flex; flex-direction:column; line-height:1.4; }
.profile-text strong { font-size:12px; color:#293545; }
.profile-text small { font-size:10px; color:#929dab; }
.profile-chevron { color:#8793a1; font-size:10px; margin-left:6px; }
.dashboard-content { padding:29px 30px 20px; max-width:1800px; margin:0 auto; }
.welcome-row { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:24px; }
.eyebrow { color:var(--teal); font-size:9px; font-weight:800; letter-spacing:2px; margin-bottom:8px; }
.welcome-row h1 { font-size:25px; font-weight:800; letter-spacing:-.8px; margin:0 0 7px; color:#202b3b; }
.wave { font-size:22px; }
.welcome-subtitle { font-size:12px; color:#8b96a5; margin:0; }
.date-card { display:flex; align-items:center; gap:13px; padding:13px 16px; background:#fff; border:1px solid #e8edf2; border-radius:12px; box-shadow:0 4px 14px rgba(24,39,50,.025); }
.date-card > i { font-size:19px; color:var(--teal); }
.date-card div { display:flex; flex-direction:column; gap:4px; }
.date-card strong { font-size:10px; color:#344154; }
.date-card small { font-size:10px; color:#99a2ae; }
.stats-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin-bottom:22px; }
.stat-card { min-width:0; position:relative; overflow:hidden; display:flex; align-items:center; gap:14px; background:#fff; border:1px solid #e8edf2; border-radius:15px; padding:21px 18px; box-shadow:0 5px 18px rgba(31,49,63,.025); }
.stat-icon { width:48px; height:48px; flex:0 0 48px; border-radius:14px; display:grid; place-items:center; font-size:18px; }
.stat-info { min-width:0; display:flex; flex-direction:column; align-items:flex-start; gap:5px; position:relative; z-index:1; }
.stat-info > span { color:#7e8997; font-size:10px; white-space:nowrap; }
.stat-info > strong { font-size:25px; line-height:1.1; color:#202b3b; letter-spacing:-.8px; }
.stat-info small { color:#168d70; font-size:10px; font-weight:700; white-space:nowrap; }
.stat-info small em { color:#a0a8b3; font-style:normal; font-weight:400; margin-left:3px; }
.stat-info small.negative { color:#d85a62; }
.stat-decoration { display:none; }
.stat-teal { border-top:3px solid #27b5ae; } .stat-teal .stat-icon { background:#e0f8f5; color:#169b95; }
.stat-blue { border-top:3px solid #579eea; } .stat-blue .stat-icon { background:#e5f1ff; color:#438cdd; }
.stat-gold { border-top:3px solid #e2b343; } .stat-gold .stat-icon { background:#fff3d3; color:#bd8a21; }
.stat-rose { border-top:3px solid #e67c85; } .stat-rose .stat-icon { background:#ffeaec; color:#dc6974; }
.content-grid { display:grid; grid-template-columns:minmax(0,1.8fr) minmax(280px,.85fr); gap:20px; align-items:start; }
.panel { background:#fff; border:1px solid #e7edf2; border-radius:15px; box-shadow:0 5px 18px rgba(31,49,63,.025); min-width:0; }
.course-panel { overflow:hidden; }
.panel-header { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:22px 22px 18px; }
.panel-header h2 { font-size:14px; font-weight:800; color:#253143; margin:0 0 6px; }
.panel-header p { font-size:10px; color:#9aa3af; margin:0; }
.course-filter { min-width:120px; width:auto; max-width:150px; border-color:#e1e7ed; color:#6b7788; font-size:10px; border-radius:8px; }
.btn-outline-brand { color:var(--teal-dark); border-color:#c5e2df; font-size:10px; border-radius:8px; }
.btn-outline-brand:hover { background:var(--teal); color:#fff; }
.course-table { font-size:10px; white-space:nowrap; }
.course-table thead th { background:#f8fafb; color:#7e8998; font-size:9px; font-weight:700; text-transform:uppercase; letter-spacing:.3px; border-top:1px solid #edf1f4; border-bottom:1px solid #edf1f4; padding:13px 15px; }
.course-table tbody td { color:#778394; padding:12px 15px; border-color:#eff2f5; }
.course-table tbody tr:hover { background:#fbfdfd; }
.course-table tbody td:first-child { color:#a1aab5; font-size:9px; }
.course-table tbody td:nth-child(3),.course-table tbody td:nth-child(4),.course-table tbody td:nth-child(5) { font-variant-numeric:tabular-nums; }
.course-name { display:flex; align-items:center; gap:10px; }
.course-name strong { color:#3d495a; font-weight:600; font-size:10px; }
.course-symbol { width:30px; height:30px; display:grid; place-items:center; border-radius:9px; font-size:13px; }
.course-symbol.purple { background:#f0eaff; color:#8a69d6; }.course-symbol.blue { background:#e7f2ff;color:#4a91dd; }.course-symbol.teal { background:#e0f8f4;color:#17978e; }.course-symbol.orange { background:#fff0df;color:#d98c32; }.course-symbol.pink { background:#ffeaf0;color:#d76d91; }.course-symbol.green { background:#e4f8eb;color:#36a66d; }.course-symbol.gold { background:#fff5d9;color:#c18c20; }
.status-badge { display:inline-flex; padding:5px 10px; min-width:58px; justify-content:center; border-radius:6px; font-size:9px; font-weight:700; }
.status-active { color:#16875d; background:#e0f7eb; }.status-upcoming { color:#a66c11; background:#fff1d2; }.status-expired { color:#c14c56; background:#ffe7e9; }
.table-more { border:0; background:transparent; color:#7d8997; font-size:20px; line-height:1; }
.panel-footer { border-top:1px solid #edf1f4; padding:14px 20px; display:flex; align-items:center; justify-content:space-between; font-size:10px; color:#9aa3af; }
.panel-footer strong { color:#526071; }
.pagination-mini { display:flex; align-items:center; gap:4px; }
.pagination-mini button { border:1px solid #e7edf2; background:white; color:#7b8796; width:26px; height:26px; border-radius:6px; font-size:10px; }
.pagination-mini button.current { background:var(--teal); color:white; border-color:var(--teal); }
.pagination-mini button:disabled { opacity:.4; }
.right-column { display:grid; gap:20px; }
.panel-header.compact { padding:20px 20px 12px; }
.period-select { width:auto; max-width:125px; border-color:#e5eaf0; font-size:9px; color:#7d8897; border-radius:7px; }
.chart-legend { display:flex; justify-content:flex-end; gap:13px; padding:0 20px; font-size:9px; color:#8994a1; }
.legend-dot { display:inline-block; width:7px; height:7px; border-radius:50%; margin-right:5px; }
.teal-dot { background:#159b9a; }.gold-dot { background:#d29a28; }
.simple-chart { display:flex; padding:15px 18px 20px 10px; gap:9px; height:235px; }
.chart-y-labels { display:flex; flex-direction:column; justify-content:space-between; padding:0 0 24px; color:#a0a9b4; font-size:8px; text-align:right; }
.chart-area { flex:1; position:relative; min-width:0; }
.chart-grid-lines { position:absolute; inset:0 0 24px; display:flex; flex-direction:column; justify-content:space-between; }
.chart-grid-lines i { border-top:1px dashed #e8edf2; }
.chart-area svg { position:absolute; inset:0 0 24px; width:100%; height:calc(100% - 24px); overflow:visible; }
.chart-x-labels { position:absolute; bottom:0; left:0; right:0; display:flex; justify-content:space-between; color:#9aa4b1; font-size:8px; }
.activity-panel .panel-header { padding-bottom:16px; }
.activity-item { display:flex; align-items:flex-start; gap:12px; padding:13px 20px; border-top:1px solid #f0f3f6; }
.activity-icon { width:34px; height:34px; flex:0 0 34px; border-radius:10px; display:grid; place-items:center; font-size:12px; }
.activity-teal { color:#169a91; background:#e0f8f4; }.activity-blue { color:#4c8fd5; background:#e7f1ff; }.activity-gold { color:#b98620; background:#fff3d8; }
.activity-item strong { display:block; color:#435064; font-size:10px; margin:1px 0 4px; }
.activity-item p { color:#8792a0; font-size:10px; margin:0 0 4px; }
.activity-item small { color:#a8b0ba; font-size:9px; }
.dashboard-footer { padding:24px 4px 4px; display:flex; justify-content:space-between; gap:12px; color:#a2abb5; font-size:10px; }
.dashboard-footer span { color:#b2bac3; }

/* Responsive adjustments */
@media (max-width: 1400px) {
  .sidebar { width:225px; }.main-area { margin-left:225px; }
  .dashboard-content { padding:25px 22px 18px; }.topbar { padding:0 22px; }
  .stats-grid { gap:12px; }.stat-card { padding:17px 13px; gap:10px; }.stat-icon { width:42px;height:42px;flex-basis:42px; }
  .stat-info > strong { font-size:22px; }.content-grid { grid-template-columns:minmax(0,1.65fr) minmax(270px,.8fr); gap:14px; }
}
@media (max-width: 1150px) {
  .stats-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .content-grid { grid-template-columns:1fr; }
  .right-column { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .date-card { display:none; }
}
@media (max-width: 991.98px) {
  .sidebar { transform:translateX(-100%); width:255px; }.sidebar.sidebar-open { transform:translateX(0); }
  .main-area { margin-left:0; }.sidebar-toggle { display:inline-block; }
  .topbar { gap:14px; height:68px; padding:0 18px; }.topbar-search { width:min(500px,60%); }
  .dashboard-content { padding:24px 18px; }
  .login-shell { max-width:620px; grid-template-columns:1fr; }
  .login-brand-panel { display:none; }.login-form-panel { padding:45px 38px; }
  .login-mobile-brand { display:flex; align-items:center; justify-content:center; gap:12px; margin-bottom:24px; color:#9f741c; }
  .login-mobile-brand .brand-mark.small { width:48px;height:48px;margin:0; }.login-mobile-brand .brand-mark.small span { font-size:29px; }
  .login-mobile-brand .brand-mark.small:before,.login-mobile-brand .brand-mark.small:after { height:32px; top:6px; width:6px; }
  .login-mobile-brand strong,.login-mobile-brand small { display:block; font-family:Georgia,serif; letter-spacing:1.2px; }.login-mobile-brand strong { font-size:15px; }.login-mobile-brand small { letter-spacing:3px;font-size:10px;color:#c8a44b; }
}
@media (max-width: 640px) {
  .login-page { padding:16px; }.login-shell { border-radius:20px; min-height:auto; }.login-form-panel { padding:30px 22px; }
  .login-form-wrap h2 { font-size:29px; }.login-heading-icon { margin-bottom:16px; }
  .topbar { padding:0 12px; gap:8px; }.topbar-search { flex:1; width:auto; }.topbar-search kbd { display:none; }
  .topbar-actions { gap:10px; }.profile-text,.profile-chevron { display:none; }.avatar { width:34px;height:34px; }
  .dashboard-content { padding:20px 12px; }.welcome-row { margin-bottom:18px; }.welcome-row h1 { font-size:21px; }.welcome-subtitle { font-size:11px; }
  .stats-grid { gap:10px; }.stat-card { padding:14px 11px; gap:9px; border-radius:12px; }.stat-icon { width:34px;height:34px;flex-basis:34px;font-size:14px;border-radius:10px; }
  .stats-grid-student{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:22px}
  .stats-grid-student.stat-card{background:#fff;border:1px solid var(--line);border-top:3px solid var(--teal);border-radius:15px;padding:19px 20px;display:flex;align-items:center;gap:15px;box-shadow:0 7px 22px rgba(29,52,74,.035);min-height:104px}
  .stat-info > span { font-size:9px; white-space:normal; }.stat-info > strong { font-size:20px; }.stat-info small { font-size:9px; }.stat-info small em { display:none; }
  .right-column { grid-template-columns:1fr; }.panel-header { padding:18px 14px 14px; align-items:flex-start; flex-direction:column; }.panel-header.compact { flex-direction:row; align-items:center; padding:17px 15px 12px; }
  .panel-header h2 { font-size:13px; }.panel-header > .d-flex { width:100%; }.course-filter { flex:1; max-width:none; }
  .course-table { min-width:760px; }.panel-footer { padding:12px 14px; }
  .dashboard-footer { flex-direction:column; text-align:center; }.sidebar-toggle { padding-left:4px; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { transition:none !important; scroll-behavior:auto !important; } }


/* Supplied NetzWerk Academy logo */
.login-logo { display:block; width:min(100%, 390px); height:auto; object-fit:contain; position:relative; z-index:1; margin:0 auto 18px; }
.login-mobile-logo { display:block; width:185px; max-width:65%; height:auto; object-fit:contain; }
.sidebar-brand { padding:14px 20px; min-height:132px; }
.sidebar-logo { display:block; width:160px; max-width:100%; height:auto; object-fit:contain; }
@media (max-width: 991.98px) {
  .login-mobile-brand { margin-bottom:24px; }
}
@media (max-width: 640px) {
  .login-logo { width:min(100%, 300px); }
  .sidebar-brand { min-height:110px; }
  .sidebar-logo { width:140px; }
}


/* Reference-matched visual refinements */
.login-page {
  padding: 0;
  background:
    radial-gradient(ellipse at 0% 15%, rgba(223, 205, 153, .30), transparent 30%),
    radial-gradient(ellipse at 100% 20%, rgba(25, 156, 153, .20), transparent 34%),
    #edf3f5;
}
.login-shell {
  width: min(1160px, 100%);
  min-height: 620px;
  grid-template-columns: 1fr 1fr;
  border-radius: 0;
  border: 0;
  box-shadow: 0 12px 45px rgba(20, 42, 54, .12);
  background: rgba(255,255,255,.95);
}
.login-brand-panel {
  background:
    linear-gradient(135deg, rgba(255,255,255,.90), rgba(251,247,235,.78)),
    url("https://images.unsplash.com/photo-1503676260728-1c00da094a0b?auto=format&fit=crop&w=1200&q=85") center/cover;
  padding: 42px 32px;
}
.login-logo { width: min(100%, 350px); margin-bottom: 12px; }
.brand-tagline { color:#526176; font-size:13px; }
.login-form-panel { padding: 42px clamp(28px, 4vw, 62px); }
.login-form-wrap { max-width: 400px; }
.login-form-wrap h2 { text-align:center; font-size:34px; margin-bottom:5px; }
.login-form-wrap > .text-muted { text-align:center; color:#64758b !important; font-size:13px; margin-bottom:20px !important; }
.login-heading-icon { display:none; }
.login-input .input-group-text, .login-input .form-control { background:#fff; }
.login-input .input-group-text { background:#f8fafc; }
.btn-brand { background:linear-gradient(100deg,#d5a12f,#b98520); border-radius:10px; }
.login-divider { display:flex; align-items:center; gap:12px; color:#8390a0; font-size:11px; margin-top:22px; }
.login-divider span { height:1px; flex:1; background:#e1e7ec; }
.login-copyright { margin-top:18px; }
.sidebar-brand { background:#17242b; }
.sidebar-logo { width:150px; }
.stat-card { box-shadow:0 7px 20px rgba(31,49,63,.045); }
.course-table thead th { color:#243145; }
@media (min-width: 992px) {
  .login-shell { min-height:620px; }
}
@media (max-width: 991.98px) {
  .login-shell { width:min(620px,100%); min-height:auto; border-radius:24px; margin:20px; }
  .login-brand-panel { display:none; }
}
@media (max-width: 640px) {
  .login-page { padding:16px; }
  .login-shell { margin:0; border-radius:20px; }
  .login-form-panel { padding:30px 22px; }
}


/* Strong mobile/tablet responsiveness overrides */
html, body { max-width: 100%; overflow-x: hidden; }
img { max-width: 100%; }
.dashboard-page .admin-layout { width: 100%; overflow-x: clip; }
.dashboard-page .main-area { min-width: 0; }
.dashboard-content { width: 100%; }
.table-responsive { max-width: 100%; -webkit-overflow-scrolling: touch; }
.course-table { min-width: 720px; }
.topbar-search { min-width: 0; }
.topbar-search .form-control { min-width: 0; }

/* Small tablets */
@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.sidebar-open { transform: translateX(0); }
  .main-area { margin-left: 0 !important; width: 100%; }
  .sidebar-toggle { display: inline-flex !important; align-items: center; justify-content: center; }
  .topbar { width: 100%; padding: 0 14px; gap: 10px; }
  .topbar-search { flex: 1 1 auto; width: auto; }
  .topbar-search kbd { display: none; }
  .dashboard-content { padding: 20px 14px; }
  .content-grid { grid-template-columns: minmax(0, 1fr); }
  .right-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .date-card { display: none; }
}

/* Phones */
@media (max-width: 767.98px) {
  .topbar { height: 62px; padding: 0 10px; gap: 7px; }
  .sidebar-toggle { font-size: 17px; padding: 5px 7px; flex: 0 0 auto; }
  .topbar-search { padding: 0 8px; gap: 7px; }
  .topbar-search > i { font-size: 12px; }
  .topbar-search .form-control { font-size: 11px; min-height: 36px; padding: 5px 0; }
  .topbar-search .form-control::placeholder { color: #9aa4b1; }
  .topbar-actions { margin-left: 0; gap: 8px; flex: 0 0 auto; }
  .icon-button { font-size: 16px; padding: 4px; }
  .admin-profile { gap: 0; }
  .avatar { width: 31px; height: 31px; font-size: 10px; }
  .profile-text, .profile-chevron { display: none !important; }
  .dashboard-content { padding: 18px 10px; }
  .welcome-row { margin-bottom: 16px; }
  .welcome-row h1 { font-size: 19px; line-height: 1.3; letter-spacing: -.4px; }
  .wave { font-size: 18px; }
  .welcome-subtitle { font-size: 11px; line-height: 1.5; }
  .eyebrow { font-size: 8px; margin-bottom: 5px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-bottom: 14px; }
  .stat-card { min-width: 0; padding: 12px 10px; gap: 8px; border-radius: 11px; align-items: flex-start; }
  .stat-icon { width: 32px; height: 32px; flex-basis: 32px; font-size: 13px; border-radius: 9px; }
  .stat-info { gap: 4px; }
  .stat-info > span { font-size: 9px; line-height: 1.3; white-space: normal; }
  .stat-info > strong { font-size: 20px; }
  .stat-info small { font-size: 8px; white-space: normal; }
  .stat-info small em { display: none; }
  .content-grid { gap: 14px; }
  .panel { border-radius: 12px; }
  .panel-header { padding: 15px 13px 12px; }
  .panel-header h2 { font-size: 13px; }
  .panel-header p { font-size: 9px; }
  .panel-header.compact { padding: 15px 13px 10px; }
  .course-panel .panel-header { align-items: flex-start; }
  .course-panel .panel-header > .d-flex { width: 100%; }
  .course-filter { flex: 1; min-width: 0; }
  .course-table { min-width: 720px; }
  .course-table thead th { padding: 11px 12px; font-size: 8px; }
  .course-table tbody td { padding: 10px 12px; }
  .panel-footer { padding: 11px 12px; gap: 8px; }
  .panel-footer > span { font-size: 9px; }
  .pagination-mini { gap: 3px; }
  .pagination-mini button { width: 23px; height: 23px; }
  .right-column { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .simple-chart { height: 215px; }
  .activity-item { padding: 12px 14px; }
  .dashboard-footer { padding-top: 18px; font-size: 9px; }
}

/* Narrow phones */
@media (max-width: 380px) {
  .topbar { gap: 5px; }
  .topbar-search .form-control { font-size: 10px; }
  .topbar-search .form-control::placeholder { content: "Search..."; }
  .topbar-actions { gap: 4px; }
  .stats-grid { gap: 7px; }
  .stat-card { padding: 10px 8px; gap: 6px; }
  .stat-icon { width: 28px; height: 28px; flex-basis: 28px; font-size: 12px; }
  .stat-info > strong { font-size: 18px; }
  .welcome-row h1 { font-size: 17px; }
}

/* Login page: fit viewport without overflow on small devices */
@media (max-width: 991.98px) {
  .login-page { min-height: 100vh; padding: 22px; display: flex; align-items: center; justify-content: center; }
  .login-shell { width: 100%; max-width: 540px; min-height: 0; margin: 0; }
  .login-form-panel { width: 100%; padding: 36px clamp(20px, 6vw, 38px); }
  .login-form-wrap { width: 100%; }
}
@media (max-width: 480px) {
  .login-page { padding: 12px; }
  .login-shell { border-radius: 18px; }
  .login-form-panel { padding: 25px 18px; }
  .login-mobile-logo { width: 150px; max-width: 58%; }
  .login-mobile-brand { margin-bottom: 18px; }
  .login-form-wrap h2 { font-size: 28px; }
  .login-form-wrap > .text-muted { font-size: 12px; }
  .login-input .form-control { min-height: 47px; font-size: 12px; }
  .login-input .input-group-text { padding: 0 11px; }
  .btn-brand { min-height: 48px; }
  .login-copyright { font-size: 9px; margin-top: 16px; }
}


/* Fix: login form was retaining the desktop two-column grid on phones */
@media (max-width: 991.98px) {
  .login-shell {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 540px;
    min-width: 0;
  }
  .login-form-panel,
  .login-form-wrap {
    min-width: 0;
    width: 100%;
  }
  .login-form-panel { grid-column: 1 / -1; }
  .login-input,
  .login-form-wrap form,
  .login-form-wrap .input-group {
    width: 100%;
    min-width: 0;
  }
  .login-input .form-control {
    width: 1%;
    min-width: 0;
    flex: 1 1 auto;
  }
}
@media (max-width: 480px) {
  .login-page {
    width: 100%;
    min-width: 0;
    padding: 12px !important;
    overflow-x: hidden;
  }
  .login-shell {
    width: 100% !important;
    max-width: 100%;
    min-width: 0;
    margin: 0 !important;
  }
  .login-form-panel { padding: 25px 18px !important; }
  .login-form-wrap h2 { white-space: nowrap; }
  .login-mobile-brand { justify-content: center; }
  .login-mobile-logo { width: 175px; max-width: 75%; }
  .login-divider { gap: 8px; }
}


/* Mobile sidebar fix: allow the entire menu to scroll */
@media (max-width: 991.98px) {
  .sidebar {
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .sidebar.sidebar-open {
    transform: translateX(0);
  }
  .sidebar-nav {
    flex: 0 0 auto;
    padding-bottom: 12px;
  }
  .sidebar-bottom {
    margin-top: 12px;
    flex-shrink: 0;
  }
}



.stats-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:22px}.stat-card{background:#fff;border:1px solid var(--line);border-top:3px solid var(--teal);border-radius:15px;padding:19px 20px;display:flex;align-items:center;gap:15px;box-shadow:0 7px 22px rgba(29,52,74,.035);min-height:104px}.stat-icon{width:48px;height:48px;border-radius:14px;background:#e2f7f4;color:var(--teal);display:grid;place-items:center;font-size:20px;flex:none}.stat-info span{display:block;color:#8493a3;font-size:11px}.stat-info strong{display:block;color:#20364a;font-size:25px;line-height:1.2;margin-top:3px}.stat-info small{display:block;color:var(--teal);font-size:10px;margin-top:4px}.stat-info em{font-style:normal;color:#a0aab5;margin-left:3px}
    .content-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(260px,.85fr);gap:18px;align-items:start}.panel{background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 7px 22px rgba(29,52,74,.035);overflow:hidden}.panel-header{padding:20px 22px;display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid var(--line)}.panel-header h2{font-size:15px;font-weight:800;margin:0;color:#20364a}.panel-header p{font-size:11px;color:#99a5b1;margin:5px 0 0}.course-table thead th{background:#f7f9fb;color:#738394;font-size:10px;text-transform:uppercase;letter-spacing:.7px;font-weight:800;padding:14px 18px;border-bottom:1px solid var(--line);white-space:nowrap}.course-table tbody td{padding:17px 18px;font-size:12px;color:#77889a;border-bottom:1px solid #eef2f6}.course-name{display:flex;align-items:center;gap:11px;color:#263d52;font-weight:700}.course-symbol{width:35px;height:35px;border-radius:10px;background:#fff5e2;color:#c18a22;display:grid;place-items:center;font-size:16px}.progress-wrap{display:flex;align-items:center;gap:10px;min-width:145px}.progress{height:7px;flex:1;background:#edf1f5;border-radius:20px}.progress-bar{background:linear-gradient(90deg,#159b9a,#38b8aa);border-radius:20px}.progress-label{font-size:11px;color:#63788c;font-weight:700;white-space:nowrap}.panel-footer{padding:14px 20px;display:flex;justify-content:space-between;align-items:center;color:#96a3b0;font-size:11px}.pagination-mini{display:flex;gap:5px}.pagination-mini button{border:1px solid var(--line);background:#fff;color:#8795a4;border-radius:7px;width:27px;height:27px}.pagination-mini button.current{background:var(--navy2);border-color:var(--navy2);color:#fff}
    .side-card{padding:21px}.side-card h3{font-size:14px;font-weight:800;margin:0 0 6px;color:#20364a}.side-card>p{font-size:11px;color:#98a5b2;margin:0 0 18px}.progress-ring{width:124px;height:124px;border-radius:50%;background:conic-gradient(var(--teal) 0 3.6deg,#eaf0f3 3.6deg 360deg);display:grid;place-items:center;margin:12px auto 17px;position:relative}.progress-ring:before{content:"";position:absolute;inset:10px;background:white;border-radius:50%}.progress-ring span{position:relative;font-size:24px;font-weight:800;color:#21384b}.progress-ring small{font-size:10px;color:#91a0ad;font-weight:600;display:block;text-align:center}.side-note{background:#f3faf9;border:1px solid #e0f2ef;border-radius:11px;padding:12px;color:#6e8790;font-size:11px;line-height:1.6}.side-note strong{color:#168b88}.dashboard-footer{display:flex;justify-content:space-between;gap:15px;padding:24px 4px 5px;color:#a0acb8;font-size:10px}.dashboard-footer span{ text-align:right }
    @media(max-width:1100px){.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.content-grid{grid-template-columns:1fr}.side-card{display:grid;grid-template-columns:1fr auto;align-items:center;gap:0 20px}.side-card h3,.side-card>p,.side-note{grid-column:1}.progress-ring{grid-column:2;grid-row:1/4;margin:0}}
    @media(max-width:767px){.sidebar{transform:translateX(-100%);box-shadow:12px 0 30px rgba(0,0,0,.15)}.sidebar.sidebar-open{transform:translateX(0)}.main-area{width:100%;margin-left:0}.topbar{height:66px;padding:0 15px;gap:12px}.sidebar-toggle{display:inline-flex;align-items:center;justify-content:center;border:0;background:#f3f6f8;color:#233a4c;width:36px;height:36px;border-radius:9px}.topbar-search{width:auto;flex:1}.topbar-search input{height:38px}.topbar-actions{gap:12px}.profile-text,.profile-chevron{display:none}.avatar{width:35px;height:35px}.dashboard-content{padding:25px 15px 18px}.welcome-row{align-items:flex-start;flex-direction:column}.welcome-row h1{font-size:22px}.date-card{width:100%}.stats-grid{grid-template-columns:1fr;gap:11px}.stat-card{min-height:88px;padding:15px 17px}.content-grid{gap:14px}.panel-header{padding:17px}.panel-header h2{font-size:14px}.course-table thead th,.course-table tbody td{padding:13px 12px}.side-card{display:block}.progress-ring{margin:12px auto 17px}.dashboard-footer{flex-direction:column}.dashboard-footer span{text-align:left}}
