/* =========================================================
   Islam Academics 2026
   Central Emerald Dark + Light Design System
   ========================================================= */

/* ---------- Light Theme ---------- */

:root {
    --primary: #059669;
    --primary-dark: #047857;
    --primary-light: #d1fae5;
    --primary-soft: #ecfdf5;

    --background: #f1f5f9;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --border: #dbe3ee;

    --text: #172033;
    --text-muted: #64748b;
    --text-light: #94a3b8;

    --sidebar: #064e3b;
    --sidebar-hover: #065f46;
    --sidebar-text: #d1fae5;

    --danger: #dc2626;
    --danger-soft: #fee2e2;
    --warning: #d97706;
    --warning-soft: #fef3c7;
    --info: #2563eb;
    --info-soft: #dbeafe;
    --success: #059669;
    --success-soft: #d1fae5;

    --shadow: 0 8px 25px rgba(15, 23, 42, 0.08);
    --shadow-small: 0 3px 12px rgba(15, 23, 42, 0.07);

    --radius: 12px;
    --radius-small: 8px;
}

/* ---------- Dark Theme ---------- */

[data-theme="dark"] {
    --primary: #34d399;
    --primary-dark: #10b981;
    --primary-light: #064e3b;
    --primary-soft: #052e26;

    --background: #0f172a;
    --surface: #172033;
    --surface-soft: #1e293b;
    --border: #334155;

    --text: #f8fafc;
    --text-muted: #cbd5e1;
    --text-light: #94a3b8;

    --sidebar: #061f1a;
    --sidebar-hover: #0b3b30;
    --sidebar-text: #d1fae5;

    --danger: #f87171;
    --danger-soft: #451a1a;
    --warning: #fbbf24;
    --warning-soft: #451f05;
    --info: #60a5fa;
    --info-soft: #172554;
    --success: #34d399;
    --success-soft: #064e3b;

    --shadow: 0 8px 25px rgba(0, 0, 0, 0.28);
    --shadow-small: 0 3px 12px rgba(0, 0, 0, 0.22);
}

/* ---------- Base ---------- */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    background: var(--background);
    color: var(--text);
    line-height: 1.5;
    transition: background 0.25s ease, color 0.25s ease;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

/* ---------- Main Layout ---------- */

.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 245px;
    flex-shrink: 0;
    background: var(--sidebar);
    color: var(--sidebar-text);
    padding: 20px 14px;
}

.sidebar-brand {
    display: block;
    padding: 8px 10px 24px;
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
}

.sidebar-brand span {
    display: block;
    margin-top: 3px;
    color: #a7f3d0;
    font-size: 11px;
    font-weight: normal;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sidebar-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: var(--radius-small);
    color: var(--sidebar-text);
    font-size: 13px;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: var(--sidebar-hover);
    color: #ffffff;
}

.main-area {
    width: 100%;
    min-width: 0;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 64px;
    padding: 12px 26px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-small);
}

.topbar-title {
    margin: 0;
    color: var(--text);
    font-size: 18px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.page-content,
.container {
    width: 100%;
    max-width: 1250px;
    margin: 0 auto;
    padding: 26px;
}

/* ---------- Buttons ---------- */

.btn,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid transparent;
    border-radius: var(--radius-small);
    background: var(--primary);
    color: #ffffff;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn:hover,
button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--surface-soft);
    border-color: var(--border);
    color: var(--text);
}

.btn-secondary:hover {
    background: var(--border);
}

.btn-danger {
    background: var(--danger);
}

.btn-danger:hover {
    background: #b91c1c;
}

.theme-toggle {
    min-width: 40px;
    padding: 8px 11px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    color: var(--text);
}

.theme-toggle:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* ---------- Cards ---------- */

.card {
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-small);
}

.card h1,
.card h2,
.card h3 {
    margin-top: 0;
    color: var(--text);
}

.card h1 {
    font-size: 22px;
}

.card h2 {
    font-size: 19px;
}

.card h3 {
    font-size: 16px;
}

.card-description {
    margin: -5px 0 20px;
    color: var(--text-muted);
    font-size: 13px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.stat-card {
    padding: 17px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-small);
}

