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

:root {
    --bg-dark: #f8fafc; /* Premium light body background */
    --bg-sidebar: #ffffff; /* White sidebar */
    --bg-card: #ffffff; /* White cards */
    --border-color: #e2e8f0; /* Crisp thin slate borders */
    --border-color-bni: #e2e8f0;
    --text-primary: #0f172a; /* Slate 900 */
    --text-secondary: #475569; /* Slate 600 */
    --text-muted: #64748b; /* Slate 500 */
    --accent-blue: #0176d3; /* Salesforce Blue */
    --accent-blue-hover: #015ba2;
    --accent-indigo: #4f46e5; /* Modern Indigo */
    --accent-purple: #7c3aed;
    --accent-emerald: #10b981;
    --accent-emerald-hover: #059669;
    --accent-rose: #ef4444;
    --accent-amber: #f59e0b;
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition-smooth: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body.theme-dark {
    --bg-dark: #090d16;
    --bg-sidebar: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.45);
    --border-color: rgba(255, 255, 255, 0.06);
    --border-color-bni: rgba(255, 255, 255, 0.06);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-blue: #3b82f6;
    --accent-blue-hover: #1d4ed8;
    --accent-indigo: #6366f1;
    --accent-purple: #8b5cf6;
    --accent-emerald: #10b981;
    --accent-emerald-hover: #047857;
    --accent-rose: #f43f5e;
    --accent-amber: #f59e0b;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    min-height: 100vh;
    overflow-x: hidden;
    display: block;
}

body.theme-dark {
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.06) 0px, transparent 50%);
    background-attachment: fixed;
}

/* ----------------------------------------------------
   LOGIN VIEW STYLING (FALLBACK)
   ---------------------------------------------------- */
.login-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 8px;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

body.theme-dark .login-card {
    background: rgba(30, 41, 59, 0.65);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.login-card h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
}

.login-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
    margin-top: -0.5rem;
}

/* ----------------------------------------------------
   APP NAVIGATION LAYOUT
   ---------------------------------------------------- */
