body.dashboard-command-body {
    margin-bottom: 0 !important;
    background: #08152f;
    color: #d9e8ff;
}

body.dashboard-command-body .site-header,
body.dashboard-command-body #site-footer {
    display: none !important;
}

.dashboard-command-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background:
        radial-gradient(circle at 15% 8%, rgba(13, 242, 223, 0.14), transparent 26%),
        radial-gradient(circle at 78% 12%, rgba(4, 107, 94, 0.18), transparent 22%),
        linear-gradient(180deg, #0a1736 0%, #08152f 100%);
    color: #d9e8ff;
    font-family: "Cairo", "Tajawal", sans-serif;
}

.dashboard-command-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(132, 213, 197, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(132, 213, 197, 0.04) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.92), transparent 94%);
    opacity: 0.6;
    pointer-events: none;
}

.dashboard-command-shell {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 100vh;
}

.dashboard-command-main {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
    padding: 1.5rem;
}

.dashboard-command-main.is-full {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 1.75rem;
}

.command-sidebar {
    width: 18rem;
    min-height: 100vh;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(13, 29, 67, 0.98) 0%, rgba(10, 22, 49, 0.98) 100%);
    border-inline-start: 1px solid rgba(132, 213, 197, 0.12);
    box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.04);
    color: #dce8ff;
    position: sticky;
    top: 0;
}

.command-sidebar::before {
    content: "";
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, #54B6C7, #0F6F9D, #A6D8E2);
}

.command-sidebar-brand {
    padding: 1.4rem 1.2rem 1.05rem;
    border-bottom: 1px solid rgba(132, 213, 197, 0.12);
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
}

.command-sidebar-logo {
    width: 6.75rem;
    height: 3rem;
    border-radius: 0.95rem;
    background: rgba(255, 255, 255, 0.96);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(15, 111, 157, 0.18);
}

.command-sidebar-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.3rem;
}

.command-sidebar-logo .material-symbols-outlined {
    color: #ffffff;
    font-size: 1.35rem;
}

.command-sidebar-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #A6D8E2;
    font-size: 0.72rem;
    font-weight: 800;
}

.command-sidebar-title {
    margin-top: 0.2rem;
    color: #f8fbff;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.35;
}

.command-sidebar-subtitle {
    margin-top: 0.18rem;
    color: #91a6cf;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.5;
}

.command-sidebar-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    padding: 1rem 1.15rem 0;
}

.command-sidebar-metric {
    border: 1px solid rgba(132, 213, 197, 0.1);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.8rem 0.85rem;
}

.command-sidebar-metric strong {
    display: block;
    color: #f8fbff;
    font-size: 1.1rem;
    font-weight: 900;
}

.command-sidebar-metric span {
    display: block;
    margin-top: 0.15rem;
    color: #91a6cf;
    font-size: 0.72rem;
    font-weight: 700;
}

.command-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 1rem;
}

.command-nav-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-radius: 1rem;
    border: 1px solid transparent;
    padding: 0.85rem 0.95rem;
    color: #9fb5e7;
    text-decoration: none;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.command-nav-link:hover {
    border-color: rgba(13, 242, 223, 0.16);
    background: rgba(13, 242, 223, 0.06);
    color: #ffffff;
    transform: translateX(-2px);
}

html[dir="ltr"] .command-nav-link:hover {
    transform: translateX(2px);
}

.command-nav-link.active {
    border-color: rgba(13, 242, 223, 0.24);
    background: linear-gradient(135deg, rgba(4, 107, 94, 0.22), rgba(10, 30, 74, 0.96));
    color: #ffffff;
    box-shadow: 0 12px 26px rgba(4, 107, 94, 0.18);
}

.command-nav-link .material-symbols-outlined {
    color: #A6D8E2;
    font-size: 1.2rem;
}

.command-nav-link strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 800;
}

.command-nav-link small {
    display: block;
    margin-top: 0.12rem;
    color: #7f96c6;
    font-size: 0.68rem;
    font-weight: 700;
}

.command-nav-badge {
    margin-inline-start: auto;
    display: inline-flex;
    min-width: 1.55rem;
    justify-content: center;
    border-radius: 999px;
    background: rgba(13, 242, 223, 0.1);
    color: #A6D8E2;
    padding: 0.14rem 0.45rem;
    font-size: 0.68rem;
    font-weight: 800;
}

