/**
 * VIDYAPANT ACADEMY - CALLING MANAGEMENT SYSTEM
 * Primary Stylesheet (Desktop & Admin)
 * Brand Navy: #0b192c / #0f172a, Royal Blue: #2563eb, Emerald: #16a34a, Amber: #f59e0b
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --brand-navy-dark: #0b192c;
    --brand-navy-sidebar: #0f172a;
    --brand-navy-hover: #1e293b;
    --brand-blue: #2563eb;
    --brand-blue-hover: #1d4ed8;
    --brand-blue-light: #eff6ff;
    --brand-green: #16a34a;
    --brand-green-light: #dcfce7;
    --brand-orange: #ea580c;
    --brand-orange-light: #ffedd5;
    --brand-purple: #7c3aed;
    --brand-purple-light: #ede9fe;
    --brand-red: #dc2626;
    --brand-red-light: #fee2e2;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --border-subtle: #f1f5f9;
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --sidebar-width: 250px;
    --header-height: 70px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-card: 16px;
    --radius-pill: 9999px;
    --radius-dock: 20px;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-soft-xs: 0 1px 2px rgba(0, 0, 0, 0.03);
    --shadow-soft-sm: 0 2px 6px -1px rgba(0, 0, 0, 0.04), 0 1px 3px -1px rgba(0, 0, 0, 0.02);
    --shadow-soft-md: 0 6px 16px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
    --shadow-soft-lg: 0 14px 28px -4px rgba(15, 23, 42, 0.07), 0 6px 12px -3px rgba(15, 23, 42, 0.04);
    --shadow-floating: 0 20px 40px -10px rgba(15, 23, 42, 0.25), 0 8px 16px -4px rgba(15, 23, 42, 0.08);
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.d-none {
    display: none !important;
}

.d-block {
    display: block !important;
}

.d-flex {
    display: flex !important;
}

/* ====================================================================
   LAYOUT: SIDEBAR & MAIN CONTENT
   ==================================================================== */
.app-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

.sidebar {
    width: var(--sidebar-width);
    background-color: var(--brand-navy-sidebar);
    color: #f8fafc;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

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

.sidebar-brand-icon {
    font-size: 28px;
    margin-bottom: 6px;
}

.sidebar-brand-title {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #ffffff;
    line-height: 1.2;
}

.sidebar-brand-sub {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #93c5fd;
    text-transform: uppercase;
    margin-top: 3px;
}

.sidebar-menu-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 16px 20px 8px;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 10px 12px;
    list-style: none;
}

.sidebar-nav-item {
    margin-bottom: 4px;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sidebar-nav-link:hover {
    color: #ffffff;
    background-color: var(--brand-navy-hover);
}

.sidebar-nav-link.active {
    background-color: var(--brand-blue);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.sidebar-nav-link .nav-icon {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
}

.sidebar-user-footer {
    padding: 14px 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #0b1322;
}

.user-pill {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
    border-radius: 50% !important;
    background: #1e3a8a;
    color: #ffffff;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700;
    font-size: 0.82rem;
    flex-shrink: 0 !important;
    aspect-ratio: 1 / 1 !important;
    overflow: hidden;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
}

.user-role {
    font-size: 0.7rem;
    color: #94a3b8;
    text-transform: capitalize;
}

/* ====================================================================
   MAIN CONTENT WRAPPER
   ==================================================================== */
.main-wrapper {
    margin-left: var(--sidebar-width);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0; /* Prevents flex children from causing horizontal scroll */
    width: calc(100% - var(--sidebar-width));
    max-width: calc(100% - var(--sidebar-width));
    transition: margin-left 0.22s cubic-bezier(0.4, 0, 0.2, 1), width 0.22s cubic-bezier(0.4, 0, 0.2, 1), max-width 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Top Header Bar */
.top-header {
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 900;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    gap: 14px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.welcome-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    letter-spacing: -0.2px;
}

.header-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    white-space: nowrap;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header-search {
    position: relative;
}

.header-search input {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    padding: 7px 14px 7px 34px;
    font-size: 0.82rem;
    width: 160px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-search input:focus {
    width: 220px;
    outline: none;
    border-color: var(--brand-blue);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.header-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
    pointer-events: none;
}

.header-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-secondary);
    position: relative;
    padding: 6px;
    border-radius: var(--radius-pill);
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-btn:hover {
    background: #f1f5f9;
    color: var(--text-primary);
}

.badge-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: var(--brand-red);
    border-radius: 50%;
    border: 2px solid #ffffff;
}

/* Page Body Container */
.page-content {
    padding: 20px 24px;
    flex: 1;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* ====================================================================
   DASHBOARD KPI CARDS (MATCHING REFERENCE IMAGE)
   ==================================================================== */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    width: 100%;
}

.kpi-card {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    padding: 18px 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft-sm);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 0;
}

.kpi-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft-md);
}