.sidebar {
    width: 260px;
    height: 100vh;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

.sidebar-brand {
    padding: 1.5rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-logo {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    letter-spacing: -0.04em;
    line-height: 1;
}

.sidebar-logo .green-text {
    color: #10b981;
}

.sidebar-logo .com-text {
    font-size: 0.8rem;
    font-weight: 700;
    align-self: flex-end;
    margin-bottom: 0.08rem;
    margin-left: 0.03rem;
}

.sidebar-brand p {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar-menu {
    flex: 1;
    padding: 1.2rem 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    overflow-y: auto;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition-smooth);
}

.menu-item svg {
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

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

body.theme-dark .menu-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.menu-item:hover svg {
    color: var(--text-primary);
}

.menu-item.active {
    background: rgba(79, 70, 229, 0.05);
    color: var(--accent-indigo);
    border: 1px solid rgba(79, 70, 229, 0.1);
    font-weight: 600;
}

body.theme-dark .menu-item.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: var(--text-primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.menu-item.active svg {
    color: var(--accent-indigo);
}

.sidebar-footer {
    padding: 1rem 1.2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
}

body.theme-dark .sidebar-footer {
    background: rgba(0, 0, 0, 0.15);
}

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

.user-profile span.name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.user-profile span.role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Main Layout Area */
.main-content {
    position: relative;
    margin-left: 260px;
    flex: 1;
    min-height: 100vh;
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.8rem;
}

.page-title h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.page-title p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin-top: 0.2rem;
}

/* ----------------------------------------------------
   STATS & CARDS
   ---------------------------------------------------- */
.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.kpi-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    position: relative;
    overflow: hidden;
}

body.theme-dark .kpi-card {
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.kpi-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.kpi-card.blue::after { background: var(--accent-blue); }
.kpi-card.purple::after { background: var(--accent-purple); }
.kpi-card.emerald::after { background: var(--accent-emerald); }
.kpi-card.amber::after { background: var(--accent-amber); }

.kpi-label {
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.kpi-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* ----------------------------------------------------
   KANBAN PIPELINE BOARD
   ---------------------------------------------------- */
.pipeline-board {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1.2rem;
    min-height: 550px;
    align-items: flex-start;
}

.pipeline-column {
    flex: 0 0 280px;
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-height: 100%;
}

body.theme-dark .pipeline-column {
    background: rgba(15, 23, 42, 0.4);
}

.pipeline-column-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #cbd5e1;
    padding-bottom: 0.5rem;
}

body.theme-dark .pipeline-column-header {
    border-bottom: 1px solid var(--border-color);
}

.pipeline-column-header h3 {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

.pipeline-column-header .count-badge {
    background: #e2e8f0;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-weight: 600;
}

body.theme-dark .pipeline-column-header .count-badge {
    background: rgba(255, 255, 255, 0.05);
}

.pipeline-column-value {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: -0.4rem;
}

.pipeline-cards-container {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-height: 400px;
    overflow-y: auto;
}

.pipeline-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.85rem;
    cursor: grab;
    transition: var(--transition-smooth);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

body.theme-dark .pipeline-card {
    background: #1e293b;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.pipeline-card:hover {
    transform: translateY(-1px);
    border-color: var(--accent-indigo);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

body.theme-dark .pipeline-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
}

.pipeline-card h4 {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

.pipeline-card .company {
    font-size: 0.78rem;
    color: var(--text-secondary);
}

.pipeline-card .value {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-emerald);
}

/* ----------------------------------------------------
   COMPACT & MODERN TABLES
   ---------------------------------------------------- */
.table-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 2rem;
}

body.theme-dark .table-card {
    backdrop-filter: blur(16px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
    vertical-align: middle;
    color: var(--text-primary);
}

th {
    background-color: #f8fafc;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-align: left;
    border-bottom: 2px solid var(--border-color);
}

body.theme-dark th {
    background-color: rgba(15, 23, 42, 0.6);
}

tr:hover td {
    background-color: #f8fafc;
}

body.theme-dark tr:hover td {
    background-color: rgba(255, 255, 255, 0.015);
}

body.theme-dark .table-striped > tbody > tr:nth-of-type(odd) > *,
body.theme-dark .table-striped > tbody > tr:nth-of-type(odd) {
    --bs-table-accent-bg: rgba(255, 255, 255, 0.015) !important;
    background-color: rgba(255, 255, 255, 0.015) !important;
    color: var(--text-primary) !important;
}

body.theme-dark .table-hover > tbody > tr:hover > * {
    --bs-table-accent-bg: rgba(255, 255, 255, 0.03) !important;
    background-color: rgba(255, 255, 255, 0.03) !important;
}

/* Form Controls (Compact) */
.form-control {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: var(--text-primary);
    padding: 0.55rem 0.8rem;
    border-radius: 6px;
    outline: none;
    font-size: 0.85rem;
    font-family: var(--font-sans);
    transition: var(--transition-smooth);
    width: 100%;
}

body.theme-dark .form-control {
    background: rgba(15, 23, 42, 0.6);
    border-color: var(--border-color);
}

.form-control:focus {
    border-color: var(--accent-indigo);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

/* Campaign Builder Cards */
.sequence-step-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

body.theme-dark .sequence-step-card {
    background: rgba(15, 23, 42, 0.3);
    box-shadow: none;
}

.sequence-step-number {
    position: absolute;
    top: -10px;
    left: 15px;
    background: var(--accent-indigo);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

/* ----------------------------------------------------
   CONTACT TIMELINE ACTIVITIES
   ---------------------------------------------------- */
.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    padding-left: 1.25rem;
    margin-top: 0.8rem;
}

.timeline-list::after {
    content: '';
    position: absolute;
    top: 0;
    left: 4px;
    width: 2px;
    height: 100%;
    background: var(--border-color);
}

.timeline-item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.timeline-item-dot {
    position: absolute;
    left: -20px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
    border: 2px solid var(--bg-dark);
    z-index: 10;
}

.timeline-item.note .timeline-item-dot { background: var(--accent-amber); }
.timeline-item.email_sent .timeline-item-dot { background: var(--accent-blue); }
.timeline-item.email_open .timeline-item-dot { background: var(--accent-emerald); }
.timeline-item.status_change .timeline-item-dot { background: var(--accent-purple); }

.timeline-item-time {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.timeline-item-title {
    font-size: 0.82rem;
    font-weight: 600;
}

.timeline-item-desc {
    font-size: 0.78rem;
    color: var(--text-secondary);
    white-space: pre-wrap;
    background: #f8fafc;
    padding: 0.4rem 0.7rem;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

body.theme-dark .timeline-item-desc {
    background: rgba(15, 23, 42, 0.2);
}

/* Tabs structure */
.view-panel {
    display: none;
    flex-direction: column;
    animation: fadeIn 0.2s ease-out;
}

.view-panel.active {
    display: flex;
}

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

/* Toast System */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    z-index: 9999;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    color: var(--text-primary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 250px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.15);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

body.theme-dark .toast {
    background: rgba(30, 41, 59, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success { border-left: 4px solid var(--accent-emerald); }
.toast.error { border-left: 4px solid var(--accent-rose); }
.toast.info { border-left: 4px solid var(--accent-blue); }

/* ----------------------------------------------------
   SLIDE-OUT DRAWER / MODAL SYSTEM
   ---------------------------------------------------- */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

body.theme-dark .drawer-overlay {
    background: rgba(4, 7, 13, 0.7);
    backdrop-filter: blur(8px);
}

.drawer {
    position: fixed;
    top: 0;
    right: -650px;
    height: 100vh;
    background: #ffffff;
    border-left: 1px solid var(--border-color);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.08);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transition: right 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 90vw;
}

body.theme-dark .drawer {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.4);
}

.drawer.open {
    right: 0 !important;
}

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

.drawer-header h2 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
}

.close-drawer {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-smooth);
}

.close-drawer:hover {
    color: var(--text-primary);
}

.drawer-body {
    padding: 1.25rem;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ----------------------------------------------------
   FILTERS LAYOUT SYSTEM
   ---------------------------------------------------- */
.filter-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

body.theme-dark .filter-card {
    background: rgba(15, 23, 42, 0.4);
    box-shadow: none;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    position: relative;
}

.filter-group label {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Spinner & Table Loading Styles */
.table-loading {
    text-align: center;
    padding: 2.5rem 0;
    color: var(--text-secondary);
}

.spinner {
    width: 24px;
    height: 24px;
    border: 2px solid #e2e8f0;
    border-top-color: var(--accent-indigo);
    border-radius: 50%;
    margin: 0 auto 0.8rem;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Actions Row Buttons Styling */
.lead-row-actions {
    display: flex;
    gap: 0.35rem;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.lead-row-actions .action-icon-btn {
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lead-row-actions .action-icon-btn.whatsapp {
    background: rgba(16, 185, 129, 0.08);
    color: #059669;
    border-color: rgba(16, 185, 129, 0.15);
}

.lead-row-actions .action-icon-btn.whatsapp:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.25);
}

.lead-row-actions .action-icon-btn.email {
    background: rgba(59, 130, 246, 0.08);
    color: #1d4ed8;
    border-color: rgba(59, 130, 246, 0.15);
}

.lead-row-actions .action-icon-btn.email:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.25);
}

.lead-row-actions .action-icon-btn.export {
    background: #f8fafc;
    color: var(--text-secondary);
    border-color: #cbd5e1;
}

body.theme-dark .lead-row-actions .action-icon-btn.export {
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    border-color: var(--border-color);
}

.lead-row-actions .action-icon-btn.export:hover {
    background: #f1f5f9;
    color: var(--text-primary);
}

body.theme-dark .lead-row-actions .action-icon-btn.export:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
}

.lead-row-actions .action-icon-btn.edit {
    background: rgba(99, 102, 241, 0.06);
    color: #4f46e5;
    border-color: rgba(99, 102, 241, 0.15);
}

body.theme-dark .lead-row-actions .action-icon-btn.edit {
    background: rgba(99, 102, 241, 0.1);
    color: #818cf8;
    border-color: rgba(99, 102, 241, 0.15);
}

.lead-row-actions .action-icon-btn.edit:hover {
    background: rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.25);
}

.lead-row-actions .action-icon-btn.delete {
    background: rgba(239, 68, 68, 0.06);
    color: #dc2626;
    border-color: rgba(239, 68, 68, 0.15);
}

body.theme-dark .lead-row-actions .action-icon-btn.delete {
    background: rgba(244, 63, 94, 0.1);
    color: #f87171;
    border-color: rgba(244, 63, 94, 0.15);
}

.lead-row-actions .action-icon-btn.delete:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.25);
}

/* ----------------------------------------------------
   SIMPLIFIED OUTREACH PLATFORM STYLES
   ---------------------------------------------------- */

/* Console Log Container */
.outreach-console {
    background: #090d16;
    border: 1px solid #1e293b;
    border-radius: 6px;
    padding: 1rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    color: #e2e8f0;
    max-height: 250px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 1rem;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.5);
}

.outreach-console .log-entry {
    line-height: 1.4;
    word-break: break-all;
}

.outreach-console .log-entry.info { color: #94a3b8; }
.outreach-console .log-entry.success { color: #34d399; }
.outreach-console .log-entry.error { color: #f87171; }
.outreach-console .log-entry.warning { color: #fbbf24; }

/* Sender Profile Grid */
.sender-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.sender-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

body.theme-dark .sender-card {
    background: var(--bg-card);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.sender-card:hover {
    border-color: var(--accent-indigo);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.sender-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.sender-card-header h4 {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
}

.sender-card-body {
    font-size: 0.78rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sender-card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.4rem;
}

/* Mock QR Code Scanner Modal */
.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

body.theme-dark .qr-container {
    background: #0f172a;
}

.qr-code-box {
    width: 200px;
    height: 200px;
    background: white;
    padding: 8px;
    border-radius: 6px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qr-code-box img {
    width: 100%;
    height: 100%;
}

.qr-overlay-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.85);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    border-radius: 6px;
    color: #818cf8;
}

/* Settings Tabs */
.settings-tabs {
    display: flex;
    gap: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.6rem;
    margin-bottom: 1.25rem;
}

.settings-tab-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    transition: var(--transition-smooth);
}

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

body.theme-dark .settings-tab-btn:hover {
    background: rgba(255, 255, 255, 0.03);
}

.settings-tab-btn.active {
    color: var(--accent-indigo);
    background: rgba(79, 70, 229, 0.05);
    border: 1px solid rgba(79, 70, 229, 0.1);
}

.settings-section-panel {
    display: none;
}

.settings-section-panel.active {
    display: block;
}

/* Simple Console Progress Bar */
.progress-bar-container {
    width: 100%;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 0.4rem;
}

.progress-bar-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent-indigo) 0%, var(--accent-purple) 100%);
    transition: width 0.3s ease;
}

/* ----------------------------------------------------
   PREMIUM BUTTON & ACTION BAR DESIGN SYSTEM
   ---------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.55rem 1.1rem;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: var(--font-sans);
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    user-select: none;
    text-decoration: none;
    transition: var(--transition-smooth);
    outline: none;
}

.btn:active {
    transform: scale(0.98);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none !important;
}

/* Primary Button Styling */
.btn-primary {
    background: var(--accent-indigo);
    color: #ffffff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
    background: #4338ca;
}

body.theme-dark .btn-primary {
    background: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-purple) 100%);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.2);
}