.stat-card p {
    margin: 0 0 6px;
    color: var(--text-muted);
    font-size: 12px;
}

.stat-card h3 {
    margin: 0 0 6px;
    color: var(--primary);
    font-size: 21px;
}

/* ---------- Forms ---------- */

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full {
    grid-column: 1 / -1;
}

label {
    margin-bottom: 6px;
    color: var(--text);
    font-size: 13px;
    font-weight: bold;
}

input,
select,
textarea {
    width: 100%;
    padding: 9px 11px;
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    outline: none;
    background: var(--surface-soft);
    color: var(--text);
    font-size: 13px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-light);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

input[readonly] {
    background: var(--background);
    color: var(--text-muted);
    cursor: not-allowed;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    background: var(--surface-soft);
    color: var(--text);
    font-size: 13px;
    font-weight: bold;
}

.back-btn:hover {
    background: var(--border);
}

/* ---------- Tables ---------- */

.table-wrapper {
    overflow-x: auto;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-small);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 11px 13px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

th {
    background: var(--surface-soft);
    color: var(--text);
    font-size: 12px;
}

td {
    color: var(--text-muted);
    font-size: 13px;
}

tr:last-child td {
    border-bottom: none;
}

tbody tr:hover {
    background: var(--primary-soft);
}

/* ---------- Master Sheet Stage Dropdown ---------- */

.stage-select {
    min-width: 88px;
    font-weight: 700;
}

.stage-select.stage-demo {
    border-color: var(--warning);
    background: var(--warning-soft);
    color: var(--warning);
}

.stage-select.stage-active {
    border-color: var(--success);
    background: var(--success-soft);
    color: var(--success);
}

.stage-select.stage-on-hold {
    background: rgba(245, 158, 11, 0.18);
    border-color: #f59e0b;
    color: #fbbf24;
}

.stage-select.stage-quit {
    border-color: var(--danger);
    background: var(--danger-soft);
    color: var(--danger);
}

.stage-select option {
    background: var(--surface);
}

.stage-select option[value="Demo"] {
    color: var(--warning);
}

.stage-select option[value="Active"] {
    color: var(--success);
}

.stage-select option[value="On Hold"] {
    color: #b45309;
}

.stage-select option[value="Quit"] {
    color: var(--danger);
}

/* ---------- Status Badges ---------- */

.badge {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: bold;
}

.badge-success {
    background: var(--success-soft);
    color: var(--success);
}

.badge-warning {
    background: var(--warning-soft);
    color: var(--warning);
}

.badge-danger {
    background: var(--danger-soft);
    color: var(--danger);
}

.badge-info {
    background: var(--info-soft);
    color: var(--info);
}

/* ---------- Alerts ---------- */

.alert {
    margin-bottom: 16px;
    padding: 11px 14px;
    border-radius: var(--radius-small);
    font-size: 13px;
}

.alert-success {
    background: var(--success-soft);
    color: var(--success);
}

.alert-error {
    background: var(--danger-soft);
    color: var(--danger);
}

.alert-warning {
    background: var(--warning-soft);
    color: var(--warning);
}