.kpi-icon-box {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.kpi-blue .kpi-icon-box { background: #2563eb; color: #ffffff; }
.kpi-orange .kpi-icon-box { background: #ea580c; color: #ffffff; }
.kpi-green .kpi-icon-box { background: #16a34a; color: #ffffff; }
.kpi-purple .kpi-icon-box { background: #7c3aed; color: #ffffff; }

.kpi-data {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.kpi-title {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.kpi-value {
    font-size: 1.55rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    margin-top: 2px;
}

/* ====================================================================
   DASHBOARD 2-COLUMN SECTION (Follow-ups & Donut Chart)
   ==================================================================== */
.dashboard-row {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
    gap: 16px;
    margin-bottom: 24px;
    width: 100%;
}

.card {
    background: var(--bg-card);
    border-radius: var(--radius-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft-sm);
    overflow: hidden;
    min-width: 0;
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: var(--shadow-soft-md);
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-action-link {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--brand-blue);
    text-decoration: none;
}

.card-action-link:hover {
    text-decoration: underline;
}

.card-body {
    padding: 20px;
}

/* ====================================================================
   TABLES & DATA GRIDS
   ==================================================================== */
.table-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    display: block;
    margin-bottom: 0;
}

.table-responsive::-webkit-scrollbar {
    height: 7px;
}

.table-responsive::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.table-responsive::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.custom-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.82rem;
}

.custom-table th {
    background: #f8fafc;
    color: var(--text-secondary);
    font-weight: 700;
    text-align: left;
    padding: 11px 14px;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
    text-transform: uppercase;
    font-size: 0.69rem;
    letter-spacing: 0.6px;
}

.custom-table td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-primary);
    vertical-align: middle;
    transition: background 0.15s ease;
}

.custom-table tbody tr:hover td {
    background-color: #f8fafc;
}

/* Action Icon Buttons */
.action-btn-group {
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-icon-circle {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 0.82rem;
    border: none;
    cursor: pointer;
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.15s ease, opacity 0.15s;
    flex-shrink: 0;
}

.btn-icon-circle:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    opacity: 0.95;
}

.btn-icon-call { background: #dcfce7; color: #16a34a; }
.btn-icon-wa { background: #22c55e; color: #ffffff; }
.btn-icon-sms { background: #0284c7; color: #ffffff; }
.btn-icon-edit { background: #fef3c7; color: #d97706; }
.btn-icon-view { background: #eff6ff; color: #2563eb; }
.btn-icon-delete { background: #fee2e2; color: #dc2626; }

/* Uniform Table Row Action Icons */
.btn-action-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.15s ease;
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
}

.btn-action-icon:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.btn-action-icon.btn-action-primary:hover {
    background: #eff6ff;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.btn-action-icon.btn-action-delete:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fca5a5;
}

.btn-action-icon svg {
    width: 14px;
    height: 14px;
}

/* Minimalist Role Badges */
.role-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 0.70rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
    text-transform: uppercase;
}

/* Filter & Search Toolbar */
.table-toolbar {
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--border-subtle);
    background: #ffffff;
    width: 100%;
    box-sizing: border-box;
}

.toolbar-search {
    flex: 1 1 200px;
    min-width: 180px;
    position: relative;
}

.toolbar-search input {
    width: 100%;
    padding: 8px 14px 8px 36px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-color);
    background: #f8fafc;
    font-size: 0.82rem;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.toolbar-search input:focus {
    outline: none;
    border-color: var(--brand-blue);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.toolbar-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.85rem;
    pointer-events: none;
}

.toolbar-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.custom-select {
    padding: 7px 14px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-color);
    font-size: 0.82rem;
    background: #f8fafc;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-select:focus {
    outline: none;
    border-color: var(--brand-blue);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ====================================================================
   BUTTONS
   ==================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 18px;
    font-size: 0.84rem;
    font-weight: 600;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.2px;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background-color: var(--brand-blue);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
    background-color: var(--brand-blue-hover);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
}

.btn-success {
    background-color: var(--brand-green);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(22, 163, 74, 0.25);
}

.btn-success:hover {
    background-color: #15803d;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.35);
}

.btn-warning {
    background-color: var(--brand-orange);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(234, 88, 12, 0.25);
}

.btn-warning:hover {
    background-color: #c2410c;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(234, 88, 12, 0.35);
}

.btn-secondary {
    background-color: #f8fafc;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: #f1f5f9;
    color: var(--text-primary);
    border-color: #cbd5e1;
}

.btn-danger {
    background-color: var(--brand-red);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.25);
}

.btn-danger:hover {
    background-color: #b91c1c;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.35);
}

.btn-sm {
    padding: 5px 12px;
    font-size: 0.76rem;
    border-radius: var(--radius-pill);
}

/* ====================================================================
   PAGINATION
   ==================================================================== */
.pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-top: 1px solid var(--border-subtle);
    font-size: 0.82rem;
    color: var(--text-secondary);
    flex-wrap: wrap;
    gap: 12px;
}

.pagination {
    display: flex;
    gap: 4px;
    list-style: none;
}

.page-item {
    display: inline-block;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border-color);
    background: #ffffff;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.page-link:hover {
    background: #f1f5f9;
    color: var(--text-primary);
}

.page-item.active .page-link {
    background: var(--brand-blue);
    color: #ffffff;
    border-color: var(--brand-blue);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.28);
}

/* ====================================================================
   DONUT CHART WIDGET
   ==================================================================== */
.donut-chart-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.donut-canvas-box {
    position: relative;
    width: 170px;
    height: 170px;
}

.donut-center-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.donut-center-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.donut-center-lbl {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
}

.donut-legend {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.donut-legend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
}

.donut-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

/* ====================================================================
   FORM STYLING
   ==================================================================== */
.form-section {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 24px;
    margin-bottom: 24px;
}

.form-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--brand-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
    padding-bottom: 8px;
    border-bottom: 2px solid #eff6ff;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-label.required::after {
    content: " *";
    color: var(--brand-red);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    font-size: 0.88rem;
    color: var(--text-primary);
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ====================================================================
   MODALS
   ==================================================================== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-backdrop.active {
    display: flex;
}

.modal-dialog {
    background: #ffffff;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
    animation: modalSlideUp 0.25s ease-out;
}

@keyframes modalSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    color: var(--text-muted);
    cursor: pointer;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

/* ====================================================================
   TOAST NOTIFICATIONS
   ==================================================================== */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast-item {
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--brand-blue);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 400px;
    font-size: 0.88rem;
    animation: toastIn 0.3s ease;
}