body.theme-dark .btn-primary:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
}

/* Secondary Button Styling */
.btn-secondary {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    color: var(--text-secondary);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

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

body.theme-dark .btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
}

body.theme-dark .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Special Button Overrides */
.btn-export-excel {
    background: #ffffff !important;
    border: 1px solid #a7f3d0 !important;
    color: #059669 !important;
}

.btn-export-excel:hover {
    background: #ecfdf5 !important;
    border-color: #34d399 !important;
    color: #047857 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

body.theme-dark .btn-export-excel {
    background: rgba(16, 185, 129, 0.08) !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
    color: #34d399 !important;
}
body.theme-dark .btn-export-excel:hover {
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
    color: #10b981 !important;
}

.btn-bulk-email {
    background: var(--accent-indigo) !important;
    color: #ffffff !important;
}

.btn-bulk-email:hover {
    background: #4338ca !important;
}

body.theme-dark .btn-bulk-email {
    background: linear-gradient(135deg, var(--accent-indigo) 0%, #4f46e5 100%) !important;
}
body.theme-dark .btn-bulk-email:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
}

.btn-bulk-whatsapp {
    background: #10b981 !important;
    color: #ffffff !important;
}

.btn-bulk-whatsapp:hover {
    background: #059669 !important;
}

body.theme-dark .btn-bulk-whatsapp {
    background: linear-gradient(135deg, var(--accent-emerald) 0%, #059669 100%) !important;
}
body.theme-dark .btn-bulk-whatsapp:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
}

#btn-logout {
    background: #fee2e2;
    color: #ef4444;
    border: 1px solid #fca5a5;
    border-radius: 6px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

#btn-logout:hover {
    background: #fecaca;
    color: #dc2626;
    border-color: #f87171;
}

body.theme-dark #btn-logout {
    background: rgba(244, 63, 94, 0.08);
    border-color: rgba(244, 63, 94, 0.15);
    color: #f87171;
}
body.theme-dark #btn-logout:hover {
    background: rgba(244, 63, 94, 0.18);
    border-color: rgba(244, 63, 94, 0.3);
    color: var(--accent-rose);
}

/* Action Bar Container */
.action-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 0.85rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

body.theme-dark .action-bar {
    background: rgba(30, 41, 59, 0.45);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.selection-info {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.selected-count {
    color: var(--accent-indigo);
    font-weight: 700;
    font-size: 1rem;
}

.action-buttons {
    display: flex;
    gap: 0.65rem;
    align-items: center;
}

/* ----------------------------------------------------
   MOBILE RESPONSIVENESS & SIDEBAR DRAWER
   ---------------------------------------------------- */
.mobile-header {
    display: none;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0);
    backdrop-filter: blur(0px);
    z-index: 995;
    pointer-events: none;
    transition: background-color 0.25s ease, backdrop-filter 0.25s ease;
}

.sidebar-overlay.show {
    background: rgba(15, 23, 42, 0.3);
    backdrop-filter: blur(4px);
    pointer-events: auto;
}

.mobile-toggle-btn {
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem;
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.mobile-toggle-btn:hover {
    background: #f1f5f9;
}

/* Responsive Overrides (Screen width <= 768px) */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: -260px;
        width: 260px;
        height: 100vh;
        z-index: 1000;
        transition: left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.08);
    }
    
    .sidebar.open {
        left: 0;
    }
    
    .mobile-header {
        display: flex !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 56px;
        background: #ffffff;
        border-bottom: 1px solid var(--border-color);
        align-items: center;
        justify-content: space-between;
        padding: 0 1rem;
        z-index: 990;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    }
    
    body.theme-dark .mobile-header {
        background: var(--bg-sidebar);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    }
    
    .mobile-brand h2 {
        font-size: 1.15rem;
        font-weight: 700;
        color: var(--text-primary);
        display: flex;
        align-items: center;
    }
    
    .main-content {
        margin-left: 0 !important;
        padding: 1.25rem 1rem !important;
        margin-top: 56px !important;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
        margin-bottom: 1.25rem;
    }
    
    .page-title h2 {
        font-size: 1.35rem;
    }
    
    /* Stats grid */
    .stats-container {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        margin-bottom: 1.25rem;
    }
    
    /* Filter Layout */
    .filter-card {
        padding: 1rem !important;
        margin-bottom: 1.25rem;
    }
    
    .filter-grid {
        grid-template-columns: 1fr !important;
        gap: 0.8rem !important;
    }
    
    /* Action Bar (Bulk Selects) */
    .action-bar {
        flex-direction: column !important;
        gap: 1rem !important;
        align-items: stretch !important;
        padding: 1rem !important;
        border-radius: 8px;
        text-align: center;
    }
    
    .action-buttons {
        flex-direction: column !important;
        gap: 0.5rem !important;
        width: 100%;
    }
    
    .action-buttons .btn {
        width: 100% !important;
        justify-content: center !important;
    }
    
    .selection-info {
        font-size: 0.85rem;
    }
    
    /* Table Responsive wrapping */
    .table-card {
        border-radius: 8px;
    }
    
    /* Modals & Popups positioning */
    .login-card {
        padding: 2rem 1.5rem !important;
        border-radius: 8px;
    }
    
    /* Adjust flex properties inside SMTP form modals */
    .login-card .filter-grid {
        grid-template-columns: 1fr !important;
    }
    
    .login-card div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 0.8rem !important;
    }
}

