/* ==========================================================================
   PK STUDY — Admin Control Dashboard (Pixel-Accurate Reference Styles)
   Matches: PK STUDY Admin Dashboard Interface.png (1536 x 1024)
   ========================================================================== */

:root {
    --adm-bg: #F4F7FE;
    --adm-card-bg: #FFFFFF;
    --adm-sidebar-bg: #0A0E27;
    --adm-sidebar-hover: rgba(255, 255, 255, 0.08);
    --adm-sidebar-active: #1A73E8;
    --adm-header-bg: #FFFFFF;
    --adm-border: #E8EEF5;
    --adm-text-main: #0F172A;
    --adm-text-muted: #64748B;
    --adm-text-light: #94A3B8;
    --adm-primary: #1A73E8;
    --adm-red: #EF4444;
    --adm-red-header: linear-gradient(90deg, #FF1E46 0%, #E11D48 100%);
    --adm-green: #10B981;
    --adm-amber: #F59E0B;
    --adm-purple: #8B5CF6;
    --adm-radius: 12px;
    --adm-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

[data-adm-theme="dark"] {
    --adm-bg: #070A1E;
    --adm-card-bg: #0F1433;
    --adm-sidebar-bg: #060817;
    --adm-sidebar-hover: rgba(255, 255, 255, 0.06);
    --adm-sidebar-active: #2563EB;
    --adm-header-bg: #0A0E27;
    --adm-border: rgba(255, 255, 255, 0.08);
    --adm-text-main: #F8FAFC;
    --adm-text-muted: #94A3B8;
    --adm-text-light: #64748B;
    --adm-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Plus Jakarta Sans', 'Hind', sans-serif; }

body.adm-layout-body {
    background-color: var(--adm-bg);
    color: var(--adm-text-main);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
}

/* ==========================================================================
   1. LEFT SIDEBAR (Dark Navy)
   ========================================================================== */
.adm-sidebar {
    width: 230px;
    min-width: 230px;
    background: var(--adm-sidebar-bg);
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: transform 0.25s ease, width 0.25s ease;
}

.adm-sidebar-brand {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-gold-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.brand-gold-text {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #FBBF24;
    text-shadow: 0 0 12px rgba(251, 191, 36, 0.35);
}

.brand-gold-underline {
    height: 3px;
    width: 65px;
    background: linear-gradient(90deg, #F59E0B, #3B82F6);
    border-radius: 2px;
    margin-top: 4px;
}

.adm-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.adm-sidebar-nav::-webkit-scrollbar {
    width: 4px;
}
.adm-sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

.adm-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 14px;
    color: #CBD5E1;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
    white-space: nowrap;
}

.adm-nav-link i {
    font-size: 14px;
    width: 18px;
    text-align: center;
    color: #94A3B8;
    transition: color 0.15s;
}

.adm-nav-link:hover {
    background: var(--adm-sidebar-hover);
    color: #FFFFFF;
}

.adm-nav-link:hover i {
    color: #FFFFFF;
}

.adm-nav-link.active {
    background: var(--adm-sidebar-active);
    color: #FFFFFF;
    box-shadow: 0 3px 10px rgba(26, 115, 232, 0.4);
}

.adm-nav-link.active i {
    color: #FFFFFF;
}

/* ==========================================================================
   2. MAIN AREA & TOP HEADER
   ========================================================================== */
.adm-main-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--adm-bg);
}

.adm-header {
    height: 60px;
    background: var(--adm-header-bg);
    border-bottom: 1px solid var(--adm-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 90;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.adm-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    max-width: 550px;
}

.adm-btn-sidebar-toggle {
    background: none;
    border: none;
    font-size: 18px;
    color: var(--adm-text-muted);
    cursor: pointer;
    padding: 6px 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.adm-btn-sidebar-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

.adm-header-search {
    position: relative;
    width: 100%;
}

.adm-header-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--adm-text-light);
    font-size: 13px;
}

.adm-header-search input {
    width: 100%;
    padding: 8px 14px 8px 36px;
    font-size: 13px;
    border: 1px solid var(--adm-border);
    border-radius: 20px;
    background: var(--adm-bg);
    color: var(--adm-text-main);
    outline: none;
    transition: all 0.2s;
}

.adm-header-search input:focus {
    border-color: var(--adm-primary);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
    background: var(--adm-card-bg);
}

.adm-search-dropdown {
    position: absolute;
    top: 42px;
    left: 0;
    right: 0;
    background: var(--adm-card-bg);
    border: 1px solid var(--adm-border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    z-index: 200;
    max-height: 320px;
    overflow-y: auto;
    display: none;
    padding: 6px;
}

.adm-search-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--adm-text-main);
    text-decoration: none;
    cursor: pointer;
}
.adm-search-item:hover {
    background: rgba(26, 115, 232, 0.08);
}
.adm-search-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    text-transform: uppercase;
}