.toast-item.toast-success { border-left-color: var(--brand-green); }
.toast-item.toast-error { border-left-color: var(--brand-red); }
.toast-item.toast-warning { border-left-color: var(--brand-orange); }

@keyframes toastIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Responsive breakpoints */
@media (max-width: 1280px) {
    .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .header-search input { width: 160px; }
    .header-search input:focus { width: 200px; }
}

@media (max-width: 1024px) {
    .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dashboard-row { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main-wrapper { margin-left: 0; width: 100%; max-width: 100%; }
    .kpi-grid { grid-template-columns: 1fr; }
    .top-header { padding: 0 16px; }
    .welcome-title { font-size: 1rem; }
    .header-search { display: none; }
}

/* ====================================================================
   DATA PROTECTION & ANTI-SCREENSHOT SECURITY (Callers & Counsellors)
   ==================================================================== */
/* Data Security on Desktop */
@media (min-width: 992px) {
    body.role-caller:not(.mobile-layout),
    body.role-counsellor:not(.mobile-layout) {
        -webkit-user-select: none;
        user-select: none;
    }
}

@media print {
    body.role-caller,
    body.role-counsellor,
    body.mobile-layout.role-caller,
    body.mobile-layout.role-counsellor {
        display: none !important;
        visibility: hidden !important;
    }
}

/* ====================================================================
   CALL RESULT CUSTOM RADIO CARDS (CLEAN RESPONSIVE LAYOUT)
   ==================================================================== */
.custom-radio-card {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.custom-radio-card input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    pointer-events: none !important;
}

.custom-radio-card .custom-radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155;
    transition: all 0.15s ease-in-out;
    box-shadow: 0 1px 2px rgba(0,0,0,0.03);
    width: 100%;
    box-sizing: border-box;
}

