/* =========================================================
   BurnTrack UI
   ========================================================= */

:root {
    --bt-bg: #f3f6fb;
    --bt-surface: #ffffff;
    --bt-surface-soft: #f8fafc;
    --bt-border: #e5e9f2;
    --bt-border-strong: #d6dce8;
    --bt-text: #1e293b;
    --bt-text-soft: #64748b;
    --bt-heading: #0f172a;
    --bt-primary: #2563eb;
    --bt-primary-dark: #1d4ed8;
    --bt-success: #16a34a;
    --bt-success-soft: rgba(22, 163, 74, 0.12);
    --bt-danger: #dc2626;
    --bt-danger-soft: rgba(220, 38, 38, 0.12);
    --bt-warning: #d97706;
    --bt-warning-soft: rgba(217, 119, 6, 0.12);
    --bt-info: #2563eb;
    --bt-info-soft: rgba(37, 99, 235, 0.12);
    --bt-shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04);
    --bt-shadow-md: 0 10px 25px rgba(0, 0, 0, 0.06);
}

/* =========================================================
   GLOBAL
   ========================================================= */

html,
body {
    min-height: 100%;
}

body {
    background: var(--bt-bg);
    color: var(--bt-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
}

a {
    text-decoration: none;
    color: var(--bt-primary);
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--bt-heading);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.text-muted {
    color: var(--bt-text-soft) !important;
}

/* =========================================================
   LAYOUT
   ========================================================= */

.bt-app-shell {
    display: flex;
    min-height: 100vh;
}

.bt-main-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.bt-main-content {
    flex: 1;
    padding: 22px;
}

.bt-content-wrap {
    min-width: 0;
}

/* =========================================================
   SIDEBAR
   ========================================================= */

.bt-sidebar {
    width: 260px;
    min-width: 260px;
    background: #0f172a;
    color: #fff;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    transition: width 0.25s ease, min-width 0.25s ease, transform 0.25s ease;
    z-index: 1040;
}

.bt-sidebar-top {
    padding: 22px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bt-brand-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.bt-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 800;
    font-size: 1.2rem;
}

.bt-brand:hover {
    color: #dbeafe;
}

.bt-brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.25);
    font-weight: 800;
    flex: 0 0 36px;
}

.bt-brand-name {
    white-space: nowrap;
}

.bt-brand-subtitle {
    margin-top: 8px;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.4;
}

.bt-sidebar-nav {
    padding: 18px 14px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex: 1;
    overflow-y: auto;
}

.bt-nav-group-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7f8ea3;
    padding: 0 8px;
    font-weight: 700;
}

.bt-nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    color: #d7e1ee;
    font-weight: 600;
    transition: 0.15s;
    border: 1px solid transparent;
}

.bt-nav-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.bt-nav-link.active {
    background: rgba(37, 99, 235, 0.2);
    border: 1px solid rgba(96, 165, 250, 0.35);
    color: #fff;
}

.bt-nav-link.active::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 8px;
    bottom: 8px;
    width: 4px;
    border-radius: 999px;
    background: #60a5fa;
}

.bt-nav-icon {
    width: 22px;
    min-width: 22px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bt-nav-icon i,
.bt-stat-icon i,
.bt-widget-icon i,
.bt-inline-icon i {
    font-size: 1rem;
    line-height: 1;
}

.bt-nav-text {
    white-space: nowrap;
}

.bt-sidebar-bottom {
    margin-top: auto;
}

.bt-sidebar-toggle,
.bt-sidebar-close {
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 1.35rem;
    line-height: 1;
    border-radius: 10px;
    padding: 8px 10px;
    cursor: pointer;
}

.bt-sidebar-toggle:hover,
.bt-sidebar-close:hover {
    background: rgba(15, 23, 42, 0.08);
}
.bt-nav-collapsible {
    border-radius: 14px;
    margin-bottom: 0.35rem;
}

.bt-nav-collapsible-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: transparent;
    border: 0;
    color: #cbd5e1;
    padding: 0.7rem 0.8rem;
    font-weight: 700;
    text-align: left;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.bt-nav-collapsible-toggle:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
}

