*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --sidebar-w: 248px;

    /* Dark sidebar palette */
    --sb-bg:        #0d1117;
    --sb-surface:   #161b22;
    --sb-border:    rgba(255,255,255,.07);
    --sb-text:      #8b949e;
    --sb-text-hi:   #e6edf3;
    --sb-accent:    #388bfd;
    --sb-accent-bg: rgba(56,139,253,.12);

    /* Main content palette */
    --bg:        #f3f4f8;
    --surface:   #ffffff;
    --surface2:  #f8f9fc;
    --border:    #e5e7ef;
    --border2:   #d0d5e1;
    --text:      #0f1117;
    --text2:     #4a5068;
    --text3:     #8891aa;

    /* Accent */
    --blue:      #2563eb;
    --blue-l:    #dbeafe;
    --green:     #059669;
    --green-l:   #d1fae5;
    --amber:     #d97706;
    --amber-l:   #fef3c7;
    --red:       #dc2626;
    --red-l:     #fee2e2;
    --purple:    #7c3aed;
    --purple-l:  #ede9fe;

    --radius:    8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
    --shadow:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,.08);
}

html, body { height: 100%; }

body {
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    display: flex;
}

/* ─────────────────────────────────────────────
   SIDEBAR
───────────────────────────────────────────── */
.sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: var(--sb-bg);
    height: 100vh;
    position: fixed;
    top: 0; left: 0;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--sb-border);
    z-index: 100;
    overflow: hidden;
    transition: width .22s cubic-bezier(.4,0,.2,1);
}

.sidebar.collapsed { width: 60px; }

/* Logo */
.sb-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 16px 16px;
    border-bottom: 1px solid var(--sb-border);
    flex-shrink: 0;
}

.sb-logo-icon {
    width: 34px; height: 34px;
    background: linear-gradient(135deg, #388bfd, #8957e5);
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 0 16px rgba(56,139,253,.35);
}

.sb-logo-text { overflow: hidden; }
.sb-logo-name {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--sb-text-hi);
    white-space: nowrap;
    letter-spacing: -.01em;
}
.sb-logo-role {
    font-size: 10.5px;
    color: var(--sb-text);
    white-space: nowrap;
    letter-spacing: .04em;
    text-transform: uppercase;
}

/* Admin badge */
.sb-admin {
    margin: 12px 12px 8px;
    background: var(--sb-surface);
    border: 1px solid var(--sb-border);
    border-radius: var(--radius);
    padding: 10px 11px;
    display: flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
    overflow: hidden;
}

.sb-avatar {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #388bfd22, #8957e522);
    border: 1.5px solid rgba(56,139,253,.3);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #388bfd;
    flex-shrink: 0;
}

.sb-admin-info { overflow: hidden; }
.sb-admin-name {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--sb-text-hi);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sb-admin-role {
    font-size: 10px;
    color: var(--sb-text);
    white-space: nowrap;
}

/* Nav */
.sb-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 0 8px;
    scrollbar-width: thin;
    scrollbar-color: var(--sb-border) transparent;
}

.sb-section {
    padding: 14px 18px 5px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--sb-text);
    white-space: nowrap;
    overflow: hidden;
    opacity: 1;
    transition: opacity .15s;
}

.sidebar.collapsed .sb-section { opacity: 0; }