.adm-header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.adm-btn-website {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(26, 115, 232, 0.08);
    color: var(--adm-primary);
    border: 1px solid rgba(26, 115, 232, 0.2);
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}
.adm-btn-website:hover {
    background: var(--adm-primary);
    color: #FFFFFF;
}

/* Light / Dark Mode Toggle */
.adm-theme-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: var(--adm-bg);
    border: 1px solid var(--adm-border);
    padding: 4px 8px;
    border-radius: 20px;
    cursor: pointer;
    user-select: none;
}
.adm-theme-pill {
    width: 32px;
    height: 18px;
    background: #CBD5E1;
    border-radius: 20px;
    position: relative;
    transition: background 0.2s;
}
.adm-theme-knob {
    width: 14px;
    height: 14px;
    background: #F59E0B;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.2s;
}
[data-adm-theme="dark"] .adm-theme-pill {
    background: #3B82F6;
}
[data-adm-theme="dark"] .adm-theme-knob {
    transform: translateX(14px);
    background: #FFFFFF;
}

/* Notification Bell */
.adm-notify-wrap {
    position: relative;
    cursor: pointer;
    padding: 6px;
    color: var(--adm-text-muted);
}
.adm-notify-wrap i {
    font-size: 17px;
}
.adm-notify-badge {
    position: absolute;
    top: 2px;
    right: 0px;
    background: #EF4444;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 10px;
    line-height: 1;
}

/* Admin Profile */
.adm-profile-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    position: relative;
    padding: 4px 8px;
    border-radius: 8px;
    transition: background 0.15s;
}
.adm-profile-pill:hover {
    background: rgba(0, 0, 0, 0.04);
}
.adm-avatar-circle {
    width: 34px;
    height: 34px;
    background: #0A0E27;
    color: #F59E0B;
    border: 2px solid #F59E0B;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 12px;
}
.adm-profile-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.2;
}
.adm-profile-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--adm-text-main);
}
.adm-profile-role {
    font-size: 11px;
    color: var(--adm-text-muted);
}
.adm-profile-chevron {
    font-size: 11px;
    color: var(--adm-text-light);
}

.adm-profile-dropdown {
    position: absolute;
    top: 48px;
    right: 0;
    background: var(--adm-card-bg);
    border: 1px solid var(--adm-border);
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    min-width: 160px;
    display: none;
    z-index: 210;
    overflow: hidden;
}
.adm-profile-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 13px;
    color: var(--adm-text-main);
    text-decoration: none;
    transition: background 0.15s;
}
.adm-profile-dropdown a:hover {
    background: var(--adm-bg);
    color: var(--adm-primary);
}

/* ==========================================================================
   3. WORKSPACE & DASHBOARD GRID
   ========================================================================== */
.adm-content-container {
    padding: 20px 24px 40px;
    flex: 1;
}

/* 6 METRIC CARDS ROW */
.adm-metric-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.adm-metric-card {
    border-radius: var(--adm-radius);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--adm-shadow);
    transition: transform 0.15s ease;
}
.adm-metric-card:hover {
    transform: translateY(-2px);
}