.custom-radio-card .custom-radio-label:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.custom-radio-card input[type="radio"]:checked + .custom-radio-label {
    background: #eff6ff !important;
    border-color: #2563eb !important;
    color: #1d4ed8 !important;
    box-shadow: 0 0 0 1.5px #2563eb, 0 2px 6px rgba(37,99,235,0.18) !important;
}

.custom-radio-card input[name="call_result"][value="Call Connected"] + .custom-radio-label {
    background: #f0fdf4;
    border-color: #86efac;
    color: #15803d;
}

.custom-radio-card input[name="call_result"][value="Call Connected"]:checked + .custom-radio-label {
    background: #dcfce7 !important;
    border-color: #16a34a !important;
    color: #14532d !important;
    box-shadow: 0 0 0 1.5px #16a34a, 0 3px 8px rgba(22,163,74,0.22) !important;
}

.radio-circle-indicator {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: inline-block;
    flex-shrink: 0;
    position: relative;
    transition: all 0.15s ease;
}

.custom-radio-card input[type="radio"]:checked + .custom-radio-label .radio-circle-indicator {
    border-color: #2563eb;
    background: #2563eb;
}

.custom-radio-card input[type="radio"]:checked + .custom-radio-label .radio-circle-indicator::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #ffffff;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.custom-radio-card input[name="call_result"][value="Call Connected"]:checked + .custom-radio-label .radio-circle-indicator {
    border-color: #16a34a;
    background: #16a34a;
}

.call-result-grid, .call-response-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

@media (max-width: 480px) {
    .call-result-grid, .call-response-grid {
        grid-template-columns: 1fr;
    }
}

/* ====================================================================
   CLEAN ATTACHED BULK ACTION BAR & CONTROLS
   ==================================================================== */
#bulk_action_bar {
    position: static !important;
    background: #0f172a !important;
    border-radius: 8px 8px 0 0 !important;
    border: 1px solid #1e293b !important;
    border-bottom: none !important;
    box-shadow: none !important;
    color: #ffffff !important;
    padding: 10px 16px !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    box-sizing: border-box;
    animation: none !important;
}

#bulk_action_bar .custom-select {
    background: #1e293b !important;
    color: #ffffff !important;
    border: 1px solid #334155 !important;
    border-radius: 6px !important;
    padding: 5px 10px !important;
    font-size: 0.78rem !important;
}