.command-sidebar-footer {
    margin-top: auto;
    border-top: 1px solid rgba(132, 213, 197, 0.12);
    padding: 1rem;
}

.command-sidebar-profile {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    border-radius: 1rem;
    border: 1px solid rgba(132, 213, 197, 0.1);
    background: rgba(255, 255, 255, 0.03);
    padding: 0.8rem;
}

.command-profile-avatar {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(135deg, #0F6F9D, #2F87B5);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
}

.command-sidebar-profile strong {
    display: block;
    color: #f8fbff;
    font-size: 0.9rem;
    font-weight: 900;
}

.command-sidebar-profile span {
    display: block;
    margin-top: 0.18rem;
    color: #91a6cf;
    font-size: 0.72rem;
    font-weight: 700;
}

.command-logout-link {
    color: #ffb9b9;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 800;
    transition: color 0.2s ease;
}

.command-logout-link:hover {
    color: #ffffff;
}

.command-topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: start;
    margin-bottom: 1.5rem;
}

.command-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(132, 213, 197, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: #A6D8E2;
    padding: 0.45rem 0.85rem;
    font-size: 0.74rem;
    font-weight: 800;
}

.command-section-kicker .material-symbols-outlined {
    font-size: 1rem;
}

.command-page-title {
    margin-top: 1rem;
    font-family: "Plus Jakarta Sans", "Cairo", sans-serif;
    color: #f8fbff;
    font-size: clamp(1.65rem, 3vw, 2.4rem);
    font-weight: 800;
    line-height: 1.1;
}

.command-page-copy {
    margin-top: 0.65rem;
    max-width: 44rem;
    color: #93a9d3;
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.85;
}

.command-identity {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    border: 1px solid rgba(132, 213, 197, 0.14);
    border-radius: 1rem;
    background: rgba(10, 30, 74, 0.78);
    padding: 0.85rem 1rem;
    box-shadow: 0 16px 34px rgba(4, 14, 36, 0.22);
}

.command-identity .material-symbols-outlined {
    color: #A6D8E2;
    font-size: 1.2rem;
}

.command-identity strong {
    display: block;
    color: #f8fbff;
    font-size: 0.9rem;
    font-weight: 900;
}

.command-identity span {
    display: block;
    margin-top: 0.14rem;
    color: #91a6cf;
    font-size: 0.75rem;
    font-weight: 700;
}

.command-panel,
.command-surface,
.command-mini-card,
.command-course-card,
.command-table-shell,
.command-list-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(132, 213, 197, 0.12);
    background: linear-gradient(180deg, rgba(16, 34, 76, 0.96), rgba(11, 24, 58, 0.98));
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
    box-shadow: 0 24px 48px rgba(4, 14, 36, 0.28);
}

.command-panel::before,
.command-surface::before,
.command-mini-card::before,
.command-course-card::before,
.command-table-shell::before,
.command-list-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 242, 223, 0.08), transparent 34%, transparent 66%, rgba(132, 213, 197, 0.06));
    pointer-events: none;
}

.command-surface,
.command-table-shell,
.command-list-card {
    padding: 1.5rem;
}

.command-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.command-hero-panel {
    padding: 1.75rem;
}

.command-hero-title {
    margin-top: 1rem;
    font-family: "Plus Jakarta Sans", "Cairo", sans-serif;
    color: #f8fbff;
    font-size: clamp(1.9rem, 4vw, 2.9rem);
    font-weight: 800;
    line-height: 1.08;
}

.command-hero-copy {
    margin-top: 0.85rem;
    max-width: 42rem;
    color: #93a9d3;
    font-size: 0.97rem;
    font-weight: 700;
    line-height: 1.85;
}

.command-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.3rem;
}

.command-button,
.command-button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    border-radius: 1rem;
    padding: 0.9rem 1.25rem;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.command-button {
    background: linear-gradient(135deg, #0F6F9D, #2F87B5);
    color: #ffffff;
    box-shadow: 0 16px 28px rgba(4, 107, 94, 0.22);
}

.command-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(4, 107, 94, 0.28);
}

.command-button-secondary {
    border: 1px solid rgba(132, 213, 197, 0.14);
    background: rgba(255, 255, 255, 0.03);
    color: #e4edff;
}

.command-button-secondary:hover {
    transform: translateY(-1px);
    border-color: rgba(13, 242, 223, 0.22);
    background: rgba(13, 242, 223, 0.08);
}

