/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
/* KNKYX Voiceâ„¢ â€“ Light Blue Theme                                             */
/* Cloud Telephony Platform                                                    */
/* â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */

/* â”€â”€ CSS Variables â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
:root {
    --bg:          #F0F4FA;
    --surface:     #FFFFFF;
    --surface2:    #F7F9FC;
    --border:      #E4EAF3;
    --text:        #1A2340;
    --text-2:      #5A6A8A;
    --text-3:      #8A9BBB;
    --accent:      #3B82F6;
    --accent-2:    #6366F1;
    --green:       #10B981;
    --orange:      #F59E0B;
    --red:         #EF4444;
    --cyan:        #06B6D4;
    --purple:      #8B5CF6;
    --sidebar-w:   68px;
    --radius:      16px;
    --radius-sm:   10px;
    --shadow:      0 2px 12px rgba(59,130,246,.08);
    --shadow-md:   0 8px 32px rgba(30,50,100,.10);
    /* compat aliases used by non-dashboard modules */
    --primary:         #3B82F6;
    --primary-dark:    #2563EB;
    --primary-light:   #60A5FA;
    --primary-glow:    rgba(59,130,246,.12);

    --bg-base:         #F0F4FA;
    --bg-secondary:    #FFFFFF;
    --bg-tertiary:     #F7F9FC;
    --bg-hover:        #EFF6FF;

    --border-light:    #D1D9EE;

    --text-primary:    #1A2340;
    --text-secondary:  #5A6A8A;
    --text-muted:      #8A9BBB;

    --success:         #10B981;
    --success-bg:      #ECFDF5;
    --warning:         #F59E0B;
    --warning-bg:      #FFFBEB;
    --danger:          #EF4444;
    --danger-bg:       #FEF2F2;
    --info:            #3B82F6;
    --info-bg:         #EFF6FF;

    --sidebar-width:   68px;
    --header-height:   64px;
    --radius:      16px;
    --radius-sm:   10px;
    --radius-lg:   16px;
    --transition:  all 0.2s;
    font-size: 14px;
}

