/* ══════════════════════════════════════════════════
   ABCA SERVICES — Admin Panel CSS
   Modern, SaaS-Grade Enterprise Dashboard Layout
   ══════════════════════════════════════════════════ */

:root {
    --primary:          #0366ff;
    --primary-dark:     #0252d1;
    --primary-soft:     #eaf2ff;
    --primary-glow:     rgba(3, 102, 255, 0.15);
    --secondary:        #0c182e;
    --sidebar-bg:       #09111f;
    --sidebar-surface:  #0f1d36;
    --sidebar-border:   rgba(255, 255, 255, 0.07);
    --sidebar-hover:    rgba(255, 255, 255, 0.05);
    --sidebar-color:    #94a3b8;
    --sidebar-active:   #ffffff;
    --success:          #10b981;
    --success-soft:     #ecfdf5;
    --warning:          #f9d90a;
    --warning-soft:     #fffbeb;
    --danger:           #ef4444;
    --danger-soft:      #fef2f2;
    --info:             #0284c7;
    --info-soft:        #e0f2fe;
    --text-main:        #1e293b;
    --text-muted:       #64748b;
    --bg-main:          #f8fafc;
    --border:           #e2e8f0;
    --border-subtle:    #f1f5f9;
    --font:             'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --shadow-xs:        0 1px 2px 0 rgba(15, 23, 42, 0.04);
    --shadow-sm:        0 2px 4px -1px rgba(15, 23, 42, 0.06), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
    --shadow-md:        0 6px 16px -2px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
    --radius-sm:        6px;
    --radius:           10px;
    --radius-lg:        14px;
    --sidebar-width:    260px;
    --topbar-height:    64px;
    --transition:       all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body.admin-body {
    font-family: var(--font);
    background: var(--bg-main);
    color: var(--text-main);
    margin: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

/* ── SIDEBAR ───────────────────────────────────── */
.admin-sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: var(--sidebar-color);
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--sidebar-border);
    transition: var(--transition);
}

.sidebar-brand {
    height: var(--topbar-height);
    display: flex;
    align-items: center;
    padding: 0 18px;
    background: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid var(--sidebar-border);
    justify-content: space-between;
}