#bulk_action_bar .custom-select:focus {
    border-color: var(--brand-blue) !important;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25) !important;
}

#bulk_action_bar input[type="text"].custom-select {
    color: #ffffff !important;
}

#bulk_action_bar .btn {
    border-radius: 6px !important;
    padding: 5px 12px !important;
    font-size: 0.76rem !important;
    font-weight: 700;
}

/* Soft Minimalist Card & Pill Helpers */
.card-soft {
    background: #ffffff;
    border-radius: var(--radius-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft-sm);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-soft:hover {
    box-shadow: var(--shadow-soft-md);
}

.pill-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.pill-tag:hover {
    transform: translateY(-1px);
}

/* ====================================================================
   VERSION 4.0: COLLAPSIBLE SIDEBAR & DESKTOP TOGGLE
   ==================================================================== */
body.sidebar-collapsed {
    --sidebar-width: 68px;
}
body.sidebar-collapsed .sidebar-brand-title,
body.sidebar-collapsed .sidebar-brand-sub,
body.sidebar-collapsed .sidebar-menu-label,
body.sidebar-collapsed .sidebar-nav-link span:not(.nav-icon),
body.sidebar-collapsed .user-info,
body.sidebar-collapsed .sidebar-user-footer > a,
body.sidebar-collapsed .sidebar-version-badge {
    display: none !important;
}
body.sidebar-collapsed .sidebar-brand {
    padding: 14px 6px;
}
body.sidebar-collapsed .sidebar-brand-logo {
    width: 36px !important;
    height: 36px !important;
    margin-bottom: 0 !important;
}
body.sidebar-collapsed .sidebar-nav {
    padding: 8px 6px;
}
body.sidebar-collapsed .sidebar-nav-link {
    justify-content: center;
    padding: 11px 0;
    gap: 0;
}
body.sidebar-collapsed .sidebar-nav-link .nav-icon {
    width: 26px;
    height: 26px;
    margin: 0;
}
body.sidebar-collapsed .sidebar-user-footer {
    justify-content: center;
    padding: 12px 6px;
}

/* Sidebar Brand Toggle Button */
.sidebar-collapse-brand-btn {
    position: absolute;
    right: 12px;
    top: 14px;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}
.sidebar-collapse-brand-btn:hover {
    background: #2563eb;
    color: #ffffff;
    border-color: #3b82f6;
    transform: scale(1.05);
}
body.sidebar-collapsed .sidebar-collapse-brand-btn {
    display: none !important;
}

/* Sidebar Bottom Collapse Bar */
.sidebar-collapse-bar {
    padding: 8px 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.14);
}
.sidebar-collapse-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #cbd5e1;
    padding: 8px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
}
.sidebar-collapse-btn:hover {
    background: rgba(37, 99, 235, 0.35);
    color: #ffffff;
    border-color: rgba(147, 197, 253, 0.5);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.sidebar-collapse-btn .collapse-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sidebar-collapse-btn .collapse-text {
    flex: 1;
    white-space: nowrap;
}
.sidebar-collapse-btn .collapse-arrow {
    font-size: 0.85rem;
    color: #94a3b8;
    transition: transform 0.2s ease;
}

body.sidebar-collapsed .sidebar-collapse-bar {
    padding: 8px 6px;
}
body.sidebar-collapsed .sidebar-collapse-btn {
    justify-content: center;
    padding: 9px 0;
    gap: 0;
}
body.sidebar-collapsed .sidebar-collapse-btn .collapse-text,
body.sidebar-collapsed .sidebar-collapse-btn .collapse-arrow {
    display: none !important;
}
body.sidebar-collapsed .sidebar-collapse-btn:hover {
    background: #2563eb !important;
    color: #ffffff !important;
}

/* Header Buttons Active States */
body.sidebar-collapsed #desktop_sidebar_toggle,
#desktop_sidebar_toggle.active {
    background: #eff6ff !important;
    color: #2563eb !important;
    border-color: #bfdbfe !important;
}
body.density-compact #density_toggle_btn,
#density_toggle_btn.active {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35) !important;
}
body.density-compact #density_toggle_btn svg,
#density_toggle_btn.active svg {
    stroke: #ffffff !important;
}