/* â”€â”€ Reset â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: 'DM Sans', 'Segoe UI', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }

/* â”€â”€ Sidebar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.sidebar {
    width: var(--sidebar-w);
    background: var(--text);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0 24px;
    gap: 6px;
    position: fixed;
    left: 0; top: 0; bottom: 0;
    z-index: 100;
    box-shadow: 4px 0 24px rgba(26,35,64,.15);
}
.sidebar-logo {
    width: 38px; height: 38px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px; font-weight: 700; color: #fff;
    margin-bottom: 20px;
    box-shadow: 0 4px 16px rgba(99,102,241,.4);
    text-decoration: none;
}
.nav-item {
    width: 44px; height: 44px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: #8A9BBB;
    transition: all .2s;
    position: relative;
    text-decoration: none;
    background: none;
    border: none;
    padding: 0;
}
.nav-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-item.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    box-shadow: 0 4px 12px rgba(99,102,241,.35);
}
.nav-item svg { width: 20px; height: 20px; }
.nav-badge {
    position: absolute; top: 6px; right: 6px;
    width: 8px; height: 8px;
    background: var(--red);
    border-radius: 50%;
    border: 2px solid var(--text);
}
.sidebar-bottom { margin-top: auto; }

/* â”€â”€ Main â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.main {
    margin-left: var(--sidebar-w);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* â”€â”€ Topbar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.topbar {
    background: var(--surface);
    padding: 0 28px;
    height: 64px;
    display: flex; align-items: center;
    border-bottom: 1px solid var(--border);
    gap: 16px;
    position: sticky; top: 0; z-index: 50;
}
.topbar-title {
    font-size: 18px; font-weight: 700;
    letter-spacing: -.4px;
    flex: 1;
}
.topbar-title span { color: var(--accent); }
.live-badge {
    display: flex; align-items: center; gap: 7px;
    background: #ECFDF5; color: var(--green);
    padding: 6px 14px; border-radius: 999px;
    font-size: 12px; font-weight: 600;
    border: 1px solid #A7F3D0;
}
.live-dot {
    width: 7px; height: 7px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse-dot 1.6s infinite;
}
@keyframes pulse-dot {
    0%,100%{opacity:1;transform:scale(1)}
    50%{opacity:.5;transform:scale(1.3)}
}
.topbar-date {
    font-size: 12px; color: var(--text-2);
    font-family: 'DM Mono', monospace;
}
.avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--purple));
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; color: #fff;
    cursor: pointer;
    text-decoration: none;
}

/* â”€â”€ Content â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.content {
    padding: 24px 28px 40px;
    display: flex; flex-direction: column; gap: 24px;
}

/* â”€â”€ KPI Row â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.kpi-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 20px 22px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: transform .2s, box-shadow .2s;
    cursor: default;
}
.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.kpi-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: var(--radius) var(--radius) 0 0;
}
.kpi-card.blue::before   { background: linear-gradient(90deg, var(--accent), var(--cyan)); }
.kpi-card.green::before  { background: linear-gradient(90deg, var(--green), #34D399); }
.kpi-card.orange::before { background: linear-gradient(90deg, var(--orange), #FCD34D); }
.kpi-card.red::before    { background: linear-gradient(90deg, var(--red), #F87171); }
.kpi-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
    font-size: 18px;
}
.kpi-card.blue   .kpi-icon { background: #EFF6FF; color: var(--accent); }
.kpi-card.green  .kpi-icon { background: #ECFDF5; color: var(--green); }
.kpi-card.orange .kpi-icon { background: #FFFBEB; color: var(--orange); }
.kpi-card.red    .kpi-icon { background: #FEF2F2; color: var(--red); }
.kpi-label {
    font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .8px;
    color: var(--text-2); margin-bottom: 4px;
}
.kpi-value {
    font-size: 30px; font-weight: 700;
    letter-spacing: -1px; line-height: 1;
    color: var(--text);
}
.kpi-sub {
    font-size: 11px; color: var(--text-3);
    margin-top: 6px;
    display: flex; align-items: center; gap: 4px;
}
.kpi-delta     { font-weight: 600; }
.kpi-delta.up  { color: var(--green); }
.kpi-delta.down{ color: var(--red); }
/* backward compat */
.kpi-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.kpi-meta   { font-size: 11px; color: var(--text-3); margin-top: 6px; }

/* â”€â”€ Mid Row â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.mid-row {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 16px;
}

/* â”€â”€ Card Base â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.card {
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.card-header {
    padding: 18px 22px 0;
    display: flex; align-items: center; justify-content: space-between;
}
.card-title {
    font-size: 14px; font-weight: 700;
    display: flex; align-items: center; gap: 8px;
    color: var(--text);
}
.card-title-icon {
    width: 28px; height: 28px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
}
.card-action {
    font-size: 11px; font-weight: 600;
    color: var(--accent); cursor: pointer;
    padding: 4px 10px; border-radius: 6px;
    border: 1px solid #DBEAFE; background: #EFF6FF;
    transition: all .15s; text-decoration: none;
}
.card-action:hover { background: #DBEAFE; color: var(--accent); }
.card-body { padding: 20px 22px; }

/* â”€â”€ Chart Container â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.chart-wrap { padding: 16px 22px 20px; }
.chart-legend { display: flex; gap: 16px; margin-bottom: 12px; }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-2); }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; }
.bar-chart { width: 100%; display: flex; align-items: flex-end; gap: 6px; height: 120px; padding-bottom: 20px; position: relative; }
.bar-chart text { font-family: 'DM Sans', sans-serif; fill: #8A9BBB; font-size: 10px; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.bar-fill { width: 100%; border-radius: 4px 4px 0 0; min-height: 3px; transition: height .4s ease; }
.bar-label { font-size: 10px; color: var(--text-3); white-space: nowrap; }

/* â”€â”€ Donut Chart â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.donut-section { padding: 20px 22px; display: flex; flex-direction: column; gap: 16px; }
.donut-wrap { display: flex; align-items: center; gap: 20px; }
.donut-svg { flex-shrink: 0; }
.donut-stats { display: flex; flex-direction: column; gap: 10px; }
.donut-stat { display: flex; align-items: center; gap: 10px; }
.ds-color { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.ds-name { font-size: 12px; color: var(--text-2); flex: 1; }
.ds-val  { font-size: 12px; font-weight: 700; }
.ds-pct  { font-size: 11px; color: var(--text-3); }

/* ── Gauges ─────────────────────────────────────────────────────────────────── */
.donut-section { display: grid !important; grid-template-columns: 1fr 1fr; gap: 16px; }
.gauge-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.gauge-svg  { width: 70px; height: 70px; }
.gauge-label { font-size: 11px; color: var(--text-2); text-align: center; font-weight: 500; }