/* ----------------------------------------------------
   DASHBOARD CHARTS & ANALYTICS STYLING
   ---------------------------------------------------- */
.chart-bar-wrapper {
    position: relative;
    cursor: pointer;
}

.chart-bar-wrapper:hover .chart-tooltip {
    opacity: 1 !important;
    transform: translateX(-50%) translateY(-5px) !important;
}

.chart-tooltip {
    left: 50%;
    transform: translateX(-50%) translateY(0);
}

.kpi-card .kpi-subtext {
    margin-top: 0.15rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr !important;
        gap: 0.8rem !important;
    }
    
    .chart-container {
        height: 180px !important;
    }
    
    .chart-bar-wrapper div[style*="width: 24px"] {
        width: 16px !important;
    }
    
    .chart-tooltip {
        font-size: 0.65rem !important;
        padding: 0.3rem 0.5rem !important;
    }
}

/* Emerald / Success Button Styling */
.btn-emerald {
    background: #10b981 !important;
    color: #ffffff !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.btn-emerald:hover {
    background: #059669 !important;
}

/* Tablet view overrides */
@media (max-width: 1024px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .dashboard-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ----------------------------------------------------
   TRUECRM NEW STYLES
   ---------------------------------------------------- */
.tour-popover {
    position: absolute;
    z-index: 10600;
    background: #ffffff;
    border: 1px solid var(--accent-indigo);
    border-radius: 8px;
    padding: 1.2rem;
    width: 290px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06), 0 0 15px rgba(79, 70, 229, 0.05);
    transition: top 0.2s, left 0.2s;
    animation: fadeIn 0.25s ease-out;
}

body.theme-dark .tour-popover {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(99, 102, 241, 0.15);
}

.tour-arrow {
    position: absolute;
    left: -8px;
    top: 20px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid var(--accent-indigo);
}

.tour-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.tour-header h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.tour-counter {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent-indigo);
    background: rgba(79, 70, 229, 0.08);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

.tour-body {
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--text-secondary);
}

.tour-highlight {
    position: relative;
    z-index: 10500 !important;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.2) !important;
    border: 1px solid var(--accent-indigo) !important;
}

.admin-grid {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 900px) {
    .admin-grid {
        grid-template-columns: 1fr;
    }
}

/* ----------------------------------------------------
   MOCKUP-STYLE SPLIT LAYOUT & AUTH STYLING
   ---------------------------------------------------- */
.login-wrapper.light-theme {
    background-color: #f8fafc;
    display: flex;
    flex-direction: row;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    overflow: hidden;
}

.login-left-placeholder {
    display: flex !important;
    flex: 1.25;
    background-color: #ffffff;
    border-right: 1px solid #e2e8f0;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: 3rem 4rem;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.login-right-container {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    height: 100%;
    overflow-y: auto;
    background: #f8fafc;
    box-sizing: border-box;
}

.left-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 520px;
    width: 100%;
    z-index: 5;
    position: relative;
}

.left-content-wrapper .auth-logo {
    margin-bottom: 2.5rem;
}

.left-headline {
    font-size: 2.85rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.15;
    margin: 0 0 1rem 0;
    letter-spacing: -0.03em;
    font-family: var(--font-sans);
}

.left-headline .green-text {
    color: #10b981;
}

.left-subtitle {
    font-size: 1.15rem;
    color: #64748b;
    margin: 0 0 2.5rem 0;
    line-height: 1.5;
}

.stats-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 3.5rem;
    width: 100%;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.stat-icon-wrapper {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-text {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
}

.mockup-container {
    position: relative;
    width: 100%;
    padding-left: 2rem;
    box-sizing: border-box;
}

.mockup-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.25rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.02);
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.mockup-search {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #94a3b8;
    background: #f8fafc;
}

.mockup-result {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid rgba(16, 185, 129, 0.08);
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.02);
}

.mockup-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(37, 99, 235, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-logo-icon.skeleton-bg {
    background: rgba(226, 232, 240, 0.5);
}

.mockup-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.mockup-name-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.mockup-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
}

.mockup-badge {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(16, 185, 129, 0.08);
    color: #10b981;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 12px;
}

.mockup-desc {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.15rem;
}

.mockup-skeleton {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    opacity: 0.4;
}

.skeleton-line {
    background: #e2e8f0;
    border-radius: 4px;
}

.skeleton-title {
    width: 80px;
    height: 10px;
}

.skeleton-body {
    width: 120px;
    height: 8px;
    margin-top: 0.35rem;
}

.dots-element {
    position: absolute;
    bottom: -25px;
    left: 0px;
    width: 120px;
    height: 60px;
    background-image: radial-gradient(#e2e8f0 1.5px, transparent 1.5px);
    background-size: 10px 10px;
    opacity: 0.7;
    z-index: 1;
}

.concentric-rings {
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 1.5px solid rgba(16, 185, 129, 0.03);
    pointer-events: none;
    z-index: 0;
}

.concentric-rings::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 50px;
    right: 50px;
    bottom: 50px;
    border-radius: 50%;
    border: 1.5px solid rgba(16, 185, 129, 0.02);
}