.bt-nav-collapsible.is-open .bt-nav-collapsible-toggle {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.bt-nav-collapsible-left {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
}

.bt-nav-collapsible-icon {
    width: 20px;
    display: inline-flex;
    justify-content: center;
    font-size: 1rem;
    opacity: 0.95;
}

.bt-nav-collapsible-caret {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    opacity: 0.9;
    transition: transform 0.2s ease;
}

.bt-nav-collapsible.is-open .bt-nav-collapsible-caret {
    transform: rotate(180deg);
}

.bt-nav-collapsible-body {
    display: none;
    margin-top: 0.3rem;
    padding-left: 0.9rem;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    margin-left: 1rem;
}

.bt-nav-collapsible.is-open .bt-nav-collapsible-body {
    display: block;
}

.bt-nav-collapsible-body .bt-nav-link {
    margin-bottom: 0.2rem;
    font-size: 0.95rem;
}

/* =========================================================
   USER BOX
   ========================================================= */

.bt-user-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 12px;
}

.bt-user-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 12px;
    background: #1e293b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.bt-user-label {
    font-size: 12px;
    color: #94a3b8;
}

.bt-user-name {
    font-weight: 700;
    color: #fff;
}

.bt-logout-form .btn {
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.bt-logout-form .btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.35);
}

/* =========================================================
   TOPBAR
   ========================================================= */

.bt-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #fff;
    border-bottom: 1px solid var(--bt-border);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.bt-topbar-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.bt-topbar-title {
    font-weight: 800;
    font-size: 18px;
    color: var(--bt-heading);
}

.bt-topbar-subtitle {
    font-size: 13px;
    color: var(--bt-text-soft);
}

.bt-topbar-right {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* =========================================================
   THEME SWITCH
   ========================================================= */

.bt-theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--bt-border);
    background: #fff;
    border-radius: 10px;
    padding: 6px 12px;
    cursor: pointer;
    font-weight: 700;
    color: var(--bt-heading);
}

.bt-theme-toggle:hover {
    background: #f8fafc;
}

.bt-theme-toggle-icon {
    font-size: 1rem;
    line-height: 1;
}

.bt-theme-toggle-text {
    font-size: 0.9rem;
    white-space: nowrap;
}

/* =========================================================
   BREADCRUMBS / FOOTER
   ========================================================= */

.breadcrumb {
    margin-bottom: 0;
}

.bt-footer {
    padding: 14px 18px;
    border-top: 1px solid var(--bt-border);
    background: #fff;
}

/* =========================================================
   CARDS
   ========================================================= */

.bt-card,
.card {
    border: 1px solid var(--bt-border);
    border-radius: 14px;
    background: var(--bt-surface);
    box-shadow: var(--bt-shadow-sm);
}

.card-header {
    background: var(--bt-surface-soft);
    border-bottom: 1px solid var(--bt-border);
}

/* =========================================================
   SUMMARY / WIDGETS
   ========================================================= */

.bt-summary-box {
    padding: 16px;
    border-radius: 14px;
    background: var(--bt-surface);
    border: 1px solid var(--bt-border);
}

.bt-summary-value {
    font-size: 26px;
    font-weight: 800;
}

.bt-summary-label {
    font-size: 13px;
    color: var(--bt-text-soft);
}

.bt-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 18px;
}

.bt-col-12 { grid-column: span 12; }
.bt-col-8  { grid-column: span 8; }
.bt-col-6  { grid-column: span 6; }
.bt-col-4  { grid-column: span 4; }
.bt-col-3  { grid-column: span 3; }

.bt-widget {
    position: relative;
    overflow: hidden;
    background: var(--bt-surface);
    border: 1px solid var(--bt-border);
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--bt-shadow-sm);
}

.bt-widget::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 90px;
    height: 90px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.10) 0%, rgba(37, 99, 235, 0) 70%);
    pointer-events: none;
}

.bt-widget-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.bt-widget-label {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--bt-text-soft);
}

.bt-widget-title {
    margin-top: 4px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--bt-heading);
}

.bt-widget-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bt-info-soft);
    color: var(--bt-primary);
    border: 1px solid rgba(37, 99, 235, 0.12);
    flex: 0 0 42px;
}

.bt-widget-value {
    font-size: 2rem;
    line-height: 1.1;
    font-weight: 800;
    color: var(--bt-heading);
}