.sb-link {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 1px 8px;
    padding: 8px 10px;
    border-radius: var(--radius);
    color: var(--sb-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 450;
    cursor: pointer;
    border: none;
    background: none;
    width: calc(100% - 16px);
    text-align: left;
    transition: background .12s, color .12s;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}

.sb-link:hover {
    background: rgba(255,255,255,.05);
    color: var(--sb-text-hi);
}

.sb-link.active {
    background: var(--sb-accent-bg);
    color: var(--sb-accent);
    font-weight: 500;
}

.sb-link svg {
    width: 16px; height: 16px;
    flex-shrink: 0;
    opacity: .8;
}

.sb-link.active svg { opacity: 1; }

.sb-link-label { flex: 1; }

.sb-badge {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 20px;
    background: var(--red);
    color: #fff;
    line-height: 1.5;
}

.sb-badge.amber { background: var(--amber); }
.sb-badge.blue  { background: var(--blue); }

/* Tooltip on collapsed */
.sb-link .sb-tooltip {
    position: absolute;
    left: calc(100% + 12px);
    top: 50%; transform: translateY(-50%);
    background: #1c2333;
    color: var(--sb-text-hi);
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity .12s;
    z-index: 200;
    border: 1px solid var(--sb-border);
}

.sidebar.collapsed .sb-link:hover .sb-tooltip { opacity: 1; }

/* Footer */
.sb-footer {
    border-top: 1px solid var(--sb-border);
    padding: 10px 8px;
    flex-shrink: 0;
}

.sb-collapse-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: var(--radius);
    color: var(--sb-text);
    cursor: pointer;
    background: none;
    border: none;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    width: 100%;
    text-align: left;
    transition: background .12s, color .12s;
    white-space: nowrap;
    overflow: hidden;
}

.sb-collapse-btn:hover { background: rgba(255,255,255,.05); color: var(--sb-text-hi); }
.sb-collapse-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.sb-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: var(--radius);
    color: #f85149;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    width: 100%;
    text-align: left;
    transition: background .12s;
    white-space: nowrap;
    overflow: hidden;
}
.sb-logout:hover { background: rgba(248,81,73,.08); }
.sb-logout svg { width: 16px; height: 16px; flex-shrink: 0; opacity: .8; }

/* ─────────────────────────────────────────────
   MAIN
───────────────────────────────────────────── */
.main {
    margin-left: var(--sidebar-w);
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    transition: margin-left .22s cubic-bezier(.4,0,.2,1);
}

.main.expanded { margin-left: 60px; }

/* Topbar */
.topbar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-left { display: flex; align-items: center; gap: 16px; }

.page-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -.02em;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text3);
}

.breadcrumb a { color: var(--text3); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb span { opacity: .5; }

.topbar-right { display: flex; align-items: center; gap: 8px; }

.icon-btn {
    width: 34px; height: 34px;
    display: flex; align-items: center; justify-content: center;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    color: var(--text2);
    position: relative;
    transition: all .12s;
}

.icon-btn:hover { background: var(--border); color: var(--text); }
.icon-btn svg { width: 16px; height: 16px; }

.notif-dot {
    position: absolute;
    top: 6px; right: 6px;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--red);
    border: 2px solid var(--surface);
}

/* Notification dropdown */
.notif-dropdown {
    position: absolute;
    top: 44px; right: 0;
    width: 320px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: none;
    z-index: 100;
}

.notif-dropdown.open { display: block; }

.notif-header {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.notif-header strong { font-size: 13px; font-weight: 600; }
.notif-mark-all { font-size: 11.5px; color: var(--blue); cursor: pointer; background: none; border: none; font-family: inherit; }
.notif-mark-all:hover { text-decoration: underline; }

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 11px 16px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background .1s;
    text-decoration: none;
    color: inherit;
}