.login-card.light-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 2.5rem 3rem;
    border-radius: 8px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    color: #1e293b;
}

.login-card.light-card.register-wide {
    max-width: 620px;
    padding: 3rem 3.5rem;
}

.login-card.light-card h2 {
    font-size: 1.85rem;
    font-weight: 700;
    color: #0f172a;
    text-align: left;
    margin: 0;
    background: none !important;
    -webkit-text-fill-color: initial !important;
}

.login-card.light-card p {
    color: #64748b;
    font-size: 0.95rem;
    text-align: left;
    margin: 0;
    margin-top: -0.3rem;
    line-height: 1.4;
}

.mobile-logo-header {
    display: none;
    margin-bottom: 2rem;
    justify-content: center;
    width: 100%;
}

.auth-logo-container {
    display: none;
}

.auth-logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-family: var(--font-sans);
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}

.auth-logo .dark-text { color: #0f172a; }
.auth-logo .green-text { color: #10b981; }

.auth-logo .com-text {
    font-size: 1.1rem;
    font-weight: 700;
    align-self: flex-end;
    margin-bottom: 0.15rem;
    margin-left: 0.05rem;
}

.auth-logo-subtext {
    font-size: 0.76rem;
    font-weight: 600;
    color: #64748b;
    margin-top: 0.3rem;
    text-align: center;
    width: 100%;
    letter-spacing: 0.01em;
}

.auth-logo-subtext .green-dot {
    color: #10b981;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1;
}

.login-card.light-card .filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
}

.login-card.light-card label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
}

.login-card.light-card label span.required {
    color: #ef4444;
    margin-left: 0.2rem;
}

.input-with-icon {
    display: flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
    height: 44px;
    overflow: hidden;
    width: 100%;
}

.input-with-icon:focus-within {
    border-color: var(--accent-indigo);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

.input-with-icon .icon-prefix {
    width: 40px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    background: transparent;
    border-right: none;
    flex-shrink: 0;
}

.input-with-icon input.form-control {
    border: none !important;
    background: transparent !important;
    padding: 0 0.4rem !important;
    color: #0f172a !important;
    height: 100% !important;
    width: 100% !important;
    font-size: 0.95rem !important;
    box-shadow: none !important;
    outline: none !important;
}

.input-with-icon input.form-control::placeholder {
    color: #94a3b8;
}

.input-with-icon .btn-toggle-visibility {
    background: none;
    border: none;
    padding: 0 0.8rem;
    height: 100%;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.2s;
}

.input-with-icon .btn-toggle-visibility:hover {
    color: #475569;
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 0.88rem;
    margin-top: 0.2rem;
}

.auth-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500 !important;
    color: #475569 !important;
    user-select: none;
}

.auth-options input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #2fa859;
    cursor: pointer;
}

.auth-options a.forgot-password-link {
    color: #2fa859;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.auth-options a.forgot-password-link:hover {
    color: #22934c;
}

.btn-green-submit {
    background: #2fa859 !important;
    color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(47, 168, 89, 0.15) !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    height: 44px;
    border-radius: 6px !important;
    border: none !important;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    width: 100%;
}

.btn-green-submit:hover {
    background: #22934c !important;
}

.btn-outline-green-signup {
    background: #ffffff !important;
    color: #2fa859 !important;
    font-weight: 600 !important;
    font-size: 1.05rem !important;
    height: 48px;
    border-radius: 6px !important;
    border: 1.5px solid #2fa859 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.btn-outline-green-signup:hover {
    background: #f0faf4 !important;
    border-color: #22934c !important;
    color: #22934c !important;
}

.btn-outline-green-signup .bold-text {
    font-weight: 800;
    font-size: 1.25rem;
    margin: 0 0.3rem;
}

.or-separator {
    display: flex;
    align-items: center;
    text-align: center;
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 0.4rem 0;
    width: 100%;
}

.or-separator::before,
.or-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.or-separator:not(:empty)::before { margin-right: 0.9em; }
.or-separator:not(:empty)::after { margin-left: 0.9em; }

.social-buttons-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    width: 100%;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    height: 40px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.social-btn:hover {
    background: #f8fafc;
}

.social-btn svg {
    flex-shrink: 0;
}

.register-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
}

.auth-footer-text {
    text-align: center;
    margin-top: 0.5rem;
    font-size: 0.88rem;
    color: #64748b;
    width: 100%;
}

.auth-footer-text a {
    color: #2fa859;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.auth-footer-text a:hover {
    color: #22934c;
}

/* ----------------------------------------------------
   INLINE OVERRIDES & LIGHT THEME ALIGNMENTS
   ---------------------------------------------------- */

/* Overrides for inline transparent background values - Only in Light Mode */
body:not(.theme-dark) div[style*="rgba(255,255,255,0.03)"],
body:not(.theme-dark) div[style*="rgba(255, 255, 255, 0.03)"],
body:not(.theme-dark) span[style*="rgba(255,255,255,0.03)"],
body:not(.theme-dark) span[style*="rgba(255, 255, 255, 0.03)"],
body:not(.theme-dark) button[style*="rgba(255,255,255,0.03)"],
body:not(.theme-dark) button[style*="rgba(255, 255, 255, 0.03)"] {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

/* Tags Overrides */
body:not(.theme-dark) .tag {
    display: inline-flex !important;
    align-items: center !important;
    padding: 0.2rem 0.6rem !important;
    border-radius: 4px !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.03em !important;
}

/* Target Tag colors to give clean light-mode alternatives */
body:not(.theme-dark) .tag[style*="818cf8"],
body:not(.theme-dark) .tag[style*="SMTP"] {
    background: #e0e7ff !important;
    color: #4f46e5 !important;
}

body:not(.theme-dark) .tag[style*="34d399"],
body:not(.theme-dark) .tag[style*="Active"],
body:not(.theme-dark) .tag[style*="WhatsApp"] {
    background: #d1fae5 !important;
    color: #065f46 !important;
}

body:not(.theme-dark) .tag[style*="fb7185"],
body:not(.theme-dark) .tag[style*="Blocked"] {
    background: #fee2e2 !important;
    color: #991b1b !important;
}

body:not(.theme-dark) .tag[style*="255,255,255,0.06"] {
    background: #e2e8f0 !important;
    color: #334155 !important;
}

/* Blocked Screen overlay rules */
body:not(.theme-dark) #blocked-screen {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px) !important;
}