.sidebar-brand a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(3, 102, 255,0.3) 0%, rgba(3, 102, 255,0.1) 100%);
    border: 1px solid rgba(3, 102, 255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6aa6ff;
    font-size: 1rem;
    gap: 1px;
}
.brand-icon .fa-bolt { color: #f9d90a; }
.brand-icon .fa-faucet { color: #38bdf8; }

.sidebar-close {
    background: transparent;
    border: none;
    color: var(--sidebar-color);
    font-size: 1.15rem;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sidebar-close:hover { color: #fff; background: var(--sidebar-hover); }

/* Sidebar User Card */
.sidebar-user {
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--sidebar-border);
    background: rgba(255, 255, 255, 0.02);
}

.sidebar-user-avatar img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(255,255,255,0.15);
}

.avatar-placeholder {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0366ff, #0252d1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.sidebar-user-name {
    color: #f1f5f9;
    font-weight: 600;
    font-size: .88rem;
    margin-bottom: 3px;
    line-height: 1.2;
}

.sidebar-user-role {
    font-size: .68rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(3, 102, 255, 0.2);
    color: #93c5fd;
    display: inline-block;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Sidebar Nav Links */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 10px;
}

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

.sidebar-section-label {
    padding: 12px 12px 6px;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.5);
    letter-spacing: .08em;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    margin: 2px 0;
    color: var(--sidebar-color);
    font-size: .87rem;
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}

.sidebar-nav-icon {
    width: 20px;
    text-align: center;
    font-size: 1rem;
    opacity: .75;
    transition: var(--transition);
}

.sidebar-nav-item:hover {
    background: var(--sidebar-hover);
    color: #f8fafc;
    text-decoration: none;
}
.sidebar-nav-item:hover .sidebar-nav-icon { opacity: 1; color: #6aa6ff; }

.sidebar-nav-item.active {
    background: linear-gradient(90deg, rgba(3, 102, 255, 0.18) 0%, rgba(3, 102, 255, 0.05) 100%);
    color: #ffffff;
    font-weight: 600;
}

.sidebar-nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 3px;
    background: var(--primary);
    border-radius: 0 3px 3px 0;
    box-shadow: 0 0 8px rgba(3, 102, 255, 0.8);
}

.sidebar-nav-item.active .sidebar-nav-icon {
    opacity: 1;
    color: #6aa6ff;
}

.sidebar-divider {
    height: 1px;
    background: var(--sidebar-border);
    margin: 12px 6px;
}

/* ── MAIN AREA ─────────────────────────────────── */
.admin-main {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

/* Topbar */
.admin-topbar {
    height: var(--topbar-height);
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: var(--shadow-xs);
}

.sidebar-toggle {
    background: transparent;
    border: 1px solid var(--border);
    width: 38px;
    height: 38px;
    border-radius: 8px;
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-right: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.sidebar-toggle:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: var(--primary-soft);
}

.breadcrumb { font-size: .88rem; margin: 0; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-item.active { color: var(--text-main); font-weight: 600; }

.btn-icon {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    font-size: 1.1rem;
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.btn-icon:hover {
    color: var(--primary);
    background: var(--primary-soft);
    border-color: var(--border);
}

.notif-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: .62rem;
    padding: 2px 5px;
    border-radius: 10px;
    border: 1.5px solid #fff;
}

.avatar-xs-circle {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, #0366ff, #0252d1);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: .85rem;
    box-shadow: 0 2px 6px rgba(3, 102, 255,0.25);
}

/* Content Area */
.admin-content {
    padding: 24px;
    flex: 1;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--secondary);
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

/* ── STAT CARDS (SAAS LOOK) ─────────────────────── */
.stat-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    border-color: #cbd5e1;
}

.stat-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-xs);
    transition: var(--transition);
}
.stat-card:hover .stat-card-icon {
    transform: scale(1.05);
}