.adm-metric-card.card-students { background: #EBF3FE; }
.adm-metric-card.card-courses  { background: #FEEBF0; }
.adm-metric-card.card-live     { background: #FEEBEB; }
.adm-metric-card.card-revenue  { background: #EAF8F0; }
.adm-metric-card.card-tests    { background: #F3EBFE; }
.adm-metric-card.card-active   { background: #FEF5EA; }

[data-adm-theme="dark"] .adm-metric-card.card-students { background: rgba(26, 115, 232, 0.15); border: 1px solid rgba(26, 115, 232, 0.3); }
[data-adm-theme="dark"] .adm-metric-card.card-courses  { background: rgba(225, 29, 72, 0.15); border: 1px solid rgba(225, 29, 72, 0.3); }
[data-adm-theme="dark"] .adm-metric-card.card-live     { background: rgba(220, 38, 38, 0.15); border: 1px solid rgba(220, 38, 38, 0.3); }
[data-adm-theme="dark"] .adm-metric-card.card-revenue  { background: rgba(5, 150, 105, 0.15); border: 1px solid rgba(5, 150, 105, 0.3); }
[data-adm-theme="dark"] .adm-metric-card.card-tests    { background: rgba(124, 58, 237, 0.15); border: 1px solid rgba(124, 58, 237, 0.3); }
[data-adm-theme="dark"] .adm-metric-card.card-active   { background: rgba(217, 119, 6, 0.15); border: 1px solid rgba(217, 119, 6, 0.3); }

.adm-metric-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.card-students .adm-metric-icon { background: rgba(26, 115, 232, 0.15); color: #1A73E8; }
.card-courses .adm-metric-icon  { background: rgba(225, 29, 72, 0.15); color: #E11D48; }
.card-live .adm-metric-icon     { background: rgba(220, 38, 38, 0.15); color: #DC2626; }
.card-revenue .adm-metric-icon  { background: rgba(5, 150, 105, 0.15); color: #059669; }
.card-tests .adm-metric-icon    { background: rgba(124, 58, 237, 0.15); color: #7C3AED; }
.card-active .adm-metric-icon   { background: rgba(217, 119, 6, 0.15); color: #D97706; }

.adm-metric-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.adm-metric-label {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--adm-text-muted);
}
.adm-metric-val-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 2px 0;
}
.adm-metric-val {
    font-size: 20px;
    font-weight: 800;
    color: var(--adm-text-main);
    line-height: 1.1;
}
.adm-metric-badge {
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}
.adm-metric-badge.green { color: #10B981; }
.adm-metric-badge.red-pill {
    background: #EF4444;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
}
.adm-metric-sub {
    font-size: 11px;
    color: var(--adm-text-muted);
}

/* ==========================================================================
   4. LIVE CLASS CONTROL & TODAY'S SCHEDULE (2 COLUMNS: 67% / 33%)
   ========================================================================== */
.adm-live-schedule-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

/* LIVE CLASS CONTROL CARD */
.adm-live-control-card {
    background: var(--adm-card-bg);
    border-radius: var(--adm-radius);
    border: 1px solid var(--adm-border);
    box-shadow: var(--adm-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.adm-live-header-bar {
    background: var(--adm-red-header);
    color: #FFFFFF;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.5px;
}
.adm-live-header-bar i {
    font-size: 15px;
}

.adm-live-body-grid {
    padding: 16px 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

.adm-live-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.adm-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.adm-field-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.adm-field-label {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--adm-text-muted);
}
.adm-select, .adm-input {
    width: 100%;
    padding: 7px 10px;
    font-size: 12.5px;
    border: 1px solid var(--adm-border);
    border-radius: 6px;
    background: var(--adm-bg);
    color: var(--adm-text-main);
    outline: none;
}
.adm-select:focus, .adm-input:focus {
    border-color: var(--adm-primary);
}

.adm-youtube-url-row {
    display: flex;
    gap: 8px;
}
.adm-btn-golive {
    background: #EF4444;
    color: #FFFFFF;
    border: none;
    padding: 7px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}
.adm-btn-golive:hover {
    background: #DC2626;
}

.adm-live-btns-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.adm-btn-start {
    background: #10B981;
    color: #FFFFFF;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.adm-btn-start:hover { background: #059669; }
.adm-btn-end {
    background: #EF4444;
    color: #FFFFFF;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.adm-btn-end:hover { background: #DC2626; }
.adm-btn-update {
    background: #1A73E8;
    color: #FFFFFF;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.adm-btn-update:hover { background: #1557B0; }
.adm-btn-preview {
    background: transparent;
    color: #8B5CF6;
    border: 1px solid #8B5CF6;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.adm-btn-preview:hover {
    background: rgba(139, 92, 246, 0.1);
}

/* LIVE PREVIEW BOX */
.adm-live-preview-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.adm-preview-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 7.2;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.adm-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.adm-preview-live-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #EF4444;
    color: #FFFFFF;
    font-size: 10.5px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.5px;
}
.adm-pulse-dot {
    width: 6px;
    height: 6px;
    background: #FFF;
    border-radius: 50%;
    animation: livePulse 1.2s infinite;
}
@keyframes livePulse {
    0% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.4); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.8; }
}

.adm-preview-stats-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--adm-bg);
    border: 1px solid var(--adm-border);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 11.5px;
}
.adm-live-stat-item {
    display: flex;
    flex-direction: column;
}
.adm-stat-k {
    font-size: 10px;
    font-weight: 600;
    color: var(--adm-text-muted);
}
.adm-stat-v {
    font-size: 12.5px;
    font-weight: 800;
    color: var(--adm-text-main);
    display: flex;
    align-items: center;
    gap: 4px;
}
.adm-status-live-dot {
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
}

/* TODAY'S SCHEDULE CARD */
.adm-schedule-card {
    background: var(--adm-card-bg);
    border-radius: var(--adm-radius);
    border: 1px solid var(--adm-border);
    box-shadow: var(--adm-shadow);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
}

.adm-card-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.adm-card-title {
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--adm-text-main);
}
.adm-btn-add-class {
    background: var(--adm-primary);
    color: #FFFFFF;
    border: none;
    font-size: 11.5px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
}

.adm-schedule-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.adm-schedule-table tr {
    border-bottom: 1px solid var(--adm-border);
}
.adm-schedule-table tr:last-child {
    border-bottom: none;
}
.adm-schedule-table td {
    padding: 8px 4px;
    vertical-align: middle;
}
.adm-sched-time {
    font-weight: 700;
    color: var(--adm-text-main);
    white-space: nowrap;
}
.adm-sched-class-pill {
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
    white-space: nowrap;
}
.adm-sched-class-pill.red   { background: #FEE2E2; color: #DC2626; }
.adm-sched-class-pill.blue  { background: #DBEAFE; color: #1D4ED8; }
.adm-sched-class-pill.green { background: #D1FAE5; color: #047857; }

.adm-sched-subject {
    font-weight: 600;
    color: var(--adm-text-main);
}
.adm-sched-status-badge {
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.adm-sched-status-badge.live      { background: #FEE2E2; color: #DC2626; }
.adm-sched-status-badge.upcoming  { background: #DBEAFE; color: #1D4ED8; }
.adm-sched-status-badge.completed { background: #E2E8F0; color: #475569; }

.adm-sched-actions {
    color: var(--adm-text-light);
    cursor: pointer;
    text-align: right;
    padding-right: 4px;
}

/* ==========================================================================
   5. QUICK ACTIONS (8 SHORTCUT CARDS ROW)
   ========================================================================== */
.adm-quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.adm-quick-card {
    background: var(--adm-card-bg);
    border: 1px solid var(--adm-border);
    border-radius: 10px;
    padding: 12px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: var(--adm-shadow);
    transition: all 0.15s ease;
    cursor: pointer;
    text-align: center;
}
.adm-quick-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(26, 115, 232, 0.12);
    border-color: rgba(26, 115, 232, 0.4);
}
.adm-quick-card i {
    font-size: 18px;
    color: var(--adm-primary);
}
.adm-quick-card span {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--adm-text-main);
    white-space: nowrap;
}

/* ==========================================================================
   6. 3-COLUMN SECTIONS (MIDDLE & BOTTOM GRIDS)
   ========================================================================== */
.adm-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.adm-table-card {
    background: var(--adm-card-bg);
    border-radius: var(--adm-radius);
    border: 1px solid var(--adm-border);
    box-shadow: var(--adm-shadow);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
}

.adm-card-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--adm-border);
}
.adm-card-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    font-weight: 800;
    color: var(--adm-text-main);
}
.adm-view-all-link {
    font-size: 12px;
    font-weight: 700;
    color: var(--adm-primary);
    text-decoration: none;
}
.adm-view-all-link:hover {
    text-decoration: underline;
}

/* MINI DATA TABLES */
.adm-mini-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}
.adm-mini-table th {
    text-align: left;
    padding: 6px 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--adm-text-muted);
    border-bottom: 1px solid var(--adm-border);
    text-transform: uppercase;
}
.adm-mini-table td {
    padding: 7px 4px;
    border-bottom: 1px solid var(--adm-border);
    vertical-align: middle;
}
.adm-mini-table tr:last-child td {
    border-bottom: none;
}

.adm-user-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}
.adm-mini-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    background: #E2E8F0;
}
.adm-user-name-text {
    font-weight: 600;
    color: var(--adm-text-main);
    white-space: nowrap;
}

.adm-status-dot-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
}
.adm-status-dot-pill.active  { color: #10B981; }
.adm-status-dot-pill.pending { color: #F59E0B; }
.adm-status-dot-pill.draft   { color: #F59E0B; }

.adm-status-badge-pill {
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
}
.adm-status-badge-pill.success   { background: #D1FAE5; color: #047857; }
.adm-status-badge-pill.pending   { background: #FEF3C7; color: #B45309; }
.adm-status-badge-pill.published { background: #D1FAE5; color: #047857; }
.adm-status-badge-pill.free      { background: #D1FAE5; color: #047857; }
.adm-status-badge-pill.paid      { background: #FEF3C7; color: #B45309; }

/* COURSE MANAGEMENT ROW */
.adm-course-thumb-mini {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    object-fit: cover;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.adm-price-original {
    text-decoration: line-through;
    color: var(--adm-text-muted);
    font-size: 11px;
    margin-right: 4px;
}
.adm-price-offer {
    font-weight: 800;
    color: var(--adm-text-main);
}

/* APP & WEBSITE SETTINGS LIST */
.adm-settings-key-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 4px;
}
.adm-setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    padding: 5px 0;
    border-bottom: 1px solid var(--adm-border);
}
.adm-setting-row:last-child {
    border-bottom: none;
}
.adm-setting-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--adm-text-muted);
    font-weight: 600;
}
.adm-setting-val {
    font-weight: 700;
    color: var(--adm-text-main);
}
.adm-setting-val.green {
    color: #10B981;
}

/* ==========================================================================
   7. MODALS
   ========================================================================== */
.adm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 14, 39, 0.75);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.adm-modal-card {
    background: var(--adm-card-bg);
    border-radius: 16px;
    border: 1px solid var(--adm-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 24px;
    position: relative;
    animation: modalPop 0.2s ease-out;
}
@keyframes modalPop {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
.adm-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: none;
    border: none;
    font-size: 18px;
    color: var(--adm-text-light);
    cursor: pointer;
}
.adm-modal-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--adm-text-main);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ==========================================================================
   8. RESPONSIVE BREAKPOINTS (Tablet & Mobile)
   ========================================================================== */
@media (max-width: 1200px) {
    .adm-metric-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .adm-quick-actions-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .adm-grid-3col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .adm-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        transform: translateX(-100%);
    }
    .adm-sidebar.open {
        transform: translateX(0);
        box-shadow: 4px 0 25px rgba(0, 0, 0, 0.5);
    }
    .adm-live-schedule-grid {
        grid-template-columns: 1fr;
    }
    .adm-live-body-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .adm-metric-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .adm-quick-actions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .adm-header-search {
        display: none;
    }
}