/* â”€â”€ Bottom Grid â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.bottom-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }

/* â”€â”€ Active Calls List â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.call-list { padding: 10px 0 4px; }
.call-item {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 22px; border-bottom: 1px solid var(--border); transition: background .15s;
}
.call-item:last-child { border-bottom: none; }
.call-item:hover { background: var(--surface2); }
.call-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.call-info { flex: 1; min-width: 0; }
.call-name { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.call-num  { font-size: 11px; color: var(--text-3); font-family: 'DM Mono', monospace; }
.call-badge {
    padding: 3px 8px; border-radius: 99px; font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .5px; flex-shrink: 0;
}
.call-badge.active { background: #ECFDF5; color: var(--green); }
.call-badge.queue  { background: #FFFBEB; color: var(--orange); }
.call-badge.ivr    { background: #EFF6FF; color: var(--accent); }
.call-time {
    font-family: 'DM Mono', monospace; font-size: 11px; color: var(--text-2);
    font-weight: 500; flex-shrink: 0;
}

/* â”€â”€ Extension Table â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ext-table { width: 100%; border-collapse: collapse; }
.ext-table th {

    font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .7px;
    color: var(--text-3); padding: 8px 22px; text-align: left;
    border-bottom: 1px solid var(--border); background: var(--surface2);
}
.ext-table td { padding: 10px 22px; font-size: 12px; border-bottom: 1px solid var(--border); }
.ext-table tr:last-child td { border-bottom: none; }
.ext-table tr:hover td { background: var(--surface2); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.status-dot.online  { background: var(--green);  box-shadow: 0 0 0 3px #D1FAE5; }
.status-dot.busy    { background: var(--red);    box-shadow: 0 0 0 3px #FEE2E2; }
.status-dot.offline { background: var(--text-3); }
.status-dot.ringing { background: var(--orange); box-shadow: 0 0 0 3px #FEF3C7; animation: pulse-ring .8s infinite; }
@keyframes pulse-ring { 0%,100%{opacity:1} 50%{opacity:.5} }
.ext-name { font-weight: 600; }
.ext-num  { font-family: 'DM Mono', monospace; color: var(--accent); font-size: 11px; }

/* Extension rows (div-based layout) */
.ext-row {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 16px; border-bottom: 1px solid var(--border); transition: background .15s;
}
.ext-row:last-child { border-bottom: none; }
.ext-row:hover { background: var(--surface2); }
.ext-row .ext-num { font-family: 'DM Mono', monospace; color: var(--accent); font-size: 12px; font-weight: 700; flex-shrink: 0; min-width: 36px; }
.ext-details { flex: 1; min-width: 0; }
.ext-details .ext-name  { font-size: 12px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ext-details .ext-status { font-size: 11px; color: var(--text-3); }
.ext-edit { font-size: 1rem; color: var(--text-3); text-decoration: none; transition: color .15s; }
.ext-edit:hover { color: var(--accent); }

/* Calls list */
.calls-list { padding: 4px 0; }
.call-item { background: transparent; }
.call-avatar { background: var(--accent); }

/* Recent calls */
.recent-calls { padding: 4px 0; }
.recent-call-row {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 16px; border-bottom: 1px solid var(--border); transition: background .15s;
}
.recent-call-row:last-child { border-bottom: none; }
.recent-call-row:hover { background: var(--surface2); }

/* Queue list */
.queue-list { padding: 8px 16px 12px; display: flex; flex-direction: column; gap: 8px; }
.queue-icon { width: 28px; height: 28px; border-radius: 8px; background: #EFF6FF; color: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.queue-info { flex: 1; min-width: 0; }
.queue-name { font-size: 12px; font-weight: 600; color: var(--text); }
.queue-meta { font-size: 11px; color: var(--text-3); }

/* IVR list */
.ivr-list { padding: 8px 16px 12px; display: flex; flex-direction: column; gap: 8px; }
.ivr-icon { width: 28px; height: 28px; border-radius: 8px; background: #F5F3FF; color: var(--purple); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ivr-info { flex: 1; min-width: 0; }
.ivr-name { font-size: 12px; font-weight: 600; color: var(--text); }
.ivr-meta { font-size: 11px; color: var(--text-3); }

/* Trunk list overrides */
.trunk-icon { width: 28px; height: 28px; border-radius: 8px; background: #F0FDF4; color: var(--green); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.trunk-info { flex: 1; min-width: 0; }
.trunk-name { font-size: 12px; font-weight: 600; color: var(--text); }
.trunk-meta { font-size: 11px; color: var(--text-3); font-family: 'DM Mono', monospace; }

/* â”€â”€ SIP Trunk cards â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.trunk-list { padding: 10px 22px 16px; display: flex; flex-direction: column; gap: 10px; }
.trunk-item {
    background: var(--surface2); border-radius: var(--radius-sm); border: 1px solid var(--border);
    padding: 12px 16px; display: flex; align-items: center; gap: 12px; transition: all .2s;
}
.trunk-item:hover { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,130,246,.06); }
.trunk-icon {
    width: 36px; height: 36px; border-radius: 9px;
    background: linear-gradient(135deg, var(--accent), var(--cyan));
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 16px; flex-shrink: 0;
}
.trunk-info { flex: 1; }
.trunk-name { font-size: 12px; font-weight: 700; }
.trunk-host { font-size: 10px; color: var(--text-3); font-family: 'DM Mono', monospace; }
.trunk-ch   { font-size: 11px; font-weight: 700; color: var(--text-2); text-align: right; }
.trunk-ch span { font-family: 'DM Mono', monospace; color: var(--accent); font-size: 14px; }
.trunk-status { padding: 3px 8px; border-radius: 99px; font-size: 10px; font-weight: 700; }
.trunk-status.ok   { background: #ECFDF5; color: var(--green); }
.trunk-status.warn { background: #FFFBEB; color: var(--orange); }

/* â”€â”€ IVR Menu â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ivr-list { padding: 10px 22px 16px; display: flex; flex-direction: column; gap: 8px; }
.ivr-item {
    display: flex; align-items: center; gap: 12px; padding: 10px 14px;
    border-radius: var(--radius-sm); background: var(--surface2); border: 1px solid var(--border);
    transition: all .2s; cursor: pointer;
}
.ivr-item:hover { border-color: var(--purple); background: #F5F3FF; }
.ivr-num {
    width: 30px; height: 30px; border-radius: 8px;
    background: linear-gradient(135deg, var(--purple), var(--accent-2));
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.ivr-name  { font-size: 12px; font-weight: 600; flex: 1; }
.ivr-sub   { font-size: 10px; color: var(--text-3); }
.ivr-calls { font-size: 11px; font-weight: 700; color: var(--accent); font-family: 'DM Mono', monospace; }

/* â”€â”€ Queue Section â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.queue-list { padding: 10px 22px 16px; display: flex; flex-direction: column; gap: 8px; }
.queue-item {
    background: var(--surface2); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 12px 14px; transition: all .2s;
}
.queue-item:hover { border-color: var(--cyan); }
.queue-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.queue-name { font-size: 12px; font-weight: 700; }
.queue-waiting { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 99px; }
.queue-waiting.high { background: #FEF2F2; color: var(--red); }
.queue-waiting.mid  { background: #FFFBEB; color: var(--orange); }
.queue-waiting.low  { background: #ECFDF5; color: var(--green); }
.queue-bar-bg { height: 5px; border-radius: 99px; background: var(--border); overflow: hidden; }
.queue-bar    { height: 100%; border-radius: 99px; transition: width .5s; }
.queue-meta { display: flex; justify-content: space-between; margin-top: 6px; font-size: 10px; color: var(--text-3); }

/* â”€â”€ Last Calls â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.recent-list { padding: 6px 0; }
.recent-item {
    display: flex; align-items: center; gap: 12px;
    padding: 9px 22px; border-bottom: 1px solid var(--border); transition: background .15s;
}
.recent-item:last-child { border-bottom: none; }
.recent-item:hover { background: var(--surface2); }
.call-dir { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.call-dir.in     { background: #ECFDF5; }
.call-dir.out    { background: #EFF6FF; }
.call-dir.missed { background: #FEF2F2; }
.recent-num  { font-family: 'DM Mono', monospace; font-size: 11px; font-weight: 500; color: var(--text); }
.recent-who  { font-size: 10px; color: var(--text-3); }
.recent-meta { margin-left: auto; text-align: right; }
.recent-dur  { font-family: 'DM Mono', monospace; font-size: 11px; font-weight: 600; color: var(--text-2); }
.recent-time { font-size: 10px; color: var(--text-3); }

/* â”€â”€ Gauge â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.gauge-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 16px 22px; }
.gauge-card {
    background: var(--surface2); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 14px;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.gauge-label { font-size: 10px; color: var(--text-3); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.gauge-val   { font-size: 22px; font-weight: 800; letter-spacing: -1px; line-height: 1; }
.gauge-sub   { font-size: 10px; color: var(--text-3); }

/* â”€â”€ Animations â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.fade-in { opacity: 0; transform: translateY(10px); animation: fadeUp .4s forwards; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
.kpi-card:nth-child(1) { animation-delay: .05s; }
.kpi-card:nth-child(2) { animation-delay: .10s; }
.kpi-card:nth-child(3) { animation-delay: .15s; }
.kpi-card:nth-child(4) { animation-delay: .20s; }

/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
/* COMPAT LAYER â€” used by extensions, trunks, queues, ivr, users, etc.        */
/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */

/* â”€â”€ Page Structure â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.app-layout { display: flex; min-height: 100vh; }
.main-content { flex: 1; margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.page-body    { flex: 1; padding: 24px 28px 40px; }

.page-header {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 16px; margin-bottom: 24px; flex-wrap: wrap;
}
.page-title   { font-size: 20px; font-weight: 700; color: var(--text); letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; line-height: 1.2; }
.page-subtitle{ font-size: 13px; color: var(--text-2); margin-top: 4px; }
.page-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* â”€â”€ Breadcrumb â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.breadcrumb {
    display: flex; align-items: center; gap: 6px; font-size: 12px;
    color: var(--text-3); margin-bottom: 20px; flex-wrap: wrap;
}
.breadcrumb a          { color: var(--text-2); }
.breadcrumb a:hover    { color: var(--accent); }
.breadcrumb-sep        { color: var(--text-3); }
.breadcrumb-current    { color: var(--text); }

/* â”€â”€ Buttons â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 16px; font-size: 13px; font-weight: 600;
    border-radius: var(--radius-sm); cursor: pointer;
    border: 1px solid transparent; transition: all .2s;
    text-decoration: none; white-space: nowrap; line-height: 1.4; font-family: inherit;
}
.btn-sm { padding: 5px 11px; font-size: 12px; gap: 5px; }
.btn-primary   { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; box-shadow: 0 4px 12px rgba(59,130,246,.35); }
.btn-secondary { background: var(--surface2); color: var(--text-2); border-color: var(--border); }
.btn-secondary:hover { color: var(--text); border-color: var(--text-3); background: var(--bg); }
.btn-danger    { background: #FEF2F2; color: var(--red); border-color: rgba(239,68,68,.3); }
.btn-danger:hover { background: var(--red); color: #fff; border-color: var(--red); }
.btn-success   { background: #ECFDF5; color: var(--green); border-color: rgba(16,185,129,.3); }
.btn-success:hover { background: var(--green); color: #fff; }
.btn-ghost     { background: transparent; color: var(--text-2); border-color: transparent; }
.btn-ghost:hover { color: var(--text); background: var(--surface2); }
.btn-call      { background: linear-gradient(135deg, var(--green), #059669); color: #fff; border-color: transparent; box-shadow: 0 4px 12px rgba(16,185,129,.3); }
.btn-call:hover{ transform: scale(1.05); color: #fff; }

/* â”€â”€ Tables â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead tr { border-bottom: 1px solid var(--border); }
th { padding: 10px 16px; text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); white-space: nowrap; background: var(--surface2); }
td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--text-2); }
tr:last-child td { border-bottom: none; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: var(--surface2); }
tbody tr:hover td { color: var(--text); }

/* â”€â”€ Badges â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.badge {
    display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px;
    font-size: 11px; font-weight: 700; border-radius: 20px;
    text-transform: uppercase; letter-spacing: .04em; white-space: nowrap;
}
.badge-success   { background: #ECFDF5; color: var(--green); }
.badge-danger    { background: #FEF2F2; color: var(--red); }
.badge-warning   { background: #FFFBEB; color: var(--orange); }
.badge-info      { background: #EFF6FF; color: var(--accent); }
.badge-secondary { background: var(--surface2); color: var(--text-2); }
.badge-primary   { background: #EFF6FF; color: var(--accent); }
.badge-active    { background: #EFF6FF; color: var(--accent); }
.badge-answered  { background: #ECFDF5; color: var(--green); }
.badge-missed    { background: #FEF2F2; color: var(--red); }
.badge-busy      { background: #FFFBEB; color: var(--orange); }
.badge-failed    { background: #FEF2F2; color: var(--red); }
.badge-ringing   { background: #FFFBEB; color: var(--orange); animation: blink 1s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.5} }

/* â”€â”€ Forms â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.form-full  { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 12px; font-weight: 600; color: var(--text-2); letter-spacing: .02em; }
.form-label.required::after { content: ' *'; color: var(--red); }
.form-control {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
    color: var(--text); padding: 9px 13px; font-size: 13px;
    transition: border-color .2s, box-shadow .2s;
    width: 100%; outline: none; font-family: inherit; appearance: none;
}
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,130,246,.1); }
.form-control::placeholder { color: var(--text-3); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 90px; }
.form-hint  { font-size: 11px; color: var(--text-3); }
.form-error { font-size: 11px; color: var(--red); }
.form-check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.form-check input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; padding-top: 16px; border-top: 1px solid var(--border); margin-top: 20px; }

/* â”€â”€ Alerts â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 13px; display: flex; align-items: flex-start; gap: 10px; border-left: 3px solid; margin-bottom: 16px; }
.alert-success { background: #ECFDF5; color: #065F46; border-color: var(--green); }
.alert-danger  { background: #FEF2F2; color: #991B1B; border-color: var(--red); }
.alert-warning { background: #FFFBEB; color: #92400E; border-color: var(--orange); }
.alert-info    { background: #EFF6FF; color: #1E40AF; border-color: var(--accent); }
.alert-close   { margin-left: auto; background: none; border: none; color: currentColor; cursor: pointer; opacity: .6; font-size: 16px; line-height: 1; padding: 0 2px; }
.alert-close:hover { opacity: 1; }

/* â”€â”€ AMI Status â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ami-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px; font-size: 11px; font-weight: 600; }
.ami-status.online  { background: #ECFDF5; color: var(--green); border: 1px solid #A7F3D0; }
.ami-status.offline { background: #FEF2F2; color: var(--red); border: 1px solid #FECACA; }
.ami-status.unknown { background: #FFFBEB; color: var(--orange); border: 1px solid #FDE68A; }
.ami-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse-dot 2s infinite; }

/* â”€â”€ Extension Badge â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ext-badge { display: inline-flex; align-items: center; gap: 6px; font-family: 'DM Mono', monospace; font-size: 12px; font-weight: 600; color: var(--accent); background: #EFF6FF; padding: 3px 10px; border-radius: 6px; border: 1px solid #BFDBFE; }
.phone-number        { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--text); letter-spacing: .03em; }
.font-mono           { font-family: 'DM Mono', monospace; }
.call-duration-live  { font-family: 'DM Mono', monospace; color: var(--accent); font-weight: 600; font-size: 13px; }
.live-call-row       { background: linear-gradient(90deg, rgba(59,130,246,.04), transparent); }

/* â”€â”€ Dial Pad â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.dial-pad-container { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px; }
.dial-input { width: 100%; max-width: 240px; text-align: center; font-size: 22px; font-family: 'DM Mono', monospace; font-weight: 600; letter-spacing: .1em; padding: 12px; background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--accent); }
.dial-grid { display: grid; grid-template-columns: repeat(3, 56px); gap: 8px; }
.dial-key { width: 56px; height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--surface2); border: 1px solid var(--border); border-radius: 50%; cursor: pointer; font-size: 18px; font-weight: 700; color: var(--text); transition: all .2s; user-select: none; }
.dial-key:hover { background: #EFF6FF; border-color: var(--accent); color: var(--accent); }
.dial-key:active { transform: scale(.95); }
.dial-key-sub { font-size: 8px; color: var(--text-3); font-weight: 400; letter-spacing: .08em; line-height: 1; }
.dial-call-btn { width: 56px; height: 56px; border-radius: 50%; background: var(--green); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; transition: all .2s; box-shadow: 0 4px 12px rgba(16,185,129,.4); }
.dial-call-btn:hover { transform: scale(1.1); }
.dial-clear-btn { width: 56px; height: 56px; border-radius: 50%; background: #FEF2F2; border: 1px solid rgba(239,68,68,.3); color: var(--red); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 18px; transition: all .2s; }
.dial-clear-btn:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* â”€â”€ Modals â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); backdrop-filter: blur(4px); z-index: 999; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.modal-backdrop.active { opacity: 1; visibility: visible; }
.modal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); width: 100%; max-width: 500px; max-height: 90vh; overflow-y: auto; transform: scale(.96) translateY(10px); transition: transform .2s ease; box-shadow: var(--shadow-md); margin: 16px; }
.modal-backdrop.active .modal { transform: scale(1) translateY(0); }
.modal.modal-lg { max-width: 720px; }
.modal.modal-sm { max-width: 380px; }
.modal-header { padding: 18px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.modal-title  { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; color: var(--text); }
.modal-close  { background: none; border: none; color: var(--text-3); cursor: pointer; font-size: 18px; padding: 4px 8px; border-radius: 6px; transition: all .2s; }
.modal-close:hover { color: var(--text); background: var(--surface2); }
.modal-body   { padding: 20px; }
.modal-footer { padding: 16px 20px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }

/* â”€â”€ Login Page â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); padding: 20px; }
.login-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; width: 100%; max-width: 420px; box-shadow: var(--shadow-md); }
.login-logo { text-align: center; margin-bottom: 32px; }
.login-logo-icon { width: 64px; height: 64px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-radius: 16px; display: flex; align-items: center; justify-content: center; font-size: 28px; margin: 0 auto 12px; box-shadow: 0 8px 24px rgba(59,130,246,.3); }
.login-logo h1 { font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: -.03em; }
.login-logo p  { font-size: 12px; color: var(--accent); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; margin-top: 2px; }

/* â”€â”€ Empty State â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-3); }
.empty-icon  { font-size: 48px; margin-bottom: 12px; opacity: .45; display: flex; align-items: center; justify-content: center; }
.empty-icon svg { display: block; }
.empty-title { font-size: 14px; font-weight: 600; color: var(--text-2); }
.empty-sub   { font-size: 13px; margin-top: 6px; }

/* â”€â”€ Utilities â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.mt-4  { margin-top: 4px; }    .mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }   .mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }.mb-24 { margin-bottom: 24px; }
.gap-8  { gap: 8px; }  .gap-12 { gap: 12px; }
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.text-primary   { color: var(--text)   !important; }
.text-secondary { color: var(--text-2) !important; }
.text-muted     { color: var(--text-3) !important; }
.text-success   { color: var(--green)  !important; }
.text-danger    { color: var(--red)    !important; }
.text-warning   { color: var(--orange) !important; }
.text-cyan      { color: var(--cyan)   !important; }
.font-bold { font-weight: 700; }
.truncate  { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-full    { width: 100%; }
.hidden    { display: none !important; }

/* â”€â”€ Responsive â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 1100px) {
    .kpi-grid    { grid-template-columns: repeat(2, 1fr); }
    .mid-row     { grid-template-columns: 1fr; }
    .bottom-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
    .form-grid { grid-template-columns: 1fr; }
    .kpi-grid  { grid-template-columns: repeat(2, 1fr); }
    .page-body { padding: 20px 16px; }
    .content   { padding: 20px 16px 32px; }
}
@media (max-width: 640px) {
    .bottom-grid { grid-template-columns: 1fr; }
    .page-header { flex-direction: column; }
}