/* ====================================================================
   VERSION 4.0: DATA DENSITY TOGGLE (HIGH-DENSITY & RESPONSIVE COMPACT MODE)
   ==================================================================== */
body.density-compact .custom-table th,
body.density-compact .table th {
    padding: 5px 8px !important;
    font-size: 0.65rem !important;
    letter-spacing: 0.3px !important;
    line-height: 1.2 !important;
    height: auto !important;
}

body.density-compact .custom-table td,
body.density-compact .table td {
    padding: 4px 8px !important;
    font-size: 0.73rem !important;
    line-height: 1.25 !important;
    height: auto !important;
}

/* Tighter nested typography & margins in table cells */
body.density-compact .custom-table td > div,
body.density-compact .table td > div {
    margin-top: 1px !important;
    margin-bottom: 1px !important;
    line-height: 1.22 !important;
}

body.density-compact .custom-table td a,
body.density-compact .table td a {
    font-size: 0.77rem !important;
}

body.density-compact .custom-table td div[style*="font-size"],
body.density-compact .table td div[style*="font-size"] {
    font-size: 0.68rem !important;
    line-height: 1.2 !important;
}

body.density-compact .custom-table td span[style*="font-size"],
body.density-compact .table td span[style*="font-size"] {
    font-size: 0.65rem !important;
    line-height: 1.2 !important;
}

/* Compact badges & status indicators */
body.density-compact .badge,
body.density-compact .status-badge,
body.density-compact .role-badge,
body.density-compact span[style*="border-radius: 9999px"],
body.density-compact span[style*="border-radius:9999px"] {
    padding: 1px 5px !important;
    font-size: 0.63rem !important;
    line-height: 1.2 !important;
}

/* Action buttons in compact mode */
body.density-compact .btn-action-icon {
    width: 24px !important;
    height: 24px !important;
    font-size: 0.68rem !important;
    border-radius: 4px !important;
}
body.density-compact .btn-action-icon svg {
    width: 11px !important;
    height: 11px !important;
}
body.density-compact .btn-sm {
    padding: 2px 7px !important;
    font-size: 0.69rem !important;
    height: auto !important;
}

/* Toolbar & Smart Views in compact mode */
body.density-compact .table-toolbar {
    padding: 7px 14px !important;
    gap: 6px !important;
}
body.density-compact .table-toolbar .custom-select,
body.density-compact .table-toolbar select,
body.density-compact .table-toolbar input {
    padding: 3px 8px !important;
    font-size: 0.73rem !important;
    height: 28px !important;
}
body.density-compact .smart-views-bar {
    margin-bottom: 6px !important;
    gap: 4px !important;
}
body.density-compact .smart-view-pill {
    padding: 3px 8px !important;
    font-size: 0.69rem !important;
}
body.density-compact .smart-view-pill .pill-cnt {
    padding: 0 4px !important;
    font-size: 0.63rem !important;
}

/* Responsive Table Scrolling in Compact Mode */
body.density-compact .table-responsive {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
}
body.density-compact .table-sticky-col-1,
body.density-compact .table-sticky-col-2 {
    font-size: 0.73rem !important;
}

/* ====================================================================
   VERSION 4.0: STICKY TABLE COLUMNS FOR HORIZONTAL SCROLL
   ==================================================================== */
.table-sticky-col-1 {
    position: sticky !important;
    left: 0 !important;
    z-index: 5 !important;
    background-color: #ffffff;
}
thead .table-sticky-col-1 {
    background-color: #f8fafc !important;
}
.table-sticky-col-2 {
    position: sticky !important;
    left: 38px !important;
    z-index: 5 !important;
    background-color: #ffffff;
    box-shadow: 4px 0 6px -2px rgba(0,0,0,0.05);
}
thead .table-sticky-col-2 {
    background-color: #f8fafc !important;
}