body:not(.theme-dark) #blocked-screen .login-card {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
}

body:not(.theme-dark) #blocked-screen-msg {
    color: #475569 !important;
}

/* Blocked Logout button override */
body:not(.theme-dark) #btn-blocked-logout {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #475569 !important;
}
body:not(.theme-dark) #btn-blocked-logout:hover {
    background: #f8fafc !important;
    color: #0f172a !important;
}

/* Button styling overrides for inline-colored buttons in lists */
body:not(.theme-dark) .btn-secondary[style*="f87171"],
body:not(.theme-dark) .btn-secondary[style*="fb7185"] {
    background: #fef2f2 !important;
    color: #ef4444 !important;
    border: 1px solid #fca5a5 !important;
}
body:not(.theme-dark) .btn-secondary[style*="f87171"]:hover,
body:not(.theme-dark) .btn-secondary[style*="fb7185"]:hover {
    background: #fee2e2 !important;
    color: #dc2626 !important;
    border-color: #f87171 !important;
}

body:not(.theme-dark) .btn-secondary[style*="818cf8"],
body:not(.theme-dark) .btn-secondary[style*="a5b4fc"] {
    background: #e0e7ff !important;
    color: #4f46e5 !important;
    border: 1px solid #c7d2fe !important;
}
body:not(.theme-dark) .btn-secondary[style*="818cf8"]:hover,
body:not(.theme-dark) .btn-secondary[style*="a5b4fc"]:hover {
    background: #c7d2fe !important;
    color: #3730a3 !important;
}

/* Empty slot indicators inside charts */
body:not(.theme-dark) .chart-bar-wrapper div[style*="255,255,255,0.03"],
body:not(.theme-dark) .chart-bar-wrapper div[style*="255, 255, 255, 0.03"] {
    background: #f1f5f9 !important;
}

/* Logo white text inside app sidebar brand */
body:not(.theme-dark) .sidebar-logo .logo-white-text,
body:not(.theme-dark) .mobile-brand .sidebar-logo .logo-white-text {
    color: var(--text-primary) !important;
}

/* ----------------------------------------------------
   THEME TOGGLER BUTTON STYLING
   ---------------------------------------------------- */
#btn-toggle-theme {
    background: rgba(99, 102, 241, 0.08);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 6px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}
body.theme-dark #btn-toggle-theme {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: var(--border-color);
}
#btn-toggle-theme:hover {
    background: rgba(99, 102, 241, 0.18);
    color: var(--accent-indigo);
}
body.theme-dark #btn-toggle-theme:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

#btn-trigger-tour {
    background: rgba(99, 102, 241, 0.08);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 6px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}
body.theme-dark #btn-trigger-tour {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: var(--border-color);
}
#btn-trigger-tour:hover {
    background: rgba(99, 102, 241, 0.18);
    color: var(--accent-indigo);
}
body.theme-dark #btn-trigger-tour:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

/* ----------------------------------------------------
   TOP-RIGHT HEADER ACTIONS BAR
   ---------------------------------------------------- */
.header-top-actions {
    position: absolute;
    top: 1.5rem;
    right: 2.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 100;
}

.profile-header-wrapper {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.profile-header-wrapper:hover {
    background: rgba(99, 102, 241, 0.05);
}

body.theme-dark .profile-header-wrapper:hover {
    background: rgba(255, 255, 255, 0.05);
}

.header-user-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition-smooth);
}

.header-top-actions .action-icon-btn,
.header-top-actions .profile-header-btn {
    background: rgba(99, 102, 241, 0.08);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 8px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    padding: 0;
}

body.theme-dark .header-top-actions .action-icon-btn,
body.theme-dark .header-top-actions .profile-header-btn {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.header-top-actions .action-icon-btn:hover,
.header-top-actions .profile-header-btn:hover {
    background: rgba(99, 102, 241, 0.18);
    color: var(--accent-indigo);
}

body.theme-dark .header-top-actions .action-icon-btn:hover,
body.theme-dark .header-top-actions .profile-header-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.profile-header-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    overflow: hidden;
}

.profile-header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-header-avatar .avatar-placeholder {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--accent-indigo);
}
body.theme-dark .profile-header-avatar .avatar-placeholder {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .header-top-actions {
        top: 1.25rem;
        right: 1rem;
    }
}

/* ----------------------------------------------------
   PROFILE DRAWER TABS & RECHARGE PACKAGES
   ---------------------------------------------------- */
.drawer-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-card);
}

.drawer-tab-btn {
    flex: 1;
    padding: 0.9rem;
    border: none;
    background: transparent;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-muted);
    border-bottom: 2px solid transparent;
    transition: var(--transition-smooth);
    font-size: 0.85rem;
    outline: none;
}

.drawer-tab-btn.active {
    color: var(--accent-indigo);
    border-bottom-color: var(--accent-indigo);
}

.package-card {
    border: 1px solid var(--border-color);
    padding: 0.88rem;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.package-card:hover {
    border-color: var(--accent-indigo);
    background: rgba(99, 102, 241, 0.02);
    box-shadow: var(--shadow-sm);
}

body.theme-dark .package-card:hover {
    background: rgba(255, 255, 255, 0.02);
}

/* ----------------------------------------------------
   BNI COMPATIBILITY & OVERRIDES FOR LEGACY SIDEBAR
   ---------------------------------------------------- */
.sidebar {
    width: 260px !important;
    height: 100vh !important;
    background: var(--bg-sidebar) !important;
    border-right: 1px solid var(--border-color) !important;
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 100 !important;
    padding: 0 !important; /* Overrides legacy padding: 10px 15px 37px 10px; */
    overflow: hidden !important;
}

.sidebar-start {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    overflow: hidden !important;
}

.sidebar-body {
    flex: 1 !important;
    overflow-y: auto !important;
    padding-bottom: 2rem !important;
}

.sidebar-body::-webkit-scrollbar {
    width: 4px !important;
}

.sidebar-body::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.08) !important;
    border-radius: 4px !important;
}

body.theme-dark .sidebar-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08) !important;
}

.sidebar-brand {
    padding: 1.5rem 1.5rem !important;
    border-bottom: 1px solid var(--border-color) !important;
    flex-shrink: 0 !important;
}