.notif-item:hover { background: var(--surface2); }
.notif-item:last-child { border-bottom: none; }
.notif-item.unread { background: #eff6ff; }

.notif-icon {
    font-size: 18px;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    background: var(--surface2);
    border-radius: var(--radius);
}

.notif-body { flex: 1; min-width: 0; }
.notif-title { font-size: 12.5px; font-weight: 500; margin-bottom: 1px; }
.notif-msg { font-size: 11.5px; color: var(--text3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif-time { font-size: 10.5px; color: var(--text3); margin-top: 2px; }

/* ─────────────────────────────────────────────
   PAGE CONTENT
───────────────────────────────────────────── */
.content { padding: 24px; flex: 1; overflow-y: auto; }

/* ─────────────────────────────────────────────
   ALERT BANNER
───────────────────────────────────────────── */
.alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 13px;
    margin-bottom: 18px;
}
.alert-warning {
    background: var(--amber-l);
    color: #92400e;
    border: 1px solid #fde68a;
}

/* ─────────────────────────────────────────────
   STAT CARDS
───────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: box-shadow .15s;
}

.stat:hover { box-shadow: var(--shadow-md); }

.stat-accent {
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.stat-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 17px;
    margin-bottom: 12px;
}

.stat-label {
    font-size: 11.5px;
    font-weight: 500;
    color: var(--text3);
    letter-spacing: .02em;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.stat-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--text);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: -.03em;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-meta {
    font-size: 12px;
    color: var(--text3);
    display: flex;
    align-items: center;
    gap: 4px;
}

.stat-meta .up   { color: var(--green); font-weight: 500; }
.stat-meta .down { color: var(--red); font-weight: 500; }

/* ─────────────────────────────────────────────
   GRID LAYOUT
───────────────────────────────────────────── */
.grid-2-1 {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 16px;
    margin-bottom: 16px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

/* ─────────────────────────────────────────────
   CARDS
───────────────────────────────────────────── */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 7px;
}

.card-title-icon {
    width: 22px; height: 22px;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px;
}

.card-body { padding: 18px; }
.card-body-flush { padding: 0; }

/* ─────────────────────────────────────────────
   CHART AREA
───────────────────────────────────────────── */
#revenueChart { min-height: 260px; }

/* ─────────────────────────────────────────────
   TABLES
───────────────────────────────────────────── */
.table { width: 100%; border-collapse: collapse; }

.table thead th {
    padding: 9px 14px;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: .05em;
    background: var(--surface2);
    border-bottom: 1px solid var(--border);
}

.table tbody td {
    padding: 11px 14px;
    font-size: 13px;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: #f8f9fc; }

/* ─────────────────────────────────────────────
   BADGES
───────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.badge-pending   { background: var(--amber-l);  color: #92400e; }
.badge-approved  { background: var(--green-l);  color: #065f46; }
.badge-rejected  { background: var(--red-l);    color: #991b1b; }
.badge-live      { background: var(--blue-l);   color: #1d4ed8; }
.badge-ended     { background: #f3f4f6;          color: #6b7280; }
.badge-paid      { background: var(--green-l);  color: #065f46; }
.badge-failed    { background: var(--red-l);    color: #991b1b; }
.badge-suspended { background: var(--red-l);    color: #991b1b; }
.badge-featured  { background: var(--purple-l); color: #5b21b6; }
.badge-flash     { background: #fff7ed;          color: #c2410c; }

/* ─────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: var(--radius);
    font-size: 12.5px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all .12s;
    white-space: nowrap;
}

.btn-sm { padding: 4px 10px; font-size: 12px; }

.btn-primary { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-primary:hover { background: #1d4ed8; }

.btn-ghost { background: var(--surface2); color: var(--text2); border-color: var(--border2); }
.btn-ghost:hover { background: var(--border); }

.btn-success { background: var(--green); color: #fff; }
.btn-success:hover { background: #047857; }

.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #b91c1c; }

/* ─────────────────────────────────────────────
   PENDING ACTIONS (mini cards)
───────────────────────────────────────────── */
.pending-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-bottom: 1px solid var(--border);
    transition: background .1s;
}

.pending-item:last-child { border-bottom: none; }
.pending-item:hover { background: var(--surface2); }

.pending-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dbeafe, #ede9fe);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--blue);
    flex-shrink: 0;
}

.pending-info { flex: 1; min-width: 0; }
.pending-name { font-size: 13px; font-weight: 500; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pending-sub  { font-size: 11.5px; color: var(--text3); margin-top: 1px; }

/* ─────────────────────────────────────────────
   ACTIVITY TIMELINE
───────────────────────────────────────────── */
.activity-item {
    display: flex;
    gap: 12px;
    padding: 10px 18px;
    border-bottom: 1px solid var(--border);
}

.activity-item:last-child { border-bottom: none; }

.activity-dot-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 3px;
}

.activity-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--blue);
    flex-shrink: 0;
}

.activity-line {
    width: 1px;
    flex: 1;
    background: var(--border);
    margin-top: 4px;
}

.activity-item:last-child .activity-line { display: none; }

.activity-body { flex: 1; min-width: 0; padding-bottom: 8px; }
.activity-text { font-size: 13px; color: var(--text); line-height: 1.5; }
.activity-text strong { font-weight: 600; }
.activity-time { font-size: 11px; color: var(--text3); margin-top: 3px; }