.command-inline-note {
    margin-top: 1.35rem;
    border-radius: 1.1rem;
    border: 1px solid rgba(132, 213, 197, 0.1);
    background: rgba(255, 255, 255, 0.04);
    padding: 1rem 1rem 0.95rem;
}

.command-inline-note h3,
.command-side-panel h3,
.command-block-title {
    color: #f8fbff;
    font-size: 1rem;
    font-weight: 900;
}

.command-inline-note p,
.command-side-panel p {
    margin-top: 0.2rem;
    color: #91a6cf;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.75;
}

.command-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 0.9rem;
}

.command-meta-pill,
.command-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    border-radius: 999px;
    border: 1px solid rgba(132, 213, 197, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #d9e8ff;
    padding: 0.4rem 0.75rem;
    font-size: 0.76rem;
    font-weight: 800;
}

.command-meta-pill .material-symbols-outlined,
.command-pill .material-symbols-outlined {
    color: #A6D8E2;
    font-size: 1rem;
}

.command-side-panel {
    padding: 1.5rem;
}

.command-side-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.command-side-list-item {
    border-radius: 1rem;
    border: 1px solid rgba(132, 213, 197, 0.1);
    background: rgba(255, 255, 255, 0.03);
    padding: 0.85rem 0.95rem;
}

.command-side-list-item span {
    display: block;
    color: #A6D8E2;
    font-size: 0.72rem;
    font-weight: 800;
}

.command-side-list-item strong {
    display: block;
    margin-top: 0.2rem;
    color: #f8fbff;
    font-size: 0.92rem;
    font-weight: 900;
}

.command-stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.command-stat-card {
    padding: 1.2rem 1.2rem 1.1rem;
}

.command-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.command-card-icon {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    border: 1px solid rgba(132, 213, 197, 0.12);
    background: rgba(132, 213, 197, 0.1);
}

.command-card-icon .material-symbols-outlined {
    color: #A6D8E2;
    font-size: 1.4rem;
}

.command-stat-label {
    color: #91a6cf;
    font-size: 0.75rem;
    font-weight: 800;
}

.command-number {
    margin-top: 0.8rem;
    color: #f8fbff;
    font-family: "Plus Jakarta Sans", "Cairo", sans-serif;
    font-size: clamp(1.7rem, 3vw, 2.45rem);
    font-weight: 800;
}

.command-helper {
    margin-top: 0.35rem;
    color: #7f96c6;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.7;
}

.command-grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.9fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.command-course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.command-course-card {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

.command-card-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #A6D8E2;
    font-size: 0.72rem;
    font-weight: 800;
}

.command-card-title {
    margin-top: 0.25rem;
    color: #f8fbff;
    font-size: 1.05rem;
    font-weight: 900;
    line-height: 1.45;
}

.command-level-tag {
    border-radius: 999px;
    border: 1px solid rgba(132, 213, 197, 0.14);
    background: rgba(255, 255, 255, 0.04);
    color: #A6D8E2;
    padding: 0.35rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 800;
}

.command-meta-list {
    display: grid;
    gap: 0.55rem;
}

.command-meta-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
    color: #8ca2cc;
    font-size: 0.78rem;
    font-weight: 700;
}

.command-meta-item strong {
    color: #f8fbff;
    font-weight: 800;
}

.command-progress-wrap {
    margin-top: 0.15rem;
}

.command-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    color: #91a6cf;
    font-size: 0.74rem;
    font-weight: 800;
    margin-bottom: 0.45rem;
}

.command-progress {
    width: 100%;
    height: 0.46rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.command-progress-bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #54B6C7, #0F6F9D);
}

.command-card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin-top: auto;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(132, 213, 197, 0.08);
}

.command-action-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #A6D8E2;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 800;
}

.command-action-link:hover {
    color: #ffffff;
}

.command-button.is-compact,
.command-button-secondary.is-compact {
    padding: 0.72rem 1rem;
    font-size: 0.8rem;
}

.command-table-shell {
    overflow: hidden;
}