.stat-card-primary .stat-card-icon {
    background: linear-gradient(135deg, #eaf2ff 0%, #cfe2ff 100%);
    color: var(--primary);
    border: 1px solid #bfdbfe;
}
.stat-card-success .stat-card-icon {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: var(--success);
    border: 1px solid #a7f3d0;
}
.stat-card-warning .stat-card-icon {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    color: var(--warning);
    border: 1px solid #fde68a;
}
.stat-card-danger .stat-card-icon {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: var(--danger);
    border: 1px solid #fecaca;
}
.stat-card-info .stat-card-icon {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    color: var(--info);
    border: 1px solid #7dd3fc;
}
.stat-card-secondary .stat-card-icon {
    background: #f1f5f9;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.stat-card-body { flex: 1; min-width: 0; }

.stat-card-value {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 3px;
}

.stat-card-title {
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.stat-card-sub {
    font-size: .78rem;
    color: var(--text-muted);
    margin-top: 4px;
}

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

/* ── TABLES & CARDS ────────────────────────────── */
.card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    background: #ffffff;
}

.card-header {
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
}

.table-responsive {
    border-radius: var(--radius-lg);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table > :not(caption) > * > * {
    padding: 14px 20px;
    background-color: #ffffff;
    box-shadow: none !important;
}

.table {
    margin-bottom: 0 !important;
    width: 100% !important;
    border-collapse: collapse !important;
    --bs-table-bg: #ffffff;
    --bs-table-accent-bg: transparent;
    --bs-table-striped-bg: #ffffff;
    --bs-table-hover-bg: #f8fafc;
    --bs-table-hover-color: #0f172a;
}

.table th,
.table thead th {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
    background-color: #f8fafc !important;
    border-top: none;
    border-bottom: 1px solid #e2e8f0;
    padding: 13px 20px;
    white-space: nowrap;
    vertical-align: middle;
}

.table td,
.table tbody td {
    font-size: 0.875rem;
    vertical-align: middle;
    color: #1e293b;
    border-bottom: 1px solid #f1f5f9;
    padding: 14px 20px;
    background-color: #ffffff;
}

.table tbody tr:last-child td {
    border-bottom: none;
}

table.dataTable tbody tr,
table.table tbody tr {
    background-color: #ffffff !important;
    transition: background-color 0.15s ease;
}

.table-hover > tbody > tr:hover > *,
table.dataTable.table-hover > tbody > tr:hover > *,
table.dataTable.display > tbody > tr:hover > *,
table.dataTable tbody tr:hover > *,
table.table tbody tr:hover > * {
    --bs-table-bg-state: #f8fafc !important;
    --bs-table-accent-bg: #f8fafc !important;
    background-color: #f8fafc !important;
    box-shadow: none !important;
}

.service-thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    object-fit: cover;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

.service-thumb-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
}

/* Modern Status & Role Badges */
.badge {
    font-size: 0.74rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.01em;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}
.status-dot.active { background: #10b981; box-shadow: 0 0 6px rgba(16, 185, 129, 0.6); }
.status-dot.inactive { background: #94a3b8; }

.bg-success-soft   { background: #ecfdf5 !important; color: #065f46 !important; border: 1px solid #a7f3d0 !important; }
.bg-warning-soft   { background: #fffbeb !important; color: #b45309 !important; border: 1px solid #fde68a !important; }
.bg-danger-soft    { background: #fef2f2 !important; color: #991b1b !important; border: 1px solid #fecaca !important; }
.bg-info-soft      { background: #e0f2fe !important; color: #0369a1 !important; border: 1px solid #7dd3fc !important; }
.bg-primary-soft   { background: #eaf2ff !important; color: #0252d1 !important; border: 1px solid #bfdbfe !important; }
.bg-secondary-soft { background: #f1f5f9 !important; color: #475569 !important; border: 1px solid #e2e8f0 !important; }

/* Modern Soft Action Icon Buttons */
.btn-icon-soft {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    border: none;
    text-decoration: none;
    transition: all 0.18s ease;
}

.btn-icon-soft.primary {
    background: #eef2ff;
    color: #4361ee;
}
.btn-icon-soft.primary:hover {
    background: #4361ee;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(67, 97, 238, 0.25);
}

.btn-icon-soft.warning {
    background: #fffbeb;
    color: #d97706;
}
.btn-icon-soft.warning:hover {
    background: #d97706;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(217, 119, 6, 0.25);
}

.btn-icon-soft.danger {
    background: #fef2f2;
    color: #ef4444;
}
.btn-icon-soft.danger:hover {
    background: #ef4444;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(239, 68, 68, 0.25);
}

.btn-icon-soft.success {
    background: #ecfdf5;
    color: #10b981;
}
.btn-icon-soft.success:hover {
    background: #10b981;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(16, 185, 129, 0.25);
}

/* User Avatar Square-Rounded */
.avatar-circle,
.avatar-sm-circle {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.92rem;
    flex-shrink: 0;
}

/* Fractional Spacing & Typography Utilities */
.gap-1\.5 { gap: 0.4rem !important; }
.gap-2\.5 { gap: 0.65rem !important; }
.px-1\.5  { padding-left: 0.4rem !important; padding-right: 0.4rem !important; }
.px-2\.5  { padding-left: 0.65rem !important; padding-right: 0.65rem !important; }
.py-0\.5  { padding-top: 0.15rem !important; padding-bottom: 0.15rem !important; }
.py-1\.5  { padding-top: 0.4rem !important; padding-bottom: 0.4rem !important; }
.py-2\.5  { padding-top: 0.65rem !important; padding-bottom: 0.65rem !important; }
.me-1\.5  { margin-right: 0.4rem !important; }
.ms-1\.5  { margin-left: 0.4rem !important; }
.mx-1\.5  { margin-left: 0.4rem !important; margin-right: 0.4rem !important; }
.mt-0\.5  { margin-top: 0.15rem !important; }
.fs-xs    { font-size: 0.75rem !important; }

/* ── DATATABLES CUSTOM (SaaS Grade Edge-to-Edge Bootstrap 5 Integration) ── */
.dataTables_wrapper {
    padding: 0 !important;
}

.dataTables_wrapper > .row {
    margin: 0 !important;
    align-items: center;
}

.dataTables_wrapper > .row:first-child {
    padding: 16px 20px 14px;
    border-bottom: 1px solid #f1f5f9;
    background: #ffffff;
}

.dataTables_wrapper > .row:nth-child(2) {
    margin: 0 !important;
}

.dataTables_wrapper > .row:nth-child(2) > [class*="col-"] {
    padding: 0 !important;
}

.dataTables_wrapper > .row:last-child {
    padding: 12px 20px 14px;
    border-top: 1px solid #f1f5f9;
    background: #fcfdfe;
}

.dataTables_wrapper .dataTables_length {
    color: #64748b;
    font-size: 0.84rem;
    font-weight: 500;
}

.dataTables_wrapper .dataTables_length select {
    padding: 6px 28px 6px 12px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    background-color: #fff;
    margin: 0 6px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dataTables_wrapper .dataTables_length select:focus {
    border-color: #0366ff;
    box-shadow: 0 0 0 3px rgba(3, 102, 255, 0.12);
}

.dataTables_wrapper .dataTables_filter {
    text-align: right;
    color: #64748b;
    font-size: 0.84rem;
    font-weight: 500;
}

.dataTables_wrapper .dataTables_filter input {
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    margin-left: 8px;
    font-size: 0.86rem;
    color: #1e293b;
    background-color: #fff;
    outline: none;
    min-width: 220px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #0366ff;
    box-shadow: 0 0 0 3px rgba(3, 102, 255, 0.12);
}

.dataTables_wrapper .dataTables_info {
    font-size: 0.82rem;
    color: #64748b;
    font-weight: 500;
    padding-top: 4px;
}

.dataTables_wrapper .dataTables_paginate {
    padding-top: 2px;
    text-align: right;
}

.dataTables_wrapper .pagination {
    margin-bottom: 0;
}

.dataTables_wrapper .pagination .page-link {
    padding: 6px 13px;
    font-size: 0.83rem;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    color: #475569;
    border-radius: 8px;
    margin: 0 3px;
    transition: all 0.15s ease;
}

.dataTables_wrapper .pagination .page-link:hover {
    background-color: #f1f5f9;
    color: #0366ff;
    border-color: #cbd5e1;
}

.dataTables_wrapper .pagination .page-item.active .page-link {
    background-color: #0366ff !important;
    border-color: #0366ff !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(3, 102, 255, 0.3);
}

.dataTables_wrapper .pagination .page-item.disabled .page-link {
    color: #94a3b8;
    background-color: #f8fafc;
    border-color: #e2e8f0;
}

/* ── AUTH PAGES (ADMIN) — SPLIT SCREEN ENTERPRISE REDESIGN ── */
.admin-login-page {
    background: #070d1e;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Plus Jakarta Sans', var(--font);
    overflow-x: hidden;
}

.admin-auth-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background: #ffffff;
}

/* Left Hero Showcase */
.admin-auth-hero {
    flex: 1.15;
    background: linear-gradient(145deg, #070d1e 0%, #0c182e 50%, #152744 100%);
    position: relative;
    padding: 56px 64px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff;
    overflow: hidden;
}

.admin-auth-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(59, 130, 246, 0.22) 1.5px, transparent 1.5px);
    background-size: 28px 28px;
    opacity: 0.6;
    pointer-events: none;
}

.admin-auth-hero::after {
    content: '';
    position: absolute;
    width: 540px;
    height: 540px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(3, 102, 255, 0.28) 0%, rgba(3, 102, 255, 0) 70%);
    top: -120px;
    right: -120px;
    pointer-events: none;
}

.admin-hero-content {
    position: relative;
    z-index: 2;
    max-width: 580px;
    margin: auto 0;
}

.admin-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(3, 102, 255, 0.15);
    border: 1px solid rgba(3, 102, 255, 0.35);
    color: #60a5fa;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.admin-hero-badge .pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #38bdf8;
    box-shadow: 0 0 10px #38bdf8;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.admin-hero-title {
    font-family: 'Outfit', var(--font);
    font-size: 2.45rem;
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-bottom: 16px;
}

.admin-hero-title span {
    background: linear-gradient(135deg, #60a5fa, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.admin-hero-desc {
    color: #94a3b8;
    font-size: 1.02rem;
    line-height: 1.6;
    margin-bottom: 32px;
}

.admin-feature-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
}

.admin-feature-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.25s ease;
}

.admin-feature-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(96, 165, 250, 0.3);
    transform: translateX(4px);
}

.admin-feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.admin-feature-icon.icon-amber {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.admin-feature-icon.icon-emerald {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.admin-feature-icon.icon-blue {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
}

.admin-feature-text h6 {
    color: #f1f5f9;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 2px 0;
}

.admin-feature-text p {
    color: #94a3b8;
    font-size: 0.82rem;
    margin: 0;
}

.admin-hero-footer {
    position: relative;
    z-index: 2;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748b;
    font-size: 0.8rem;
}

/* Right Form Panel */
.admin-auth-panel {
    flex: 0.95;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 36px;
    position: relative;
}

.admin-auth-card {
    width: 100%;
    max-width: 440px;
}

.admin-auth-header {
    margin-bottom: 26px;
}

.admin-auth-title {
    font-family: 'Outfit', var(--font);
    font-size: 1.85rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin: 0 0 6px 0;
}

.admin-auth-sub {
    color: #64748b;
    font-size: 0.92rem;
    margin: 0;
}

.admin-input-group {
    border-radius: 10px;
    overflow: hidden;
}

.admin-input-group .input-group-text {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #64748b;
    padding-left: 14px;
    padding-right: 14px;
}

.admin-input-group .form-control {
    border-color: #cbd5e1;
    font-size: 0.95rem;
    padding-top: 12px;
    padding-bottom: 12px;
    color: #0f172a;
    transition: all 0.2s ease;
}

.admin-input-group .form-control:focus {
    border-color: #0366ff;
    box-shadow: 0 0 0 4px rgba(3, 102, 255, 0.12);
}

.admin-login-submit-btn {
    background: linear-gradient(135deg, #0366ff 0%, #0052cc 100%);
    border: none;
    padding: 13px 20px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(3, 102, 255, 0.35);
    transition: all 0.2s ease;
}

.admin-login-submit-btn:hover {
    background: linear-gradient(135deg, #0052cc 0%, #003e99 100%);
    box-shadow: 0 6px 20px rgba(3, 102, 255, 0.45);
    transform: translateY(-1px);
}

.admin-login-submit-btn:active {
    transform: translateY(0);
}

/* ── Mobile & Tablet Optimizations ── */
@media (max-width: 991.98px) {
    .admin-auth-hero { display: none !important; }
    .admin-auth-panel {
        padding: 32px 18px;
        min-height: 100vh;
        background: #f8fafc;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .admin-auth-card {
        background: #ffffff;
        padding: 32px 24px;
        border-radius: 20px;
        box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
        border: 1px solid #e9edf3;
        max-width: 420px;
        margin: 0 auto;
    }
    .admin-auth-title {
        font-size: 1.55rem;
    }
    .admin-auth-sub {
        font-size: 0.88rem;
    }
}

@media (max-width: 480px) {
    .admin-auth-panel {
        padding: 16px 12px;
        background: #ffffff;
    }
    .admin-auth-card {
        padding: 24px 14px;
        border: none;
        box-shadow: none;
        border-radius: 0;
        max-width: 100%;
    }
    .admin-input-group .form-control {
        font-size: 0.92rem;
        padding-top: 11px;
        padding-bottom: 11px;
    }
    .admin-input-group .input-group-text {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* ── RESPONSIVE ────────────────────────────────── */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(11, 15, 25, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1030;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.sidebar-overlay.show { opacity: 1; visibility: visible; }

/* Mobile & Tablet (< 992px) */
@media (max-width: 991.98px) {
    .admin-sidebar {
        transform: translateX(-100%);
        box-shadow: 0 0 30px rgba(0,0,0,0.4);
    }
    .admin-sidebar.open {
        transform: translateX(0);
    }
    .admin-main { margin-left: 0; }
    .sidebar-toggle { display: flex; }
    .sidebar-close { display: flex; }
    .admin-topbar { padding: 0 16px; }
    .admin-content { padding: 18px 14px; }
    .page-title { font-size: 1.35rem; }
}

/* Desktop (>= 992px) */
@media (min-width: 992px) {
    .sidebar-toggle { display: none; }
    .sidebar-close { display: none; }
}

/* Small Phones (< 576px) */
@media (max-width: 575.98px) {
    .stat-card {
        padding: 16px 14px;
        gap: 14px;
    }
    .stat-card-icon {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }
    .stat-card-value {
        font-size: 1.35rem;
    }
    .card-header {
        padding: 14px 16px;
    }
}

/* Footer */
.admin-footer {
    padding: 16px 24px;
    background: #fff;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    font-size: .84rem;
    color: var(--text-muted);
    margin-top: auto;
}

/* ── LOGO ── */
.admin-logo { height: 36px; width: auto; border-radius: 999px; display: block; }
.admin-login-logo { height: 64px; width: auto; border-radius: 999px; margin-bottom: 14px; }
.sidebar-brand .brand-name { font-size: .95rem; font-weight: 700; color: #f9d90a; letter-spacing: .02em; text-transform: uppercase; }

/* ── SETTINGS PAGE STYLING ── */
.settings-nav-pills .nav-link {
    color: #475569;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.15s ease;
    border: 1px solid transparent;
}

.settings-nav-pills .nav-link:hover {
    background: #f1f5f9;
    color: #0366ff;
}

.settings-nav-pills .nav-link.active {
    background: #0366ff !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(3, 102, 255, 0.25);
}

.settings-nav-pills .nav-link.active i {
    color: #ffffff !important;
}

.text-purple {
    color: #8b5cf6 !important;
}

/* ── CUSTOMER & PARTNER DETAIL CARDS ── */
.customer-avatar-lg {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #0366ff 0%, #4f46e5 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(3, 102, 255, 0.28);
    border: 3px solid #ffffff;
}

.customer-profile-banner {
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    border-bottom: 1px solid #e2e8f0;
    padding: 24px 20px;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
}

.info-item-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #edf2f7;
    transition: all 0.15s ease;
}

.info-item-box:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.info-item-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.address-tile {
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    padding: 16px;
    background: #ffffff;
    transition: all 0.18s ease;
    position: relative;
}

.address-tile:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.08);
}

.address-tile.is-default {
    border-color: #93c5fd;
    background: #fbfdff;
}

.address-tile-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #eff6ff;
    color: #0252d1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.quick-action-pill {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.quick-action-pill.whatsapp {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}
.quick-action-pill.whatsapp:hover {
    background: #10b981;
    color: #ffffff;
}

.quick-action-pill.call {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}
.quick-action-pill.call:hover {
    background: #2563eb;
    color: #ffffff;
}