/* Logo styles */
.sidebar-logo .logo-true-text {
    color: #000000 !important;
    font-weight: 700;
}
body.theme-dark .sidebar-logo .logo-true-text {
    color: #ffffff !important;
}

/* Sidebar menu overrides */
.sidebar-body-menu {
    list-style: none !important;
    padding: 0.8rem 0.8rem !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.3rem !important;
}
.sidebar-body-menu li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.sidebar-body-menu a {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 0.75rem 1rem !important;
    color: var(--text-secondary) !important;
    text-decoration: none !important;
    font-size: 0.92rem !important;
    font-weight: 500 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    border: 1px solid transparent !important;
    transition: var(--transition-smooth) !important;
    background: transparent !important;
}
.sidebar-body-menu a i, .sidebar-body-menu a svg {
    color: var(--text-muted) !important;
    transition: var(--transition-smooth) !important;
    width: 18px !important;
    text-align: center !important;
    margin-right: 0px !important; /* Overrides legacy margin */
}
.sidebar-body-menu a:hover {
    background: var(--sidebar-hover) !important;
    color: var(--text-primary) !important;
}
body.theme-dark .sidebar-body-menu a:hover {
    background: var(--sidebar-hover) !important;
}
.sidebar-body-menu a:hover i, .sidebar-body-menu a:hover svg {
    color: var(--text-primary) !important;
}
.sidebar-body-menu a.active {
    background: rgba(79, 70, 229, 0.05) !important;
    color: var(--accent-indigo) !important;
    border: 1px solid rgba(79, 70, 229, 0.1) !important;
    font-weight: 600 !important;
}
body.theme-dark .sidebar-body-menu a.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(139, 92, 246, 0.1) 100%) !important;
    color: var(--text-primary) !important;
    border: 1px solid rgba(99, 102, 241, 0.2) !important;
}
.sidebar-body-menu a.active i, .sidebar-body-menu a.active svg {
    color: var(--accent-indigo) !important;
}
body.theme-dark .sidebar-body-menu a.active i, body.theme-dark .sidebar-body-menu a.active svg {
    color: var(--text-primary) !important;
}
.sidebar-body-menu a::after {
    display: none !important; /* Replaces legacy right-bar indicator */
}

/* Submenu styles */
.sidebar-body-menu .cat-sub-menu {
    list-style: none !important;
    padding-left: 1.5rem !important;
    margin: 0 !important;
    display: none;
    background-color: transparent !important; /* Replaces legacy black sub-menu bg */
}
.sidebar-body-menu .cat-sub-menu.visible {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.2rem !important;
    height: auto !important;
}
.sidebar-body-menu .cat-sub-menu li {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.sidebar-body-menu .cat-sub-menu a {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.85rem !important;
    color: var(--text-secondary) !important;
    opacity: 0.85 !important;
    visibility: visible !important;
    background: transparent !important;
    border: none !important;
}
.sidebar-body-menu .cat-sub-menu a:hover {
    color: var(--text-primary) !important;
    opacity: 1 !important;
    background: var(--sidebar-hover) !important;
    border-radius: 4px !important;
}
body.theme-dark .sidebar-body-menu .cat-sub-menu a:hover {
    background: var(--sidebar-hover) !important;
}

.system-menu__title {
    display: block !important;
    padding: 1.5rem 1rem 0.5rem 1rem !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    color: var(--text-muted) !important;
    letter-spacing: 0.5px !important;
}

/* ----------------------------------------------------
   PREMIUM SPECIFIC STYLE OVERRIDES FROM SCREENSHOTS
   ---------------------------------------------------- */

/* Body background & typography */
body {
    background-color: var(--bg-light) !important;
    color: var(--text-main) !important;
    font-family: var(--font-sans) !important;
}

/* Stat box / bg-box styles */
.box.bg-box {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color-bni) !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
    padding: 1.5rem !important;
    transition: var(--transition-smooth) !important;
}
.box.bg-box h4 {
    font-size: 0.75rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: var(--text-muted-bni) !important;
    font-weight: 700 !important;
    font-family: var(--font-sans) !important;
    margin-top: 0 !important;
}
.box.bg-box h2 {
    font-size: 1.75rem !important;
    font-weight: 800 !important;
    color: var(--text-primary) !important;
    font-family: var(--font-sans) !important;
}

/* Stat card left border accents */
.row > div:nth-child(1) .box.bg-box {
    border-left: 4px solid var(--accent-blue) !important;
}
.row > div:nth-child(2) .box.bg-box {
    border-left: 4px solid var(--accent-purple) !important;
}
.row > div:nth-child(3) .box.bg-box {
    border-left: 4px solid var(--accent-emerald) !important;
}
.row > div:nth-child(4) .box.bg-box {
    border-left: 4px solid var(--accent-amber) !important;
}

/* Action Icon Buttons (Theme Switcher / Help) */
.action-icon-btn {
    width: 38px !important;
    height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
    background: rgba(79, 70, 229, 0.05) !important;
    border: 1px solid rgba(79, 70, 229, 0.1) !important;
    color: var(--accent-indigo) !important;
    cursor: pointer !important;
    transition: var(--transition-smooth) !important;
    padding: 0 !important;
}
.action-icon-btn:hover {
    background: rgba(79, 70, 229, 0.1) !important;
    transform: translateY(-1px);
}
body.theme-dark .action-icon-btn {
    background: rgba(99, 102, 241, 0.1) !important;
    border-color: rgba(99, 102, 241, 0.2) !important;
    color: #6366f1 !important;
}
body.theme-dark .action-icon-btn:hover {
    background: rgba(99, 102, 241, 0.15) !important;
}

/* Top Header Profile Avatar wrapper */
.profile-header-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    cursor: pointer !important;
    padding: 2px 6px !important;
    border-radius: 8px !important;
    transition: var(--transition-smooth) !important;
}
.profile-header-wrapper:hover {
    background: rgba(79, 70, 229, 0.04) !important;
}
body.theme-dark .profile-header-wrapper:hover {
    background: rgba(255, 255, 255, 0.02) !important;
}
.profile-header-avatar {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    overflow: hidden !important;
    border: 2px solid var(--accent-indigo) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(79, 70, 229, 0.05) !important;
}
.profile-header-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Premium Form Elements & Filters */
.form-control, select, .select2-container .select2-choice {
    border-radius: 8px !important;
    border: 1px solid var(--border-color-bni) !important;
    padding: 0.6rem 1rem !important;
    font-size: 0.9rem !important;
    font-family: var(--font-sans) !important;
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
    transition: var(--transition-smooth) !important;
}
.form-control:focus, select:focus {
    border-color: var(--accent-indigo) !important;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1) !important;
    outline: none !important;
}
label, .form-label {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: var(--text-secondary) !important;
    margin-bottom: 0.5rem !important;
}