/* ====================================================================
   VERSION 4.0: SLIDE-OVER LEAD INSPECTOR DRAWER
   ==================================================================== */
.lead-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1090;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.lead-drawer-backdrop.active {
    opacity: 1;
    visibility: visible;
}
.lead-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 440px;
    max-width: 90vw;
    background: #ffffff;
    box-shadow: -10px 0 35px rgba(15, 23, 42, 0.2);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.lead-drawer.active {
    transform: translateX(0);
}
.lead-drawer-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
}
.lead-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}
.lead-drawer-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border-color);
    background: #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

/* ====================================================================
   VERSION 4.0: COMMAND PALETTE (CTRL+K SPOTLIGHT SEARCH)
   ==================================================================== */
.cmd-palette-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 2000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}
.cmd-palette-backdrop.active {
    opacity: 1;
    visibility: visible;
}
.cmd-palette {
    width: 580px;
    max-width: 92vw;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.3);
    border: 1px solid #cbd5e1;
    overflow: hidden;
    transform: scale(0.96) translateY(-10px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.cmd-palette-backdrop.active .cmd-palette {
    transform: scale(1) translateY(0);
}
.cmd-palette-header {
    display: flex;
    align-items: center;
    padding: 14px 18px;
    border-bottom: 1px solid #e2e8f0;
    gap: 12px;
}
.cmd-palette-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    background: transparent;
}
.cmd-palette-results {
    max-height: 380px;
    overflow-y: auto;
    padding: 10px;
}
.cmd-group-label {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #94a3b8;
    padding: 8px 14px 4px;
    letter-spacing: 0.5px;
}
.cmd-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 8px;
    color: #1e293b;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.15s ease;
}
.cmd-item:hover, .cmd-item.selected {
    background: #eff6ff;
    color: #1d4ed8;
}
.cmd-item-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #f1f5f9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    color: #475569;
}
.cmd-item:hover .cmd-item-icon, .cmd-item.selected .cmd-item-icon {
    background: #dbeafe;
    color: #1d4ed8;
}
.cmd-palette-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    font-size: 0.72rem;
    color: #64748b;
}
.kbd-pill {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 2px 6px;
    font-family: monospace;
    font-size: 0.70rem;
    font-weight: 700;
    color: #475569;
    box-shadow: 0 1px 1px rgba(0,0,0,0.06);
}

/* ====================================================================
   VERSION 4.0: SMART VIEWS QUICK FILTER PILLS
   ==================================================================== */
.smart-views-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
}
.smart-view-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    font-size: 0.76rem;
    font-weight: 700;
    color: #475569;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.15s ease;
}
.smart-view-pill:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
}
.smart-view-pill.active {
    background: #2563eb;
    color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}
.smart-view-pill.active .pill-cnt {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}
.smart-view-pill .pill-cnt {
    background: #f1f5f9;
    color: #64748b;
    padding: 1px 6px;
    border-radius: 9999px;
    font-size: 0.70rem;
}

/* ====================================================================
   VERSION 4.0: VTSE PIPELINE VISUAL FUNNEL
   ==================================================================== */
.vtse-funnel-bar {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
@media (max-width: 992px) {
    .vtse-funnel-bar {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 576px) {
    .vtse-funnel-bar {
        grid-template-columns: 1fr;
    }
}
.funnel-step {
    padding: 12px 14px;
    border-right: 1px solid #f1f5f9;
    position: relative;
    transition: background 0.15s ease;
}
.funnel-step:last-child {
    border-right: none;
}
.funnel-step:hover {
    background: #f8fafc;
}
.funnel-step-name {
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}
.funnel-step-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    margin-top: 2px;
}
.funnel-step-rate {
    font-size: 0.70rem;
    font-weight: 700;
    color: #16a34a;
    margin-top: 2px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}