.command-table-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.command-table-wrap {
    overflow-x: auto;
    border-radius: 1rem;
    border: 1px solid rgba(132, 213, 197, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.command-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
}

.command-table th,
.command-table td {
    padding: 0.95rem 1rem;
    text-align: right;
    border-bottom: 1px solid rgba(132, 213, 197, 0.08);
}

.command-table th {
    color: #A6D8E2;
    font-size: 0.73rem;
    font-weight: 900;
    background: rgba(255, 255, 255, 0.02);
}

.command-table td {
    color: #dce8ff;
    font-size: 0.82rem;
    font-weight: 700;
}

.command-table tbody tr:hover {
    background: rgba(13, 242, 223, 0.04);
}

.command-table tbody tr:last-child td {
    border-bottom: 0;
}

.command-list {
    display: grid;
    gap: 0.8rem;
}

.command-list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    border-radius: 1rem;
    border: 1px solid rgba(132, 213, 197, 0.08);
    background: rgba(255, 255, 255, 0.03);
    padding: 0.95rem;
}

.command-list-icon {
    width: 2.7rem;
    height: 2.7rem;
    flex-shrink: 0;
    border-radius: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(132, 213, 197, 0.12);
    background: rgba(132, 213, 197, 0.1);
}

.command-list-icon .material-symbols-outlined {
    color: #A6D8E2;
    font-size: 1.2rem;
}

.command-list-item strong {
    display: block;
    color: #f8fbff;
    font-size: 0.92rem;
    font-weight: 900;
}

.command-list-item p {
    margin-top: 0.18rem;
    color: #91a6cf;
    font-size: 0.77rem;
    font-weight: 700;
    line-height: 1.75;
}

.command-list-item time,
.command-list-item span {
    color: #7f96c6;
    font-size: 0.72rem;
    font-weight: 700;
}

.command-empty {
    padding: 2rem 1.2rem;
    text-align: center;
}

.command-empty .material-symbols-outlined {
    display: inline-flex;
    width: 4rem;
    height: 4rem;
    align-items: center;
    justify-content: center;
    border-radius: 1.25rem;
    background: rgba(132, 213, 197, 0.08);
    color: #A6D8E2;
    font-size: 2rem;
}

.command-empty h3 {
    margin-top: 1rem;
    color: #f8fbff;
    font-size: 1rem;
    font-weight: 900;
}

.command-empty p {
    margin-top: 0.35rem;
    color: #91a6cf;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.8;
}

.command-analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.command-analytics-card {
    border-radius: 1rem;
    border: 1px solid rgba(132, 213, 197, 0.08);
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
}

.command-analytics-card h3 {
    color: #f8fbff;
    font-size: 0.92rem;
    font-weight: 900;
}

.command-analytics-row {
    margin-top: 0.8rem;
}

.command-analytics-row strong {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    color: #91a6cf;
    font-size: 0.74rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.command-dot-live {
    width: 0.52rem;
    height: 0.52rem;
    border-radius: 999px;
    background: #54B6C7;
    box-shadow: 0 0 0 0 rgba(13, 242, 223, 0.5);
    animation: commandPulse 1.8s infinite;
}

@keyframes commandPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(13, 242, 223, 0.45);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(13, 242, 223, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(13, 242, 223, 0);
    }
}

@media (max-width: 1180px) {
    .command-hero-grid,
    .command-grid-2 {
        grid-template-columns: 1fr;
    }

    .dashboard-command-main.is-full {
        padding: 1.35rem;
    }
}

@media (max-width: 1024px) {
    .dashboard-command-main {
        padding: 1rem;
    }
}

@media (max-width: 767px) {
    .command-topbar {
        grid-template-columns: 1fr;
    }

    .command-actions,
    .command-card-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .command-button,
    .command-button-secondary {
        width: 100%;
    }

    .command-hero-panel,
    .command-side-panel,
    .command-surface,
    .command-table-shell,
    .command-list-card,
    .command-stat-card,
    .command-course-card {
        padding: 1.15rem;
    }
}

/* Light WYBG palette override */
body.dashboard-command-body {
    background: #f8fafc;
    color: #0B315E;
}