/* Buttons styling */
.btn {
    border-radius: 8px !important;
    font-family: var(--font-sans) !important;
    font-weight: 600 !important;
    padding: 0.6rem 1.2rem !important;
    font-size: 0.9rem !important;
    transition: var(--transition-smooth) !important;
}
.btn-primary {
    background-color: var(--accent-indigo) !important;
    border-color: var(--accent-indigo) !important;
    color: #ffffff !important;
}
.btn-primary:hover {
    background-color: #4338ca !important;
    border-color: #4338ca !important;
}
.btn-success {
    background-color: var(--accent-emerald) !important;
    border-color: var(--accent-emerald) !important;
    color: #ffffff !important;
}
.btn-success:hover {
    background-color: #059669 !important;
    border-color: #059669 !important;
}

/* Drawer active tab buttons styling */
.drawer-tabs {
    display: flex !important;
    border-bottom: 1px solid var(--border-color-bni) !important;
    margin-bottom: 1.5rem !important;
}
.drawer-tab-btn {
    flex: 1 !important;
    text-align: center !important;
    padding: 1rem 0.5rem !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    color: var(--text-secondary) !important;
    border: none !important;
    background: transparent !important;
    border-bottom: 2px solid transparent !important;
    cursor: pointer !important;
    transition: var(--transition-smooth) !important;
}
.drawer-tab-btn.active {
    color: var(--accent-indigo) !important;
    border-bottom-color: var(--accent-indigo) !important;
}

/* Table overrides to look like Screenshot 3 */
.table, table.dataTable {
    border-collapse: separate !important;
    border-spacing: 0 8px !important;
    width: 100% !important;
    background: transparent !important;
}
.table thead th {
    background-color: transparent !important;
    border: none !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: var(--text-secondary) !important;
    padding: 12px 16px !important;
}
.table tbody tr {
    background-color: var(--bg-card) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.01) !important;
    transition: var(--transition-smooth) !important;
}
.table tbody tr:hover {
    background-color: var(--sidebar-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02) !important;
}
.table tbody td {
    padding: 16px !important;
    border: none !important;
    border-top: 1px solid var(--border-color-bni) !important;
    border-bottom: 1px solid var(--border-color-bni) !important;
    color: var(--text-primary) !important;
    font-size: 0.9rem !important;
}
.table tbody td:first-child {
    border-left: 1px solid var(--border-color-bni) !important;
    border-top-left-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
}
.table tbody td:last-child {
    border-right: 1px solid var(--border-color-bni) !important;
    border-top-right-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
}

/* ----------------------------------------------------
   SLIDER TOGGLE SWITCH (CREAM/SUN & SLATE/MOON)
   ---------------------------------------------------- */
.theme-toggle-switch {
    width: 62px !important;
    height: 28px !important;
    border-radius: 14px !important;
    position: relative !important;
    background: #ffeebc !important; /* soft cream-yellow */
    border: none !important;
    cursor: pointer !important;
    overflow: hidden !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.08) !important;
    transition: background 0.4s ease !important;
    padding: 0 !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

.theme-toggle-thumb {
    width: 22px !important;
    height: 22px !important;
    border-radius: 50% !important;
    position: absolute !important;
    top: 3px !important;
    left: 3px !important;
    background-color: #f5b82e !important; /* bright sun yellow-orange */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Cline x1='12' y1='1' x2='12' y2='3'/%3E%3Cline x1='12' y1='21' x2='12' y2='23'/%3E%3Cline x1='4.22' y1='4.22' x2='5.64' y2='5.64'/%3E%3Cline x1='18.36' y1='18.36' x2='19.78' y2='19.78'/%3E%3Cline x1='1' y1='12' x2='3' y2='12'/%3E%3Cline x1='21' y1='12' x2='23' y2='12'/%3E%3Cline x1='4.22' y1='19.78' x2='5.64' y2='18.36'/%3E%3Cline x1='18.36' y1='5.64' x2='19.78' y2='4.22'/%3E%3C/svg%3E") !important;
    background-size: 14px 14px !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15) !important;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s ease !important;
    z-index: 2 !important;
}

/* Dark mode state */
body.theme-dark .theme-toggle-switch {
    background: #0f283c !important; /* dark slate-blue */
}

body.theme-dark .theme-toggle-thumb {
    transform: translateX(34px) !important; /* Slide to right */
    background-color: #1d9ff2 !important; /* bright cyan blue */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z'/%3E%3C/svg%3E") !important;
    background-size: 12px 12px !important;
}

/* Guest Login & Register Dark Mode Support */
body.theme-dark .form-pane {
    background-color: var(--bg-dark) !important;
    border-left-color: var(--border-color-bni) !important;
}

body.theme-dark .showcase-pane {
    background: linear-gradient(135deg, #090d16 0%, #0f172a 100%) !important;
}

body.theme-dark .form-inner h2,
body.theme-dark .form-inner h3,
body.theme-dark .form-inner h4,
body.theme-dark .form-inner p,
body.theme-dark .form-inner a,
body.theme-dark .form-inner span {
    color: var(--text-primary) !important;
}

body.theme-dark .form-inner .text-muted,
body.theme-dark .form-inner .form-meta-subtext,
body.theme-dark .form-inner .form-label-custom {
    color: var(--text-secondary) !important;
}

body.theme-dark .form-inner label:not(.form-check-label) {
    color: var(--text-secondary) !important;
}

/* Custom inputs on guest pages in dark mode */
body.theme-dark .input-field-custom,
body.theme-dark .select-field-custom {
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color-bni) !important;
}

body.theme-dark .input-icon-custom {
    color: var(--text-secondary) !important;
}

body.theme-dark .phone-prefix-container {
    border-right-color: var(--border-color-bni) !important;
}

body.theme-dark .prefix-text {
    color: var(--text-primary) !important;
}

body.theme-dark .feature-item {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color-bni) !important;
}

body.theme-dark .feature-label {
    color: var(--text-primary) !important;
}

body.theme-dark .mockup-container {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color-bni) !important;
}

body.theme-dark .mockup-content {
    background-color: var(--bg-card) !important;
}

body.theme-dark .mockup-title {
    color: var(--text-primary) !important;
}