.bt-widget-subtext {
    margin-top: 8px;
    color: var(--bt-text-soft);
    font-size: 0.9rem;
}

.bt-widget-positive .bt-widget-icon {
    background: var(--bt-danger-soft);
    color: var(--bt-danger);
}

.bt-widget-negative .bt-widget-icon {
    background: var(--bt-success-soft);
    color: var(--bt-success);
}

.bt-widget-neutral .bt-widget-icon {
    background: rgba(100, 116, 139, 0.10);
    color: #475569;
}

.bt-kpi-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

/* =========================================================
   PROGRESS
   ========================================================= */

.bt-progress-wrap {
    margin-top: 12px;
}

.bt-progress-labels {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.84rem;
    color: var(--bt-text-soft);
    margin-bottom: 6px;
}

.bt-progress {
    position: relative;
    width: 100%;
    height: 12px;
    background: #e8eef7;
    border-radius: 999px;
    overflow: hidden;
}

.bt-progress-bar {
    height: 100%;
    border-radius: 999px;
    transition: width 0.25s ease;
}

.bt-progress-primary {
    background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
}

.bt-progress-success {
    background: linear-gradient(90deg, #22c55e 0%, #15803d 100%);
}

.bt-progress-danger {
    background: linear-gradient(90deg, #f87171 0%, #dc2626 100%);
}

.bt-progress-warning {
    background: linear-gradient(90deg, #fbbf24 0%, #d97706 100%);
}

/* =========================================================
   FASTING
   ========================================================= */

.bt-fasting-live {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.06) 0%, rgba(37, 99, 235, 0.02) 100%);
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--bt-shadow-sm);
}

.bt-fasting-live-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.bt-fasting-live-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--bt-heading);
}

.bt-fasting-live-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    background: var(--bt-info-soft);
    color: var(--bt-primary);
}

.bt-fasting-live-time {
    font-size: 2.25rem;
    line-height: 1;
    font-weight: 800;
    color: var(--bt-primary);
    letter-spacing: -0.03em;
}

.bt-fasting-live-meta {
    margin-top: 8px;
    font-size: 0.92rem;
    color: var(--bt-text-soft);
}
.bt-fast-quick-card {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    border: 1px solid #dbeafe;
    border-radius: 18px;
    padding: 1.1rem 1.1rem 1rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.bt-fast-quick-card-active {
    background: linear-gradient(180deg, #eef6ff 0%, #ffffff 100%);
    border: 1px solid #bfdbfe;
    color: #0f172a;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.bt-fast-quick-top {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.bt-fast-quick-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.bt-fast-quick-card-active .bt-fast-quick-icon {
    background: #dbeafe;
    color: #1d4ed8;
}

.bt-fast-quick-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.2rem;
}

.bt-fast-quick-card-active .bt-fast-quick-label {
    color: #64748b;
}

.bt-fast-quick-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    color: #0f172a;
}

.bt-fast-quick-card-active .bt-fast-quick-title {
    color: #0f172a;
}