/* ─────────────────────────────────────────────
   QUICK ACTIONS
───────────────────────────────────────────── */
.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 14px;
}

.qa-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    color: var(--text2);
    font-size: 12.5px;
    font-weight: 500;
    transition: all .12s;
}

.qa-btn:hover {
    background: var(--blue-l);
    border-color: #bfdbfe;
    color: var(--blue);
}

.qa-btn .qa-icon {
    width: 28px; height: 28px;
    border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
}

/* ─────────────────────────────────────────────
   LIVE AUCTION TICKER
───────────────────────────────────────────── */
.live-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    background: var(--red-l);
    color: var(--red);
    border-radius: 20px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .04em;
}

.live-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--red);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50% { opacity: .5; transform: scale(.8); }
}

/* ─────────────────────────────────────────────
   REVENUE SUMMARY ROW
───────────────────────────────────────────── */
.rev-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
}

.rev-row:last-child { border-bottom: none; }
.rev-label { font-size: 12.5px; color: var(--text2); display: flex; align-items: center; gap: 7px; }
.rev-label span { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.rev-value { font-size: 13px; font-weight: 600; font-family: 'JetBrains Mono', monospace; color: var(--text); }

/* ─────────────────────────────────────────────
   PROGRESS BAR
───────────────────────────────────────────── */
.progress-bar {
    height: 5px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 4px;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width .5s ease;
}

/* ─────────────────────────────────────────────
   MODAL
───────────────────────────────────────────── */
.modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.4);
    backdrop-filter: blur(3px);
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal-backdrop.open { display: flex; }

.modal {
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 60px rgba(0,0,0,.15);
    width: 480px;
    max-width: 96vw;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border);
}

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title { font-size: 14px; font-weight: 600; }
.modal-close { background: none; border: none; cursor: pointer; color: var(--text3); font-size: 20px; line-height: 1; padding: 2px; }
.modal-close:hover { color: var(--text); }
.modal-body { padding: 20px; }
.modal-footer { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }

/* ─────────────────────────────────────────────
   FORM
───────────────────────────────────────────── */
.form-group { margin-bottom: 14px; }
.form-label { display: block; font-size: 12.5px; font-weight: 500; color: var(--text2); margin-bottom: 6px; }
.form-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background: var(--surface);
    outline: none;
    transition: border-color .12s, box-shadow .12s;
}
.form-input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

/* ─────────────────────────────────────────────
   UTILITIES
───────────────────────────────────────────── */
.text-mono { font-family: 'JetBrains Mono', monospace; }
.text-green { color: var(--green); }
.text-red   { color: var(--red); }
.text-blue  { color: var(--blue); }
.text-muted { color: var(--text3); }
.text-sm    { font-size: 12px; }
.flex       { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 10px; }
.mb-3 { margin-bottom: 16px; }
.w-full { width: 100%; }
.font-semibold { font-weight: 600; }

/* ─────────────────────────────────────────────
   SCROLLBAR
───────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 4px; }

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 1280px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-2-1   { grid-template-columns: 1fr; }
}
@media (max-width: 1024px) {
    .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    :root { --sidebar-w: 0px; }
    .sidebar { width: 248px; transform: translateX(-100%); }
    .sidebar.mobile-open { transform: translateX(0); }
    .main { margin-left: 0 !important; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .content { padding: 14px; }
}
  
  .astrick {
    color: red;
    font-weight: bold;
}



/* this css for text area of ckeditor  */

.editor-wrapper {
    min-height: 200px;
    max-height: 300px;
    overflow-y: auto;
}

.editor-wrapper textarea {
    min-height: 100%;
    resize: vertical;
    /* optional: allow vertical resizing */
}


/* arrange the item of table in vertically center of table 
 */
.v-center {
    vertical-align: middle;
}


/* intially hide form in a page  */
#create-form-section {
    display: none;
}


.v-center .btn-success, .v-center .btn-danger {
    margin-bottom: 0.5rem;
    /* width: 100%; */
}