/* ---------- Login Page ---------- */

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.login-card {
    width: 100%;
    max-width: 410px;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.login-card h1 {
    margin: 0 0 8px;
    color: var(--primary);
    font-size: 23px;
    text-align: center;
}

.login-card p {
    margin: 0 0 22px;
    color: var(--text-muted);
    font-size: 13px;
    text-align: center;
}

/* ---------- Mobile ---------- */

@media (max-width: 900px) {
    .sidebar {
        width: 205px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .app-layout {
        display: block;
    }

    .sidebar {
        width: 100%;
        padding: 12px;
    }

    .sidebar-brand {
        padding: 7px 8px 12px;
    }

    .sidebar-menu {
        flex-direction: row;
        overflow-x: auto;
    }

    .sidebar-menu a {
        white-space: nowrap;
    }

    .topbar {
        padding: 12px 16px;
    }

    .topbar-actions span {
        display: none;
    }

    .page-content,
    .container {
        padding: 18px;
    }

    .form-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full {
        grid-column: auto;
    }

    .card {
        padding: 18px;
    }
}/* ---------- Visual Timetable ---------- */

.schedule-view-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.schedule-board {
    display: grid;
    grid-template-columns: repeat(7, minmax(150px, 1fr));
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.schedule-day {
    min-height: 230px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    background: var(--surface-soft);
}

.schedule-day.today {
    border-color: var(--primary);
    background: var(--primary-soft);
}

.schedule-day-title {
    margin-bottom: 12px;
    color: var(--text);
    font-size: 13px;
    font-weight: bold;
}

.schedule-card {
    display: block;
    margin-bottom: 10px;
    padding: 11px;
    border-left: 3px solid var(--primary);
    border-radius: var(--radius-small);
    background: var(--surface);
    box-shadow: var(--shadow-small);
}

.schedule-card:hover {
    transform: translateY(-1px);
}

.schedule-card-time {
    color: var(--primary);
    font-size: 13px;
    font-weight: bold;
}

.schedule-card-name {
    margin-top: 4px;
    color: var(--text);
    font-size: 13px;
    font-weight: bold;
}

.schedule-card-meta {
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 12px;
}

.schedule-empty {
    color: var(--text-light);
    font-size: 12px;
}

.daily-schedule {
    display: grid;
    gap: 12px;
}

.daily-schedule-card {
    display: grid;
    grid-template-columns: 110px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-small);
}

.daily-schedule-time {
    color: var(--primary);
    font-size: 16px;
    font-weight: bold;
}

.daily-schedule-name {
    color: var(--text);
    font-size: 14px;
    font-weight: bold;
}

.daily-schedule-meta {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 13px;
}

.schedule-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.personal-schedule-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.personal-schedule-day {
    min-height: 125px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-small);
}

.personal-schedule-day.has-class {
    border-color: var(--primary);
    background: var(--primary-soft);
}

@media (max-width: 850px) {
    .daily-schedule-card {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .personal-schedule-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .personal-schedule-grid {
        grid-template-columns: 1fr;
    }
}

.table-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.table-actions form {
    margin: 0;
}

/* ---------- Mobile App Navigation + Responsive Repair ---------- */

.sidebar-mobile-toggle,
.sidebar-backdrop,
.sidebar-close {
    display: none;
}

@media (min-width: 701px) {
    .app-layout {
        display: flex;
        min-width: 0;
    }

    .sidebar-mobile-toggle,
    .sidebar-backdrop,
    .sidebar-close {
        display: none !important;
    }

    .sidebar {
        position: static;
        inset: auto;
        width: 245px;
        height: auto;
        flex: 0 0 245px;
        transform: none;
        box-shadow: none;
    }

    .main-area {
        width: calc(100% - 245px);
        min-width: 0;
    }
}

@media (max-width: 700px) {
    body.sidebar-menu-open {
        overflow: hidden;
    }

    .app-layout {
        display: flex;
        min-width: 0;
    }

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

    .sidebar-mobile-toggle {
        position: fixed;
        top: 11px;
        left: 12px;
        z-index: 130;
        display: inline-flex;
        min-width: 46px;
        min-height: 44px;
        padding: 9px 12px;
        border: 1px solid var(--border);
        background: var(--surface);
        color: var(--text);
        box-shadow: var(--shadow-small);
        width: auto;
        height: auto;
        flex: 0 0 auto;
    }

    .sidebar-toggle-label {
        font-size: 12px;
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 110;
        display: block;
        width: 100%;
        height: 100%;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: rgba(2, 12, 10, .62);
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease;
    }

    .sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 120;
        width: min(86vw, 310px);
        height: 100dvh;
        padding: 18px 14px 28px;
        overflow-y: auto;
        box-shadow: 18px 0 55px rgba(0, 0, 0, .28);
        transform: translateX(-105%);
        transition: transform .22s ease;
    }

    body.sidebar-menu-open .sidebar {
        transform: translateX(0);
    }

    body.sidebar-menu-open .sidebar-mobile-toggle {
        opacity: 0;
        pointer-events: none;
    }

    body.sidebar-menu-open .sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .sidebar-close {
        position: absolute;
        top: 12px;
        right: 12px;
        display: inline-grid;
        place-items: center;
        width: 40px;
        height: 40px;
        padding: 0;
        border: 1px solid rgba(255,255,255,.22);
        background: rgba(255,255,255,.08);
        color: white;
        font-size: 24px;
    }

    .sidebar-brand {
        padding: 8px 52px 20px 8px;
    }

    .sidebar-menu {
        flex-direction: column;
        gap: 5px;
        overflow: visible;
    }

    .sidebar-menu a {
        min-height: 43px;
        white-space: normal;
    }

    .topbar {
        min-height: 66px;
        padding: 11px 14px 11px 74px;
        flex-wrap: wrap;
    }

    .topbar-title {
        min-width: 0;
        padding-top: 8px;
        overflow-wrap: anywhere;
    }

    .topbar-actions {
        margin-left: auto;
    }

    .page-content,
    .container {
        max-width: 100%;
        padding: 16px;
        overflow: hidden;
    }

    .card,
    .stat-card,
    .daily-schedule-card,
    .personal-schedule-day {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .form-grid,
    .stats-grid,
    .personal-schedule-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .table-wrapper {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        -webkit-overflow-scrolling: touch;
    }

    .table-wrapper table {
        min-width: 720px;
    }

    .schedule-board {
        width: 100%;
        max-width: 100%;
    }

    .daily-schedule-card {
        grid-template-columns: minmax(0, 1fr);
    }

    input,
    select,
    textarea,
    .btn,
    button,
    .back-btn {
        min-height: 44px;
    }

    .actions {
        align-items: stretch;
    }

    .actions > .btn,
    .actions > .back-btn,
    .actions > button,
    .actions > form {
        flex: 1 1 150px;
    }

    .actions > form > button {
        width: 100%;
    }
}

@media (max-width: 430px) {
    .sidebar-toggle-label {
        display: none;
    }

    .topbar-actions .theme-toggle {
        min-width: 44px;
        max-width: 118px;
        padding-inline: 9px;
        white-space: normal;
    }

    .page-content,
    .container {
        padding: 13px;
    }

    .card {
        padding: 15px;
    }

    .actions > .btn,
    .actions > .back-btn,
    .actions > button,
    .actions > form {
        flex-basis: 100%;
        width: 100%;
    }
}

/* ---------- Task 1 Global Shell Visual System ---------- */
:root {
    --shell-gold: #c9972f;
    --shell-sidebar-top: #062e28;
    --shell-sidebar-bottom: #041c18;
    --shell-focus: 0 0 0 3px rgba(5, 150, 105, 0.18);
}

[data-theme="dark"] {
    --background: #0b1220;
    --surface: #151f31;
    --surface-soft: #1d2a40;
    --border: #2d3d55;
    --text: #f8fafc;
    --text-muted: #cbd5e1;
    --sidebar: #05231e;
    --sidebar-hover: #0b3b30;
}

[data-theme="light"] {
    --background: #f4f7f5;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --border: #d9e3df;
    --text: #172033;
    --text-muted: #64748b;
    --sidebar: #064e3b;
    --sidebar-hover: #075f49;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--background);
}

.sidebar {
    width: 245px;
    background: linear-gradient(180deg, var(--shell-sidebar-top) 0%, var(--sidebar) 52%, var(--shell-sidebar-bottom) 100%);
    border-right: 1px solid rgba(255,255,255,0.08);
    box-shadow: inset -1px 0 0 rgba(255,255,255,0.04);
    overflow-x: hidden;
}

.sidebar-brand {
    display: grid !important;
    grid-template-columns: 58px minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 13px;
    row-gap: 2px;
    width: 100%;
    max-width: 100%;
    min-height: 78px;
    padding: 6px 8px 22px !important;
    color: #ffffff;
    line-height: 1.14;
    background: transparent !important;
    background-image: none !important;
    overflow: hidden;
}

.sidebar-brand-logo {
    grid-row: 1 / span 2;
    display: block !important;
    width: 58px !important;
    height: 58px !important;
    max-width: 58px !important;
    max-height: 58px !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 12px;
    background: transparent !important;
    padding: 0 !important;
    border: 0 !important;
}

.sidebar-brand-text {
    display: block !important;
    margin: 0 !important;
    color: #ffffff !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    letter-spacing: -0.01em;
    white-space: normal;
}

.sidebar-brand span:not(.sidebar-brand-text) {
    display: block !important;
    margin: 0 !important;
    color: #a7f3d0 !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    line-height: 1.22;
    white-space: normal;
}

.sidebar-menu {
    gap: 6px;
}

.sidebar-menu a,
.sidebar-group summary {
    border: 1px solid transparent;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.sidebar-menu a:hover,
.sidebar-group summary:hover {
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(167, 243, 208, 0.10);
}

.sidebar-menu a.active,
.sidebar-submenu a.active {
    background: rgba(16, 185, 129, 0.20);
    border-color: rgba(167, 243, 208, 0.18);
    box-shadow: inset 3px 0 0 var(--shell-gold);
    color: #ffffff;
}

.sidebar-submenu {
    border-left-color: rgba(167, 243, 208, 0.28);
}

.topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-small);
}

.topbar-title {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.topbar-actions {
    color: var(--text-muted);
    font-weight: 600;
}

.topbar-actions > span {
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    color: var(--text);
}

.theme-toggle {
    border-radius: 999px;
    font-weight: 800;
    border: 1px solid var(--border);
}

.theme-toggle:focus,
.sidebar-menu a:focus,
.sidebar-group summary:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: var(--shell-focus);
}

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

.btn-danger,
.delete-btn {
    background: var(--danger);
    border-color: var(--danger);
    color: #ffffff;
}

@media (max-width: 700px) {
    .sidebar-brand {
        grid-template-columns: 50px minmax(0, 1fr);
        min-height: 72px;
        padding: 8px 52px 20px 8px !important;
    }

    .sidebar-brand-logo {
        width: 50px !important;
        height: 50px !important;
        max-width: 50px !important;
        max-height: 50px !important;
    }

    .topbar-actions > span {
        display: none;
    }
}


/* ---------- Task 2 Dashboard Shell Visuals ---------- */
.sidebar-brand-logo-gold {
    background: linear-gradient(180deg, #ffe8a3 0%, #d6a545 45%, #a87319 100%) !important;
    -webkit-mask: url("../images/islam-academics-app-logo.png") center / contain no-repeat;
    mask: url("../images/islam-academics-app-logo.png") center / contain no-repeat;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.sidebar-menu a,
.sidebar-group summary {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-group summary {
    justify-content: space-between;
}

.sidebar-menu-label {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.sidebar-menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    color: #c7f8e4;
    font-size: 15px;
    line-height: 1;
    background: rgba(167, 243, 208, 0.08);
}

.sidebar-menu a.active .sidebar-menu-icon,
.sidebar-submenu a.active .sidebar-menu-icon,
.sidebar-group[open] > summary .sidebar-menu-icon {
    color: #f7d77a;
    background: rgba(247, 215, 122, 0.10);
}

.sidebar-submenu a {
    gap: 9px;
}

.sidebar-submenu .sidebar-menu-icon {
    flex-basis: 18px;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    font-size: 11px;
}

@media (max-width: 700px) {
    .sidebar-menu a,
    .sidebar-group summary {
        gap: 11px;
    }

    .sidebar-menu-icon {
        flex-basis: 23px;
        width: 23px;
        height: 23px;
    }
}

/* ---------- Task 2 Acceptance Icon/Logo Corrections ---------- */
.sidebar-brand .sidebar-brand-logo-gold {
    display: block !important;
    width: 64px !important;
    height: 64px !important;
    max-width: 64px !important;
    max-height: 64px !important;
    object-fit: contain !important;
    object-position: center !important;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    -webkit-mask: none !important;
    mask: none !important;
    filter: brightness(0) saturate(100%) invert(74%) sepia(69%) saturate(455%) hue-rotate(359deg) brightness(94%) contrast(92%) drop-shadow(0 4px 10px rgba(0,0,0,.24));
}

.sidebar-menu-icon i,
.dashboard-stat-icon i {
    display: inline-block;
    line-height: 1;
}

.dashboard-stat-icon {
    font-size: 24px;
}

@media (max-width: 700px) {
    .sidebar-brand .sidebar-brand-logo-gold {
        width: 52px !important;
        height: 52px !important;
        max-width: 52px !important;
        max-height: 52px !important;
    }
}