.dashboard-command-page {
    background:
        radial-gradient(circle at 12% 10%, rgba(13, 242, 223, 0.1), transparent 24%),
        radial-gradient(circle at 86% 8%, rgba(132, 213, 197, 0.18), transparent 18%),
        linear-gradient(180deg, #f8fcff 0%, #eef5fb 54%, #f8fafc 100%);
    color: #0B315E;
}

.dashboard-command-page::before {
    background:
        linear-gradient(rgba(4, 107, 94, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(4, 107, 94, 0.05) 1px, transparent 1px);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 94%);
    opacity: 0.42;
}

.command-sidebar {
    background: linear-gradient(180deg, #ffffff 0%, #f3f7fb 100%);
    border-inline-start: 1px solid rgba(6, 22, 55, 0.08);
    box-shadow: 0 22px 40px rgba(6, 22, 55, 0.08);
    color: #0B315E;
}

.command-sidebar-brand,
.command-sidebar-footer {
    border-color: rgba(6, 22, 55, 0.08);
}

.command-sidebar-title,
.command-sidebar-profile strong,
.command-page-title,
.command-hero-title,
.command-inline-note h3,
.command-side-panel h3,
.command-block-title,
.command-number,
.command-card-title,
.command-table td,
.command-empty h3,
.command-analytics-card h3,
.command-identity strong,
.command-side-list-item strong,
.command-list-item strong {
    color: #0B315E;
}

.command-sidebar-subtitle,
.command-sidebar-metric span,
.command-nav-link small,
.command-page-copy,
.command-hero-copy,
.command-inline-note p,
.command-side-panel p,
.command-helper,
.command-meta-item,
.command-empty p,
.command-analytics-row strong,
.command-list-item p,
.command-list-item time,
.command-list-item span,
.command-identity span {
    color: #5b6d86;
}

.command-sidebar-metric,
.command-sidebar-profile {
    border-color: rgba(6, 22, 55, 0.08);
    background: rgba(4, 107, 94, 0.04);
}

.command-sidebar-metric strong {
    color: #0F6F9D;
}

.command-nav-link {
    color: #5b6d86;
}

.command-nav-link:hover {
    border-color: rgba(4, 107, 94, 0.14);
    background: rgba(4, 107, 94, 0.06);
    color: #0B315E;
}

.command-nav-link.active {
    border-color: rgba(4, 107, 94, 0.18);
    background: linear-gradient(135deg, rgba(4, 107, 94, 0.12), rgba(132, 213, 197, 0.28));
    color: #0B315E;
    box-shadow: 0 14px 30px rgba(4, 107, 94, 0.12);
}

.command-nav-badge,
.command-card-icon,
.command-list-icon,
.command-empty .material-symbols-outlined,
.command-level-tag {
    background: rgba(4, 107, 94, 0.08);
}

.command-profile-avatar {
    border-color: rgba(4, 107, 94, 0.1);
}

.command-logout-link:hover {
    color: #7f1d1d;
}

.command-section-kicker,
.command-meta-pill,
.command-pill,
.command-side-list-item,
.command-button-secondary,
.command-table-wrap {
    border-color: rgba(6, 22, 55, 0.08);
    background: rgba(255, 255, 255, 0.88);
}

.command-section-kicker,
.command-meta-pill,
.command-pill {
    color: #0F6F9D;
}

.command-identity {
    border-color: rgba(6, 22, 55, 0.08);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 16px 32px rgba(6, 22, 55, 0.08);
}

.command-panel,
.command-surface,
.command-mini-card,
.command-course-card,
.command-table-shell,
.command-list-card {
    border-color: rgba(6, 22, 55, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(245, 250, 255, 0.98));
    box-shadow: 0 22px 40px rgba(6, 22, 55, 0.08);
}

.command-panel::before,
.command-surface::before,
.command-mini-card::before,
.command-course-card::before,
.command-table-shell::before,
.command-list-card::before {
    background: linear-gradient(135deg, rgba(4, 107, 94, 0.06), transparent 34%, transparent 68%, rgba(132, 213, 197, 0.12));
}

.command-button-secondary {
    color: #0B315E;
}

.command-button-secondary:hover {
    border-color: rgba(4, 107, 94, 0.18);
    background: rgba(4, 107, 94, 0.07);
}

.command-inline-note {
    border-color: rgba(6, 22, 55, 0.08);
    background: rgba(4, 107, 94, 0.04);
}

.command-table th {
    color: #0F6F9D;
    background: rgba(4, 107, 94, 0.05);
}

.command-table td {
    border-color: rgba(6, 22, 55, 0.06);
}

.command-table tbody tr:hover,
.command-list-item:hover {
    background: rgba(4, 107, 94, 0.04);
}

.command-progress,
.command-analytics-card,
.command-list-item {
    border-color: rgba(6, 22, 55, 0.08);
    background: rgba(255, 255, 255, 0.88);
}

.command-progress {
    background: rgba(6, 22, 55, 0.08);
}

.command-dot-live {
    background: #0F6F9D;
    box-shadow: 0 0 0 0 rgba(4, 107, 94, 0.34);
}

.command-mobile-sidebar {
    display: none !important;
}

.command-mobile-sidebar-spacer {
    display: none;
}

@media (max-width: 1023px) {
    body.dashboard-command-body .site-header {
        display: block !important;
    }

    body:has(.command-mobile-sidebar) {
        padding-bottom: calc(5.35rem + env(safe-area-inset-bottom));
    }

    .dashboard-command-main {
        padding-bottom: calc(5.85rem + env(safe-area-inset-bottom));
    }

    .command-mobile-sidebar {
        position: fixed;
        left: 50%;
        right: auto;
        bottom: max(7.25rem, env(safe-area-inset-bottom));
        z-index: 80;
        display: flex !important;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        gap: 0;
        width: 15.6rem;
        max-width: calc(100vw - 2rem);
        padding: 0;
        direction: rtl;
        overflow: hidden;
        scrollbar-width: none;
        transform: translateX(-50%);
        border: 1px solid rgba(41, 84, 163, 0.82);
        background: #1b3978;
        box-shadow: 0 16px 36px rgba(2, 8, 28, 0.28);
        clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
        backdrop-filter: blur(14px);
    }

    .command-mobile-sidebar::-webkit-scrollbar {
        display: none;
    }

    .command-mobile-sidebar::before {
        content: "";
        position: absolute;
        inset: 0.58rem auto auto 0.58rem;
        width: 0.42rem;
        height: 0.42rem;
        border-top: 1px solid rgba(79, 151, 229, 0.64);
        border-left: 1px solid rgba(79, 151, 229, 0.64);
        background: transparent;
        pointer-events: none;
    }

    .command-mobile-sidebar::after {
        content: "";
        position: absolute;
        inset: auto 0.58rem 0.58rem auto;
        width: 0.42rem;
        height: 0.42rem;
        border-right: 1px solid rgba(79, 151, 229, 0.46);
        border-bottom: 1px solid rgba(79, 151, 229, 0.46);
        pointer-events: none;
    }

    .command-mobile-nav-link {
        position: relative;
        flex: 1 1 33.333%;
        min-width: 0;
        height: 2.45rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.3rem;
        color: #9ca9c8;
        text-decoration: none;
        border: 1px solid transparent;
        background: transparent;
        transition: color 0.22s ease, background 0.22s ease, border-color 0.22s ease;
    }

    .command-mobile-nav-link .material-symbols-outlined {
        display: none;
        color: currentColor;
        font-size: 0.95rem;
        line-height: 1;
    }

    .command-mobile-nav-link strong {
        display: block;
        min-width: 0;
        overflow: hidden;
        color: currentColor;
        font-size: 0.78rem;
        font-weight: 800;
        line-height: 1;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .command-mobile-nav-link em {
        position: absolute;
        inset-inline-end: 0.12rem;
        top: 0.05rem;
        min-width: 1rem;
        padding: 0.02rem 0.28rem;
        border-radius: 999px;
        background: #ef4444;
        color: #ffffff;
        font-size: 0.58rem;
        font-style: normal;
        font-weight: 900;
        line-height: 1rem;
        text-align: center;
    }

    .command-mobile-nav-link.active {
        order: -1;
        flex-basis: 100%;
        height: 2.55rem;
        justify-content: flex-start;
        padding-inline: 0.82rem;
        color: #ffffff;
        border-color: rgba(39, 83, 160, 0.86);
        background: #17346f;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }

    .command-mobile-nav-link.active .material-symbols-outlined {
        display: inline-flex;
    }

    .command-mobile-nav-link.active strong {
        display: block;
        margin-inline-start: auto;
        font-size: 0.73rem;
        font-weight: 900;
    }

    .command-mobile-sidebar:not(.is-open) .command-mobile-nav-link:not(.active) {
        display: none;
    }

    .command-mobile-sidebar.is-open {
        background: #1f4387;
    }

    .command-mobile-sidebar.is-open .command-mobile-nav-link.active {
        background: #16416f;
    }

    .command-mobile-sidebar.is-open .command-mobile-nav-link:not(.active):hover,
    .command-mobile-sidebar.is-open .command-mobile-nav-link:not(.active):focus-visible {
        color: #ffffff;
        background: rgba(38, 85, 168, 0.72);
    }
}

@media (min-width: 1024px) {
    .command-mobile-sidebar,
    .command-mobile-sidebar-spacer {
        display: none !important;
    }
}