.bt-fast-quick-text {
    color: #475569;
    font-size: 0.94rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.bt-fast-quick-card-active .bt-fast-quick-text {
    color: #475569;
}

.bt-fast-quick-time {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 0.35rem;
    color: #0f172a;
}

.bt-fast-quick-meta {
    color: #475569;
    font-size: 0.92rem;
    margin-bottom: 0.9rem;
}

.bt-fast-quick-history {
    margin-bottom: 1rem;
    padding: 0.9rem;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.bt-fast-quick-history-meta {
    margin-top: 0.45rem;
    color: #64748b;
    font-size: 0.9rem;
}

.bt-fast-quick-btn {
    border-radius: 12px;
    font-weight: 700;
    padding: 0.8rem 1rem;
}

/* =========================================================
   TABLES
   ========================================================= */

.table {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0;
}

.table thead {
    background: #f8fafc;
}

.table th {
    font-weight: 700;
    font-size: 13px;
}

.table-hover tbody tr:hover {
    background: #f1f5f9;
}

/* =========================================================
   PILLS
   ========================================================= */

.bt-pill {
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
}

.bt-pill-info {
    background: var(--bt-info-soft);
    color: var(--bt-info);
}

.bt-pill-success {
    background: var(--bt-success-soft);
    color: var(--bt-success);
}

.bt-pill-danger {
    background: var(--bt-danger-soft);
    color: var(--bt-danger);
}

.bt-pill-neutral {
    background: rgba(100, 116, 139, 0.08);
    color: #475569;
}

/* =========================================================
   CHART / PLACEHOLDER
   ========================================================= */

.bt-chart-card {
    background: var(--bt-surface);
    border: 1px solid var(--bt-border);
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--bt-shadow-sm);
}

.bt-chart-title {
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 800;
    color: var(--bt-heading);
}

.bt-chart-subtitle {
    margin-top: -4px;
    margin-bottom: 14px;
    color: var(--bt-text-soft);
    font-size: 0.88rem;
}

.bt-chart-placeholder {
    min-height: 260px;
    border-radius: 14px;
    border: 1px dashed var(--bt-border-strong);
    background:
        linear-gradient(180deg, rgba(37, 99, 235, 0.04) 0%, rgba(37, 99, 235, 0) 100%),
        var(--bt-surface-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bt-text-soft);
    text-align: center;
    padding: 20px;
}

/* =========================================================
   ENTRY LIST
   ========================================================= */

.bt-entry-list {
    display: grid;
    gap: 12px;
}

.bt-entry-card {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 14px;
    align-items: center;
    background: var(--bt-surface);
    border: 1px solid var(--bt-border);
    border-radius: 16px;
    padding: 14px;
    box-shadow: var(--bt-shadow-sm);
}

.bt-entry-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bt-surface-soft);
    color: var(--bt-primary);
    border: 1px solid var(--bt-border);
    font-size: 1.2rem;
}

.bt-entry-title {
    margin: 0;
    font-weight: 800;
    color: var(--bt-heading);
}

.bt-entry-meta {
    margin-top: 4px;
    font-size: 0.88rem;
    color: var(--bt-text-soft);
}

.bt-entry-value {
    font-size: 1rem;
    font-weight: 800;
    white-space: nowrap;
}

/* =========================================================
   FORMS
   ========================================================= */

.form-control,
.form-select,
textarea,
input[type="text"],
input[type="number"],
input[type="date"],
input[type="datetime-local"] {
    border-radius: 12px;
    border: 1px solid var(--bt-border-strong);
    box-shadow: none;
}

.form-control:focus,
.form-select:focus,
textarea:focus,
input:focus,
select:focus {
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.12);
}

/* =========================================================
   DARK THEME
   ========================================================= */

body.bt-theme-dark {
    --bt-bg: #0b1220;
    --bt-surface: #111827;
    --bt-surface-soft: #1f2937;
    --bt-border: #243041;
    --bt-border-strong: #334155;
    --bt-text: #e5edf7;
    --bt-text-soft: #94a3b8;
    --bt-heading: #f8fafc;
    --bt-primary: #60a5fa;
    --bt-primary-dark: #3b82f6;
    --bt-success: #22c55e;
    --bt-success-soft: rgba(34, 197, 94, 0.12);
    --bt-danger: #f87171;
    --bt-danger-soft: rgba(248, 113, 113, 0.12);
    --bt-warning: #f59e0b;
    --bt-warning-soft: rgba(245, 158, 11, 0.12);
    --bt-info: #60a5fa;
    --bt-info-soft: rgba(96, 165, 250, 0.14);
    --bt-shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.25);
    --bt-shadow-md: 0 10px 28px rgba(0, 0, 0, 0.32);
}

body.bt-theme-dark {
    background: var(--bt-bg);
    color: var(--bt-text);
}

body.bt-theme-dark .bt-topbar,
body.bt-theme-dark .bt-footer,
body.bt-theme-dark .table thead,
body.bt-theme-dark .card-header,
body.bt-theme-dark .breadcrumb {
    background: #0f172a;
    color: var(--bt-text);
    border-color: var(--bt-border);
}

