/* ============================================
   White-label skin "bold" — layered on top of "soft" (Brand.skins =
   ("soft", "bold"); this file loads after skin-soft.css, same specificity,
   so its rules win). Loud brand chrome instead of soft's quiet white:
     - sidebar in the brand colour (gradient), white text, white pill for the
       active item;
     - white navbar with a thick primary→accent bar under it;
     - pill buttons, 20px borderless cards with deeper shadows, solid round
       KPI icons, solid accent page badge;
     - rounded Nunito type on a warm background.
   Uses the same --wl-* palette as soft (brand theme.css).
   ============================================ */

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

:root {
    --wl-bg: #FBF7F2;
    --wl-border: #EFE7DD;
    --wl-ink: #1F1B24;
    --wl-radius: 20px;
    --wl-radius-sm: 999px;
    --wl-shadow: 0 2px 6px rgba(31, 27, 36, 0.05), 0 12px 28px rgba(31, 27, 36, 0.08);
    --wl-shadow-hover: 0 4px 10px rgba(31, 27, 36, 0.08), 0 18px 36px rgba(31, 27, 36, 0.12);
    --wl-font: 'Nunito', 'Be Vietnam Pro', -apple-system, 'Segoe UI', sans-serif;
}

/* ---------- Navbar: white with a brand bar ---------- */
body.skin-bold .navbar {
    border-bottom: 4px solid transparent !important;
    border-image: linear-gradient(90deg, var(--wl-primary) 0 250px, var(--wl-accent) 250px 100%) 1 !important;
    box-shadow: none !important;
}
/* Logo column in the brand colour, continuous with the sidebar below it */
@media (min-width: 768px) {
    body.skin-bold .navbar::before {
        display: block !important;
        background: var(--wl-primary) !important;
        border-right: 0 !important;
    }
}
body.skin-bold .navbar-logo {
    background: #fff !important;
    padding: 4px 10px !important;
    border-radius: 10px !important;
    height: 44px !important;
    box-shadow: none;
}

/* ---------- Sidebar: brand colour ---------- */
body.skin-bold .sidebar {
    background: linear-gradient(180deg, var(--wl-primary) 0%, var(--wl-primary-hover) 100%) !important;
    border-right: 0 !important;
    padding-top: 12px !important;
}
body.skin-bold .sidebar .nav-link,
body.skin-bold .sidebar .sidebar-section-toggle,
body.skin-bold .sidebar .nav-link i,
body.skin-bold .sidebar .sidebar-section-toggle i {
    color: rgba(255, 255, 255, 0.88) !important;
}
body.skin-bold .sidebar .nav-link,
body.skin-bold .sidebar .sidebar-section-toggle {
    border-radius: 10px !important;
    font-weight: 600 !important;
    margin: 1px 10px !important;
    padding: 9px 12px !important;
}
/* Section groups: thin divider above, quieter toggle label */
body.skin-bold .sidebar .sidebar-section + .sidebar-section { border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 6px; margin-top: 6px; }
body.skin-bold .sidebar .sidebar-section-toggle { color: rgba(255, 255, 255, 0.7) !important; font-size: 13px !important; }
body.skin-bold .sidebar .nav-link:hover:not(.active),
body.skin-bold .sidebar .sidebar-section-toggle:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    color: #fff !important;
}
body.skin-bold .sidebar .nav-link.active {
    background: rgba(255, 255, 255, 0.14) !important;
    color: #fff !important;
    font-weight: 700 !important;
    box-shadow: inset 3px 0 0 var(--wl-accent) !important;
}
body.skin-bold .sidebar .nav-link.active i { color: var(--wl-accent) !important; }
body.skin-bold .sidebar .sidebar-section-toggle[aria-expanded="true"],
body.skin-bold .sidebar .sidebar-section-toggle[aria-expanded="true"] i { color: #fff !important; }
body.skin-bold .sidebar .sidebar-submenu {
    margin: 2px 12px 6px !important;
    border-left: 2px solid rgba(255, 255, 255, 0.25);
}
body.skin-bold .sidebar .sidebar-submenu .nav-link { padding-left: 22px !important; margin-left: 6px !important; }
body.skin-bold .sidebar .sidebar-footer {
    background: rgba(0, 0, 0, 0.12) !important;
    border-top: 0 !important;
}
body.skin-bold .sidebar .sidebar-footer * { color: rgba(255, 255, 255, 0.75) !important; border-color: rgba(255, 255, 255, 0.3) !important; }

/* ---------- Cards: borderless, bigger radius, deeper shadow ---------- */
body.skin-bold :is(.card, .summary-card-tech, .data-terminal, .chart-card, .kpi-card, .chamfer-card,
    .info-panel-titanium, .stock-level-panel, .filter-section, .filter-deck-titanium, .status-breakdown-card,
    .sysadmin-stat-card, .table-titanium-wrapper, .revenue-section, .sysadmin-table, .device-card-titanium) {
    border: 0 !important;
}
body.skin-bold :is(.summary-card-header, .data-terminal-header, .card-header, .sysadmin-table .table-header) {
    border-bottom: 0 !important;
    padding-top: 16px !important;
}
body.skin-bold .summary-icon-tech {
    background: var(--wl-primary) !important;
    border-radius: 999px !important;
    box-shadow: 0 6px 14px rgb(var(--wl-primary-rgb) / 0.3) !important;
}
body.skin-bold .summary-icon-tech i { color: #fff !important; }
body.skin-bold .summary-value { font-weight: 800 !important; font-size: 1.6rem !important; }

/* Page badge: solid accent */
body.skin-bold .logs-header-titanium .logs-code-badge {
    background: var(--wl-accent) !important;
    box-shadow: 0 4px 10px rgb(var(--wl-accent-rgb) / 0.35) !important;
    font-weight: 800 !important;
}
body.skin-bold .logs-title { font-weight: 800 !important; }

/* ---------- Buttons: pills ---------- */
body.skin-bold :is(.btn-primary, .btn-titanium-primary, .btn-titanium-login) {
    box-shadow: 0 6px 16px rgb(var(--wl-primary-rgb) / 0.35) !important;
}
body.skin-bold :is(.form-control, .form-select, .input-group-text, .ts-control) { border-radius: 14px !important; }
body.skin-bold textarea.form-control { border-radius: 16px !important; }

/* Device cards: coloured top edge */
body.skin-bold .device-card-titanium { box-shadow: inset 0 4px 0 var(--wl-primary), var(--wl-shadow) !important; }

/* ---------- Auth pages ---------- */
body.skin-bold .login-page {
    background:
        radial-gradient(circle at 15% 20%, rgb(var(--wl-accent-rgb) / 0.35) 0, transparent 40%),
        radial-gradient(circle at 85% 80%, rgb(var(--wl-secondary-rgb) / 0.25) 0, transparent 45%),
        linear-gradient(160deg, var(--wl-primary) 0%, var(--wl-primary-hover) 100%) !important;
}
body.skin-bold .login-card { border: 0 !important; border-radius: 28px !important; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25) !important; }
body.skin-bold .floating-label { color: rgba(255, 255, 255, 0.8) !important; }

body.skin-bold .sidebar .sidebar-footer .status-code {
    background: rgba(255, 255, 255, 0.18) !important;
    color: #fff !important;
}
body.skin-bold .summary-card-header .summary-card-arrow { color: var(--wl-primary) !important; }

/* Pill radius is for controls; inner data panels stay gently rounded */
body.skin-bold .device-card-titanium :is(.revenue-panel, .last-startup-info, .realtime-stats-row, .realtime-stats-row-cash, .stock-progress-row) {
    border-radius: 12px !important;
}
