/* ============================================
   CONTAFÁCIL — TEMA CLARO
   ============================================ */
:root {
    --sidebar-w: 256px;
    --topbar-h: 62px;
    --bg-base: #f0f2f7;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --bg-hover: #f5f7fb;
    --border: #e3e8f0;
    --border-strong: #cdd5e0;
    --accent: #3b6ef5;
    --accent-dark: #2d5bd6;
    --accent-light: #eef2ff;
    --accent-glow: rgba(59,110,245,0.18);
    --green: #16a34a;
    --green-light: #dcfce7;
    --red: #dc2626;
    --red-light: #fee2e2;
    --yellow: #d97706;
    --yellow-light: #fef3c7;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    --sidebar-bg: #ffffff;
    --sidebar-text: #4b5563;
    --sidebar-hover: #f3f4f6;
    --sidebar-border: #e5e7eb;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-display: 'Plus Jakarta Sans', sans-serif;
    --radius: 10px;
    --radius-sm: 7px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --transition: all 0.18s ease;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: var(--font-body); background: var(--bg-base); color: var(--text-primary); font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; }

/* SIDEBAR */
.sidebar { position: fixed; top: 0; left: 0; width: var(--sidebar-w); height: 100vh; background: var(--sidebar-bg); display: flex; flex-direction: column; z-index: 1000; transition: transform 0.3s cubic-bezier(.4,0,.2,1); overflow: hidden; border-right: 1px solid #e5e7eb; box-shadow: 2px 0 12px rgba(0,0,0,0.06); }
.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 18px 18px 16px; border-bottom: 1px solid #e5e7eb; }
.brand-icon { width: 38px; height: 38px; background: var(--accent); border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 17px; color: #fff; flex-shrink: 0; box-shadow: 0 4px 12px rgba(59,110,245,0.45); }
.brand-name { display: block; font-family: var(--font-display); font-size: 15px; font-weight: 700; color: #fff; }
.brand-sub { display: block; font-size: 11px; color: var(--sidebar-text); }
.sidebar-nav { flex: 1; padding: 10px; overflow-y: auto; }
.nav-section-label { font-size: 10px; font-weight: 600; letter-spacing: 1.1px; text-transform: uppercase; color: #9ca3af; padding: 14px 8px 5px; }
.nav-item { display: flex; align-items: center; gap: 9px; padding: 8px 11px; border-radius: var(--radius-sm); color: #374151; text-decoration: none; font-weight: 500; font-size: 13px; transition: var(--transition); margin-bottom: 1px; }
.nav-item i { font-size: 16px; flex-shrink: 0; }
.nav-item:hover { background: var(--sidebar-hover); color: #111827; }
.nav-item.active { background: rgba(59,110,245,0.10); color: var(--accent); font-weight: 600; }
.nav-item.active i { color: var(--accent); }
.sidebar-footer { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid #e5e7eb; background: #fafafa; }
.user-avatar { width: 32px; height: 32px; background: linear-gradient(135deg, var(--accent), #7c3aed); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: #fff; flex-shrink: 0; }
.user-details { flex: 1; min-width: 0; }
.user-name { display: block; font-size: 12.5px; font-weight: 600; color: #111827; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { display: block; font-size: 11px; color: #9ca3af; }
.btn-logout { color: #9ca3af; font-size: 17px; padding: 4px; border-radius: 6px; transition: var(--transition); text-decoration: none; line-height: 1; }
.btn-logout:hover { color: #f87171; }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.3); z-index: 999; }

/* MAIN */
.main-wrapper { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; transition: margin-left 0.3s cubic-bezier(.4,0,.2,1); }
.topbar { height: var(--topbar-h); background: var(--bg-surface); border-bottom: 1px solid var(--border); display: flex; align-items: center; padding: 0 24px; gap: 14px; position: sticky; top: 0; z-index: 100; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.topbar-toggle { background: none; border: none; color: var(--text-secondary); font-size: 21px; cursor: pointer; padding: 5px; border-radius: 7px; transition: var(--transition); display: none; }
.topbar-toggle:hover { color: var(--text-primary); background: var(--bg-hover); }
.topbar-title { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--text-primary); flex: 1; }
.topbar-date { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 5px; background: var(--bg-hover); padding: 5px 12px; border-radius: 99px; border: 1px solid var(--border); }
.page-content { flex: 1; padding: 26px 28px; max-width: 1400px; width: 100%; }

/* CARDS */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-header { background: transparent; border-bottom: 1px solid var(--border); padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card-title { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: var(--text-primary); margin: 0; }
.card-body { padding: 18px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; position: relative; overflow: hidden; transition: var(--transition); box-shadow: var(--shadow-sm); }
.stat-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.stat-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--accent); border-radius: var(--radius) var(--radius) 0 0; }
.stat-card.green::after { background: var(--green); }
.stat-card.red::after { background: var(--red); }
.stat-card.yellow::after { background: var(--yellow); }
.stat-icon { width: 42px; height: 42px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 19px; margin-bottom: 12px; background: var(--accent-light); color: var(--accent); }
.stat-icon.green { background: var(--green-light); color: var(--green); }
.stat-icon.red { background: var(--red-light); color: var(--red); }
.stat-icon.yellow { background: var(--yellow-light); color: var(--yellow); }
.stat-value { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--text-primary); line-height: 1.2; }
.stat-label { font-size: 11.5px; color: var(--text-muted); margin-top: 3px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.4px; }

/* BOTÕES */
.btn { font-family: var(--font-body); font-weight: 600; font-size: 13px; border-radius: var(--radius-sm); padding: 7px 15px; border: none; transition: var(--transition); display: inline-flex; align-items: center; gap: 6px; cursor: pointer; line-height: 1.4; text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; box-shadow: 0 4px 12px var(--accent-glow); }
.btn-success { background: var(--green); color: #fff; }
.btn-success:hover { background: #15803d; color: #fff; }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #b91c1c; color: #fff; }
.btn-warning { background: var(--yellow); color: #fff; }
.btn-warning:hover { background: #b45309; color: #fff; }
.btn-secondary { background: var(--bg-hover); color: var(--text-secondary); border: 1px solid var(--border); }
.btn-secondary:hover { color: var(--text-primary); background: var(--border); }
.btn-info { background: #0891b2; color: #fff; }
.btn-info:hover { background: #0e7490; color: #fff; }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-icon { width: 32px; height: 32px; padding: 0; justify-content: center; }

/* FORMULÁRIOS */
.form-label { font-size: 12px; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 5px; display: block; }
.form-control, .form-select { background: var(--bg-surface); border: 1.5px solid var(--border); color: var(--text-primary); border-radius: var(--radius-sm); padding: 8px 11px; font-family: var(--font-body); font-size: 13.5px; transition: var(--transition); width: 100%; }
.form-control:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); outline: none; background: #fff; }
.form-control::placeholder { color: var(--text-muted); }
.input-group { display: flex; align-items: stretch; }
.input-group .form-control { border-radius: 0; flex: 1; }
.input-group .input-group-text:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group .form-control:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.input-group .input-group-text:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.input-group-text { background: var(--bg-hover); border: 1.5px solid var(--border); color: var(--text-muted); padding: 8px 11px; font-size: 14px; line-height: 1; display: flex; align-items: center; }
.form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.row { display: flex; flex-wrap: wrap; margin: 0 -8px; }
.col-12 { flex: 0 0 100%; max-width: 100%; padding: 0 8px; }
.col-md-2 { flex: 0 0 16.666%; max-width: 16.666%; padding: 0 8px; }
.col-md-3 { flex: 0 0 25%; max-width: 25%; padding: 0 8px; }
.col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; padding: 0 8px; }
.col-md-5 { flex: 0 0 41.666%; max-width: 41.666%; padding: 0 8px; }
.col-md-6 { flex: 0 0 50%; max-width: 50%; padding: 0 8px; }
.col-md-7 { flex: 0 0 58.333%; max-width: 58.333%; padding: 0 8px; }
.col-md-8 { flex: 0 0 66.666%; max-width: 66.666%; padding: 0 8px; }
.col-md-9 { flex: 0 0 75%; max-width: 75%; padding: 0 8px; }
.col-6 { flex: 0 0 50%; max-width: 50%; padding: 0 8px; }
.col-lg-3 { flex: 0 0 25%; max-width: 25%; padding: 0 8px; }
.col-xl-5 { flex: 0 0 41.666%; max-width: 41.666%; padding: 0 8px; }
.col-xl-7 { flex: 0 0 58.333%; max-width: 58.333%; padding: 0 8px; }
.g-3 > * { margin-bottom: 16px; }
.g-2 > * { margin-bottom: 8px; }
.mb-1 { margin-bottom: 4px; } .mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 16px; } .mb-4 { margin-bottom: 24px; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 16px; }
.me-1 { margin-right: 4px; } .me-2 { margin-right: 8px; }
.p-0 { padding: 0; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-3 { padding-top: 12px; padding-bottom: 12px; }
.py-4 { padding-top: 24px; padding-bottom: 24px; }
.py-5 { padding-top: 32px; padding-bottom: 32px; }
.px-0 { padding-left: 0; padding-right: 0; }
.w-100 { width: 100%; }
.h-100 { height: 100%; }
.d-flex { display: flex; }
.d-none { display: none; }
.align-items-center { align-items: center; }
.align-items-end { align-items: flex-end; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 16px; }
.text-center { text-align: center; }
.text-end { text-align: right; }

/* TABELAS */
.table { color: var(--text-primary); margin: 0; width: 100%; border-collapse: collapse; }
.table thead th { background: var(--bg-hover); border-bottom: 2px solid var(--border); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.7px; color: var(--text-muted); padding: 11px 16px; white-space: nowrap; }
.table tbody tr { border-bottom: 1px solid var(--border); transition: var(--transition); }
.table tbody tr:last-child { border-bottom: none; }
.table tbody tr:hover td { background: var(--bg-hover); }
.table tbody td { padding: 11px 16px; vertical-align: middle; }
tfoot td { padding: 11px 16px; }

/* DataTable */
.dataTables_wrapper { padding: 16px; }
.dataTables_wrapper .dataTables_length, .dataTables_wrapper .dataTables_filter, .dataTables_wrapper .dataTables_info, .dataTables_wrapper .dataTables_paginate { color: var(--text-secondary) !important; font-size: 12.5px; }
.dataTables_wrapper .dataTables_filter { text-align: right; }
.dataTables_wrapper .dataTables_filter input { background: var(--bg-surface) !important; border: 1.5px solid var(--border) !important; color: var(--text-primary) !important; border-radius: var(--radius-sm) !important; padding: 6px 10px; margin-left: 6px; }
.dataTables_wrapper .dataTables_paginate .paginate_button { color: var(--text-secondary) !important; border-radius: var(--radius-sm) !important; border: 1px solid transparent !important; padding: 4px 9px !important; }
.dataTables_wrapper .dataTables_paginate .paginate_button.current, .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover { background: var(--accent) !important; color: #fff !important; border-color: var(--accent) !important; }
.dataTables_wrapper .dataTables_paginate .paginate_button:hover { background: var(--bg-hover) !important; color: var(--text-primary) !important; border-color: var(--border) !important; }
.dataTables_wrapper .dataTables_length select { background: var(--bg-surface) !important; border: 1.5px solid var(--border) !important; color: var(--text-primary) !important; border-radius: 6px; padding: 4px 8px; margin: 0 5px; }

/* BADGES */
.badge-status { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; border: 1px solid transparent; }
.badge-status::before { content:''; width:5px; height:5px; border-radius:50%; background:currentColor; flex-shrink:0; }
.badge-ativo { background: var(--green-light); color: var(--green); border-color: #bbf7d0; }
.badge-inativo { background: #f3f4f6; color: #6b7280; border-color: #e5e7eb; }
.badge-suspenso { background: var(--yellow-light); color: var(--yellow); border-color: #fde68a; }
.badge-pago { background: var(--green-light); color: var(--green); border-color: #bbf7d0; }
.badge-pendente { background: var(--yellow-light); color: var(--yellow); border-color: #fde68a; }
.badge-atrasado { background: var(--red-light); color: var(--red); border-color: #fecaca; }
.badge-cancelado { background: #f3f4f6; color: #6b7280; border-color: #e5e7eb; }
.badge-entrada { background: var(--green-light); color: var(--green); border-color: #bbf7d0; }
.badge-saida { background: var(--red-light); color: var(--red); border-color: #fecaca; }

/* MODAL */
.modal-content { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.modal-header { border-bottom: 1px solid var(--border); padding: 16px 22px; }
.modal-title { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--text-primary); }
.modal-footer { border-top: 1px solid var(--border); padding: 12px 22px; }
.modal-body { padding: 22px; }
.btn-close { opacity: 0.4; background: none; border: none; font-size: 18px; cursor: pointer; }
.btn-close:hover { opacity: 0.7; }

/* PAGE HEADER */
.page-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; flex-wrap: wrap; gap: 12px; }
.page-header-title { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--text-primary); margin: 0; line-height: 1.2; }
.page-header-sub { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* ALERTS */
.alert { border-radius: var(--radius-sm); border: 1px solid; padding: 11px 14px; font-size: 13.5px; margin-bottom: 16px; }
.alert-success { background: var(--green-light); border-color: #86efac; color: #15803d; }
.alert-danger { background: var(--red-light); border-color: #fca5a5; color: var(--red); }
.alert-warning { background: var(--yellow-light); border-color: #fcd34d; color: var(--yellow); }
.alert-info { background: var(--accent-light); border-color: #bfdbfe; color: var(--accent); }

/* UTILS */
.text-green { color: var(--green) !important; }
.text-red { color: var(--red) !important; }
.text-yellow { color: var(--yellow) !important; }
.text-accent { color: var(--accent) !important; }
.text-muted { color: var(--text-muted) !important; }
.fw-semibold { font-weight: 600; }
.fw-bold { font-weight: 700; }
.fs-xs { font-size: 11.5px; }
hr { border: none; border-top: 1px solid var(--border); margin: 16px 0; }
.divider-text { display: flex; align-items: center; gap: 10px; font-size: 10.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin: 18px 0; }
.divider-text::before, .divider-text::after { content:''; flex:1; height:1px; background:var(--border); }

/* LOGIN */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #eef2ff 0%, #f0f4ff 40%, #f5f7ff 100%); }
.login-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 44px 38px; width: 100%; max-width: 410px; box-shadow: 0 20px 60px rgba(59,110,245,0.12); }
.login-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; }
.login-logo .logo-icon { width: 46px; height: 46px; background: var(--accent); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #fff; box-shadow: 0 6px 20px var(--accent-glow); }
.login-logo .logo-name { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--text-primary); }

/* RESPONSIVE */
@media (max-width: 992px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
    .sidebar-overlay.show { display: block; }
    .main-wrapper { margin-left: 0; }
    .topbar-toggle { display: flex; }
    .page-content { padding: 18px 14px; }
    .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9 { flex: 0 0 100%; max-width: 100%; }
}
@media (max-width: 576px) {
    .login-card { padding: 28px 20px; margin: 16px; }
    .col-6 { flex: 0 0 100%; max-width: 100%; }
}

/* SweetAlert */
.swal2-popup { border-radius: var(--radius) !important; }
.swal2-confirm { background: var(--accent) !important; border-radius: var(--radius-sm) !important; }
.swal2-cancel { border-radius: var(--radius-sm) !important; }

/* Serviços extras */
.tbl-servicos { width: 100%; border-collapse: collapse; }
.tbl-servicos td { padding: 4px 5px; vertical-align: middle; }
.btn-rmv { background: none; border: none; color: var(--red); cursor: pointer; padding: 2px 6px; font-size: 15px; border-radius: 4px; }
.btn-rmv:hover { background: var(--red-light); }

/* Form check */
.form-check { display: flex; align-items: center; gap: 8px; }
.form-check-input { width: 16px; height: 16px; border: 2px solid var(--border-strong); border-radius: 3px; cursor: pointer; }
.form-check-label { font-size: 13px; color: var(--text-secondary); cursor: pointer; }

/* ============================================
   MODAL FIX — scroll garantido
   ============================================ */

/* 1. O container .modal precisa rolar quando o dialog for maior que a tela */
.modal {
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

/* 2. O dialog ocupa no máximo a tela com margem */
.modal-dialog {
    margin: 16px auto !important;
    max-height: calc(100vh - 32px) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
}

/* 3. O content é flex-column e nunca ultrapassa o dialog */
.modal-content {
    display: flex !important;
    flex-direction: column !important;
    max-height: calc(100vh - 32px) !important;
    overflow: hidden !important;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

/* 4. Header e footer nunca encolhem */
.modal-header {
    flex: 0 0 auto !important;
    border-bottom: 1px solid var(--border);
    padding: 14px 20px;
}
.modal-footer {
    flex: 0 0 auto !important;
    border-top: 1px solid var(--border);
    padding: 12px 20px;
}

/* 5. Body ocupa o espaço restante e rola */
.modal-body {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    min-height: 0 !important;
    padding: 20px;
}

/* 6. Scrollbar fina dentro do modal */
.modal-body::-webkit-scrollbar       { width: 4px; }
.modal-body::-webkit-scrollbar-track { background: transparent; }
.modal-body::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; }

/* 7. modal-lg: limita largura mas mantém scroll */
.modal-lg { max-width: 860px !important; }

/* 8. Versões com -scrollable do Bootstrap (compatibilidade) */
.modal-dialog-scrollable            { max-height: calc(100vh - 32px) !important; }
.modal-dialog-scrollable .modal-content { max-height: 100% !important; }
.modal-dialog-scrollable .modal-body    { overflow-y: auto !important; }
.modal-dialog-scrollable .modal-body {
    max-height: 80vh;
    overflow-y: auto;
}
/* ============================================
   TEMA ESCURO DO SIDEBAR (toggle)
   ============================================ */
body.sidebar-dark {
    --sidebar-bg:     #1e2a3a;
    --sidebar-text:   #94a3b8;
    --sidebar-hover:  rgba(255,255,255,0.07);
    --sidebar-border: rgba(255,255,255,0.06);
}
body.sidebar-dark .sidebar {
    background: #1e2a3a;
    border-right-color: rgba(255,255,255,0.06);
    box-shadow: 2px 0 12px rgba(0,0,0,0.25);
}
body.sidebar-dark .sidebar-brand {
    border-bottom-color: rgba(255,255,255,0.06);
}
body.sidebar-dark .nav-section-label { color: #475569; }
body.sidebar-dark .nav-item { color: #94a3b8; }
body.sidebar-dark .nav-item:hover { background: rgba(255,255,255,0.07); color: #e2e8f0; }
body.sidebar-dark .nav-item.active { background: rgba(59,110,245,0.18); color: #7ba7fa; }
body.sidebar-dark .nav-item.active i { color: #7ba7fa; }
body.sidebar-dark .user-name { color: #e2e8f0; }
body.sidebar-dark .user-role { color: #64748b; }
body.sidebar-dark .btn-logout { color: #64748b; }
body.sidebar-dark .sidebar-footer { background: transparent; border-top-color: rgba(255,255,255,0.06); }

/* Botão de toggle do tema */
.btn-theme-toggle {
    background: none;
    border: 1px solid var(--sidebar-border);
    border-radius: 99px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--sidebar-text);
    transition: var(--transition);
    width: 100%;
    margin-top: 8px;
    justify-content: center;
    letter-spacing: 0.3px;
}
.btn-theme-toggle:hover {
    background: var(--sidebar-hover);
    color: var(--text-primary);
}
body.sidebar-dark .btn-theme-toggle {
    border-color: rgba(255,255,255,0.1);
    color: #94a3b8;
}
body.sidebar-dark .btn-theme-toggle:hover {
    background: rgba(255,255,255,0.07);
    color: #e2e8f0;
}
.theme-icon-light { display: inline; }
.theme-icon-dark  { display: none;   }
body.sidebar-dark .theme-icon-light { display: none;   }
body.sidebar-dark .theme-icon-dark  { display: inline; }