body.bt-theme-dark .card,
body.bt-theme-dark .table,
body.bt-theme-dark .bt-summary-box,
body.bt-theme-dark .bt-widget,
body.bt-theme-dark .bt-chart-card,
body.bt-theme-dark .bt-entry-card,
body.bt-theme-dark .bt-fasting-live,
body.bt-theme-dark .bt-theme-toggle,
body.bt-theme-dark .form-control,
body.bt-theme-dark .form-select,
body.bt-theme-dark textarea,
body.bt-theme-dark input[type="text"],
body.bt-theme-dark input[type="number"],
body.bt-theme-dark input[type="date"],
body.bt-theme-dark input[type="datetime-local"] {
    background: var(--bt-surface);
    color: var(--bt-text);
    border-color: var(--bt-border);
}

body.bt-theme-dark .table th,
body.bt-theme-dark .table td {
    color: var(--bt-text);
    border-color: var(--bt-border);
}

body.bt-theme-dark .table-hover tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

body.bt-theme-dark .bt-sidebar {
    background: #08111f;
    border-right-color: rgba(255, 255, 255, 0.06);
}

body.bt-theme-dark .bt-user-box {
    background: rgba(255, 255, 255, 0.04);
}

body.bt-theme-dark .bt-progress {
    background: #1e293b;
}

body.bt-theme-dark .bt-chart-placeholder {
    background:
        linear-gradient(180deg, rgba(96, 165, 250, 0.06) 0%, rgba(96, 165, 250, 0) 100%),
        #0f172a;
    border-color: var(--bt-border);
}

body.bt-theme-dark .bt-theme-toggle:hover {
    background: #1b2638;
}

body.bt-theme-dark .text-muted,
body.bt-theme-dark .bt-topbar-subtitle,
body.bt-theme-dark .bt-brand-subtitle,
body.bt-theme-dark .bt-entry-meta,
body.bt-theme-dark .bt-widget-subtext,
body.bt-theme-dark .bt-fasting-live-meta,
body.bt-theme-dark .bt-chart-subtitle {
    color: var(--bt-text-soft) !important;
}

/* =========================================================
   COLLAPSED SIDEBAR
   ========================================================= */

body.bt-sidebar-collapsed .bt-sidebar {
    width: 92px;
    min-width: 92px;
}

body.bt-sidebar-collapsed .bt-brand-name,
body.bt-sidebar-collapsed .bt-brand-subtitle,
body.bt-sidebar-collapsed .bt-nav-group-title,
body.bt-sidebar-collapsed .bt-user-meta,
body.bt-sidebar-collapsed .bt-logout-form {
    display: none;
}

body.bt-sidebar-collapsed .bt-brand {
    justify-content: center;
}

body.bt-sidebar-collapsed .bt-nav-link {
    justify-content: center;
    padding-left: 10px;
    padding-right: 10px;
}

body.bt-sidebar-collapsed .bt-nav-text {
    display: none;
}

body.bt-sidebar-collapsed .bt-user-box {
    justify-content: center;
    padding: 10px;
}

/* =========================================================
   Logo
   ========================================================= */


.bt-brand-logo {
    max-width: 190px;
    height: auto;
    display: block;
}

/* =========================================================
   MOBILE
   ========================================================= */

.bt-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 1035;
}

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

    .bt-col-8,
    .bt-col-6,
    .bt-col-4,
    .bt-col-3 {
        grid-column: span 12;
    }
}

@media (max-width: 991.98px) {
    .bt-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-100%);
        width: 280px;
        min-width: 280px;
        height: 100vh;
    }

    body.bt-sidebar-mobile-open .bt-sidebar {
        transform: translateX(0);
    }

    body.bt-sidebar-mobile-open .bt-sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .bt-main-content {
        padding: 14px;
    }

    .bt-topbar {
        padding: 12px 14px;
    }

    .bt-topbar-title {
        font-size: 1rem;
    }

    .bt-topbar-subtitle {
        font-size: 0.82rem;
    }
}

@media (min-width: 992px) {
    .bt-sidebar-close {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .bt-kpi-row {
        grid-template-columns: 1fr;
    }

    .bt-entry-card {
        grid-template-columns: 48px 1fr;
    }

    .bt-entry-value {
        grid-column: 2;
    }

    .bt-widget-value,
    .bt-fasting-live-time {
        font-size: 1.7rem;
    }

    .bt-theme-toggle-text {
        display: none;
    }

    .bt-theme-toggle {
        padding: 8px 10px;
    }
}