/* ==============================================================================
   GastroOS Enterprise Workstation UI — Desktop Software System
   Authentic Desktop Application: Window Chrome, Traffic Lights, Menu Bar,
   Tabs, Toolbars, Windowed Panels, Inset Software Controls, Bottom Status Bar
   ============================================================================== */

:root {
    /* Desktop Window Theme Tokens */
    --win-bg: #0d0f18;
    --win-titlebar-bg: #121522;
    --win-menubar-bg: #151928;
    --win-tabstrip-bg: #101320;
    --win-toolbar-bg: #161a2b;
    --win-panel-bg: #171b2c;
    --win-panel-header: #1c2136;
    --win-inset-bg: #0f121d;
    --win-border: #283046;
    --win-border-light: rgba(255, 255, 255, 0.08);
    --win-statusbar-bg: #10131f;

    /* Text Colors */
    --win-text: #f1f5f9;
    --win-text-muted: #94a3b8;
    --win-text-subtle: #64748b;

    /* Desktop Software Accent Colors */
    --win-blue: #2563eb;
    --win-blue-hover: #1d4ed8;
    --win-orange: #f97316;
    --win-emerald: #10b981;
    --win-amber: #f59e0b;
    --win-rose: #f43f5e;

    /* Shadows & Radii */
    --win-radius-sm: 5px;
    --win-radius-md: 8px;
    --win-radius-lg: 12px;
    --win-shadow-panel: 0 4px 18px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    --win-shadow-dialog: 0 25px 60px -15px rgba(0, 0, 0, 0.85);

    /* Legacy compatibility aliases */
    --primary-color: #f97316;
    --primary-hover: #ea580c;
    --glass-border: var(--win-border);
}

/* Base Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html, body {
    background-color: var(--win-bg);
    color: var(--win-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", system-ui, sans-serif;
    font-size: 13px;
    line-height: 1.45;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==============================================================================
   1. DESKTOP APPLICATION WINDOW HEADER (TITLEBAR + MENUBAR + TABS + TOOLBAR)
   ============================================================================== */

.desktop-app-shell {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--win-titlebar-bg);
    border-bottom: 1px solid var(--win-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    user-select: none;
}

/* 1.1 Desktop Window Titlebar (macOS / Desktop Chrome) */
.win-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 34px;
    padding: 0 12px;
    background: #111420;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 11.5px;
}

.win-titlebar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* macOS Traffic Lights */
.win-traffic-lights {
    display: flex;
    align-items: center;
    gap: 7px;
}
.win-light {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
    transition: filter 0.15s;
    cursor: pointer;
}
.win-light:hover { filter: brightness(1.2); }
.win-light.close { background: #ff5f56; border: 1px solid #e0443e; }
.win-light.minimize { background: #ffbd2e; border: 1px solid #dea123; }
.win-light.maximize { background: #27c93f; border: 1px solid #1aab29; }

.win-app-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: #e2e8f0;
    letter-spacing: -0.2px;
}
.win-badge-pro {
    font-size: 9px;
    font-weight: 800;
    background: #2563eb;
    color: #fff;
    padding: 1px 5px;
    border-radius: 3px;
    letter-spacing: 0.05em;
}

.win-titlebar-center {
    color: var(--win-text-muted);
    font-size: 11.5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    position: relative;
    z-index: 100;
}

/* ==============================================================================
   1.1.1 INTERACTIVE VENUE SWITCHER PILL & POPOVER (В ШАПКЕ)
   ============================================================================== */
.win-venue-dropdown-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.win-venue-pill-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #171b2d;
    border: 1px solid #2e3752;
    border-radius: 6px;
    padding: 3px 9px;
    color: #f1f5f9;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.win-venue-pill-btn:hover {
    background: #20263e;
    border-color: #3b82f6;
    color: #fff;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
}
.win-venue-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.7);
    flex-shrink: 0;
}
.win-venue-name {
    font-weight: 700;
    color: #fff;
    max-width: 160px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.win-venue-subdomain {
    font-size: 10px;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.05);
    padding: 1px 5px;
    border-radius: 3px;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.win-venue-count-badge {
    background: rgba(37, 99, 235, 0.25);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
    font-size: 9.5px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 10px;
}
.win-venue-chevron {
    font-size: 10px;
    color: #94a3b8;
    transition: transform 0.15s;
}
.win-venue-pill-btn:hover .win-venue-chevron {
    color: #fff;
}

/* Venue Switcher Popover Dropdown */
.win-venue-popover {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 320px;
    background: #151928;
    border: 1px solid #283046;
    border-radius: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.06);
    z-index: 3000;
    overflow: hidden;
    animation: winPopoverIn 0.15s ease-out;
}
@keyframes winPopoverIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
.win-venue-popover-header {
    padding: 8px 12px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    border-bottom: 1px solid #23293d;
    background: #111422;
}
.win-venue-list {
    max-height: 280px;
    overflow-y: auto;
    padding: 4px;
}
.win-venue-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    border-radius: 6px;
    text-decoration: none;
    color: #f1f5f9;
    transition: 0.12s;
    margin-bottom: 2px;
}
.win-venue-item:hover {
    background: #1e2439;
}
.win-venue-item.is-active {
    background: rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.25);
}
.win-venue-item-main {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}
.win-venue-item-status {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #475569;
    flex-shrink: 0;
}
.win-venue-item-status.active {
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
}
.win-venue-item-info {
    min-width: 0;
}
.win-venue-item-title {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.win-venue-item-slug {
    font-size: 10px;
    color: #38bdf8;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.win-venue-active-check {
    font-size: 10px;
    font-weight: 800;
    color: #10b981;
    background: rgba(16, 185, 129, 0.15);
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
}
.win-venue-switch-link {
    font-size: 10.5px;
    font-weight: 700;
    color: #94a3b8;
    opacity: 0;
    transition: opacity 0.12s;
    white-space: nowrap;
}
.win-venue-item:hover .win-venue-switch-link {
    opacity: 1;
    color: #60a5fa;
}
.win-venue-popover-footer {
    padding: 6px;
    background: #111422;
    border-top: 1px solid #23293d;
}
.win-venue-new-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 10px;
    background: #1a2034;
    border: 1px dashed #3b4668;
    border-radius: 5px;
    color: #f97316;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.12s;
}
.win-venue-new-btn:hover {
    background: #232c46;
    border-color: #f97316;
    color: #fb923c;
}

/* Breadcrumb styling */
.win-breadcrumb-sep {
    color: #475569;
    font-weight: 400;
    margin: 0 4px;
    user-select: none;
}
.win-breadcrumb-page {
    color: #fff;
    font-weight: 700;
    font-size: 11.5px;
}
.win-breadcrumb-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #38bdf8;
    text-decoration: none;
    font-size: 11px;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.18);
    transition: 0.12s;
}
.win-breadcrumb-link:hover {
    background: rgba(56, 189, 248, 0.18);
    border-color: #38bdf8;
    color: #7dd3fc;
}

.win-titlebar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}
.win-btn-logout-compact {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #f87171;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    text-decoration: none;
    line-height: 1.1;
    cursor: pointer;
    transition: all 0.15s ease;
}
.win-btn-logout-compact:hover {
    background: rgba(239, 68, 68, 0.22);
    border-color: rgba(239, 68, 68, 0.5);
    color: #fca5a5;
}
.win-orders-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 9px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
    border: 1px solid transparent;
}
.win-orders-toggle-btn.is-active {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.35);
    color: #f1f5f9;
}
.win-orders-toggle-btn.is-active:hover {
    background: rgba(16, 185, 129, 0.22);
    border-color: #10b981;
}
.win-orders-toggle-btn.is-active .win-orders-toggle-led {
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
}

.win-orders-toggle-btn.is-inactive {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fca5a5;
}
.win-orders-toggle-btn.is-inactive:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: #ef4444;
}
.win-orders-toggle-btn.is-inactive .win-orders-toggle-led {
    background: #ef4444;
    box-shadow: 0 0 8px #ef4444;
}

.win-orders-toggle-led {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    transition: all 0.15s;
    flex-shrink: 0;
}
.win-titlebar-clock {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.04);
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* 1.2 Pro Desktop Menubar (Файл, Заказы, Меню...) */
.win-menubar {
    display: flex;
    align-items: center;
    height: 26px;
    padding: 0 10px;
    background: var(--win-menubar-bg);
    border-bottom: 1px solid var(--win-border);
    font-size: 11.5px;
    gap: 2px;
}
.win-menu-item {
    padding: 2px 9px;
    color: var(--win-text-muted);
    border-radius: 3px;
    cursor: pointer;
    text-decoration: none;
    transition: 0.1s;
    font-weight: 500;
}
.win-menu-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}
.win-menu-item.active {
    background: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
    font-weight: 600;
}

/* 1.3 Desktop Software Tabs (Вкладки программы как в браузере / IDE) */
.win-tabstrip {
    display: flex;
    align-items: stretch;
    height: 38px;
    background: var(--win-tabstrip-bg);
    padding: 4px 10px 0;
    gap: 3px;
    overflow-x: auto;
    border-bottom: 1px solid var(--win-border);
    scrollbar-width: none;
}
.win-tabstrip::-webkit-scrollbar { display: none; }

.win-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--win-border);
    border-bottom: none;
    border-radius: 6px 6px 0 0;
    color: var(--win-text-muted);
    font-size: 12.5px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: 0.12s;
    white-space: nowrap;
    position: relative;
    height: 33px;
    top: 1px;
}
.win-tab:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}
.win-tab.active {
    background: var(--win-toolbar-bg);
    color: #fff;
    font-weight: 600;
    border-color: var(--win-border);
    border-top: 2px solid var(--win-blue);
    box-shadow: 0 -2px 8px rgba(0,0,0,0.2);
}

.win-tab-icon {
    font-size: 13px;
}
.win-tab-close {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--win-text-subtle);
    margin-left: 4px;
    transition: all 0.12s;
    cursor: pointer;
}
.win-tab-close:hover {
    background: rgba(239, 68, 68, 0.3) !important;
    color: #fca5a5 !important;
}

/* 1.3.1 Desktop Tabs Add Dropdown (+ Menu) */
.win-tabs-dropdown {
    position: absolute;
    top: calc(100% + 2px);
    right: 0;
    min-width: 230px;
    background: #151928;
    border: 1px solid var(--win-border);
    border-radius: var(--win-radius-sm);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.65);
    z-index: 2500;
    padding: 6px;
}
.win-tabs-dropdown-header {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--win-text-subtle);
    padding: 4px 8px 3px;
}
.win-tabs-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    color: var(--win-text);
    font-size: 12px;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: 0.1s;
    user-select: none;
}
.win-tabs-dropdown-item:hover {
    background: rgba(37, 99, 235, 0.2);
    color: #fff;
}
.win-tabs-dropdown-divider {
    height: 1px;
    background: var(--win-border);
    margin: 5px 0;
}
.win-tab-badge {
    background: rgba(249, 115, 22, 0.25);
    color: #fb923c;
    font-size: 10px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 99px;
}

/* 1.4 Desktop Pro Action Toolbar (Панель быстрых инструментов) */
.win-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 44px;
    padding: 0 14px;
    background: var(--win-toolbar-bg);
    border-bottom: 1px solid var(--win-border);
    gap: 12px;
    flex-wrap: wrap;
}
.win-toolbar-left, .win-toolbar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Desktop Venue Picker Dropdown */
.win-select-venue {
    background: #111422;
    border: 1px solid var(--win-border);
    border-radius: var(--win-radius-sm);
    color: #fff;
    padding: 5px 24px 5px 9px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: 0.15s;
    -webkit-appearance: none;
    appearance: none;
}
.win-select-venue:hover {
    border-color: var(--win-blue);
    background: #181d30;
}

/* Master Shift Orders Soft Pill */
.win-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #111422;
    border: 1px solid var(--win-border);
    border-radius: var(--win-radius-sm);
    padding: 4px 10px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.15s;
    user-select: none;
}
.win-status-pill:hover {
    border-color: rgba(255,255,255,0.2);
    background: #181d30;
}
.win-status-led {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.win-status-pill.is-active .win-status-led {
    background: var(--win-emerald);
    box-shadow: 0 0 8px var(--win-emerald);
}
.win-status-pill.is-inactive .win-status-led {
    background: var(--win-rose);
    box-shadow: 0 0 8px var(--win-rose);
}

/* Desktop Toolbar Quick Buttons */
.win-btn-tool {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #181c2d;
    border: 1px solid var(--win-border);
    border-radius: var(--win-radius-sm);
    color: var(--win-text);
    padding: 5px 10px;
    font-size: 11.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: 0.12s;
}
.win-btn-tool:hover {
    background: #22273e;
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}
.win-btn-tool:active {
    transform: translateY(1px);
}
.win-btn-tool.accent {
    background: #1e3a8a;
    border-color: #3b82f6;
    color: #93c5fd;
}

/* ==============================================================================
   2. DESKTOP WINDOWED PANELS (.soft-window)
   ============================================================================== */

.container {
    max-width: 1560px;
    width: 100%;
    margin: 0 auto;
    padding: 14px 16px;
    flex: 1;
}

/* The Core Desktop Window Panel */
.soft-window, .card, .glass-panel {
    background: var(--win-panel-bg);
    border: 1px solid var(--win-border);
    border-radius: var(--win-radius-md);
    box-shadow: var(--win-shadow-panel);
    margin-bottom: 14px;
    overflow: hidden;
}

/* Window Header Bar with minimize/maximize controls */
.soft-window-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    background: var(--win-panel-header);
    border-bottom: 1px solid var(--win-border);
    font-size: 12.5px;
    font-weight: 600;
    color: #fff;
    user-select: none;
}
.soft-window-title {
    display: flex;
    align-items: center;
    gap: 8px;
}
.soft-window-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}
.soft-window-btn {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--win-text-muted);
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.1s;
}
.soft-window-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.soft-window-body {
    padding: 14px;
}

/* ==============================================================================
   3. DESKTOP SOFTWARE BUTTONS (.btn)
   ============================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 13px;
    border-radius: var(--win-radius-sm);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.12s;
    border: 1px solid transparent;
    outline: none;
    text-decoration: none;
    user-select: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

.btn-primary {
    background: var(--win-blue);
    border-color: #1d4ed8;
    color: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-primary:hover {
    background: var(--win-blue-hover);
    border-color: #1e40af;
}
.btn-primary:active {
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.4);
}

.btn-outline {
    background: #191e30;
    border-color: var(--win-border);
    color: var(--win-text);
}
.btn-outline:hover {
    background: #222942;
    border-color: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.btn-sm {
    padding: 4px 9px;
    font-size: 11.5px;
}

/* ==============================================================================
   4. DESKTOP FORM INPUTS (INSET SOFTWARE FIELDS)
   ============================================================================== */

.form-group {
    margin-bottom: 12px;
}

label {
    display: block;
    margin-bottom: 4px;
    color: var(--win-text-muted);
    font-size: 12px;
    font-weight: 500;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="url"],
input[type="tel"],
input[type="time"],
select,
textarea,
.search-box {
    width: 100%;
    background: var(--win-inset-bg);
    border: 1px solid var(--win-border);
    padding: 6px 10px;
    border-radius: var(--win-radius-sm);
    color: var(--win-text);
    font-size: 12.5px;
    outline: none;
    transition: 0.12s;
    font-family: inherit;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.2);
}

input:focus, select:focus, textarea:focus, .search-box:focus {
    border-color: var(--win-blue);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.2), 0 0 0 2px rgba(37, 99, 235, 0.25);
    background: #121624;
}

/* ==============================================================================
   5. DESKTOP MODAL DIALOGS (.modal-overlay & .modal-box)
   ============================================================================== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 7, 12, 0.8);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-overlay.active { display: flex; }

.modal-box {
    background: #171b2c;
    border: 1px solid #374151;
    border-radius: var(--win-radius-md);
    box-shadow: var(--win-shadow-dialog);
    max-width: 580px;
    width: 100%;
    overflow: hidden;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: #1c2136;
    border-bottom: 1px solid var(--win-border);
}
.modal-header h2, .modal-header h3 {
    margin: 0;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.modal-close {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--win-border);
    color: var(--win-text-muted);
    font-size: 11px;
    width: 22px;
    height: 22px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-close:hover {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
}

/* ==============================================================================
   6. DESKTOP SOFTWARE STATUS BAR (.desktop-statusbar)
   ============================================================================== */

.desktop-statusbar {
    margin-top: auto;
    height: 25px;
    background: var(--win-statusbar-bg);
    border-top: 1px solid var(--win-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
    font-size: 11px;
    color: var(--win-text-muted);
    user-select: none;
}
.desktop-statusbar-section {
    display: flex;
    align-items: center;
    gap: 14px;
}
.desktop-statusbar-center {
    display: none;
}
@media (min-width: 900px) {
    .desktop-statusbar-center {
        display: flex;
    }
}
.desktop-statusbar-item {
    display: flex;
    align-items: center;
    gap: 5px;
}
.desktop-statusbar-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--win-emerald);
}

/* Switches & Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 600;
    border: 1px solid transparent;
}
.badge-hit { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border-color: rgba(245, 158, 11, 0.25); }
.badge-new { background: rgba(16, 185, 129, 0.15); color: #34d399; border-color: rgba(16, 185, 129, 0.25); }
.badge-chef { background: rgba(139, 92, 246, 0.15); color: #c084fc; border-color: rgba(139, 92, 246, 0.25); }
.badge-stop { background: rgba(244, 63, 94, 0.15); color: #fb7185; border-color: rgba(244, 63, 94, 0.25); }
.badge-sale { background: rgba(16, 185, 129, 0.15); color: #6ee7b7; border-color: rgba(16, 185, 129, 0.25); }

/* Switch Controls (Soft Toggles) */
.switch {
    position: relative;
    display: inline-block;
    width: 32px;
    height: 18px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #272f44;
    transition: 0.15s;
    border-radius: 99px;
    border: 1px solid var(--win-border);
}
.slider:before {
    position: absolute;
    content: "";
    height: 12px;
    width: 12px;
    left: 2px;
    bottom: 2px;
    background-color: #94a3b8;
    transition: 0.15s;
    border-radius: 50%;
}
input:checked + .slider { background-color: var(--win-emerald); }
input:checked + .slider:before { transform: translateX(14px); background-color: #ffffff; }

/* Grid helper */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

/* Kanban column soft styling */
.kanban-col {
    background: var(--win-panel-bg) !important;
    border: 1px solid var(--win-border) !important;
    border-radius: var(--win-radius-md) !important;
}

/* Settings tab button */
.settings-tab-btn {
    background: #141827;
    border: 1px solid var(--win-border);
    color: var(--win-text-muted);
    padding: 5px 12px;
    border-radius: var(--win-radius-sm);
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.12s;
}
.settings-tab-btn:hover {
    color: #fff;
    background: #1c2236;
    border-color: rgba(255, 255, 255, 0.15);
}
.settings-tab-btn.active {
    background: var(--win-blue);
    border-color: var(--win-blue);
    color: #fff;
}

/* Custom Soft Scrollbars */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #0d0f18; }
::-webkit-scrollbar-thumb { background: #283046; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #3c4768; }

/* Window minimize toggle */
.window-collapsed {
    display: none !important;
}

/* ==============================================================================
   7. SETTINGS STRICT SUB-TABS SYSTEM
   ============================================================================== */
.settings-subtabs-strip {
    display: flex;
    align-items: center;
    background: #0B0E18;
    border-bottom: 1px solid var(--win-border);
    padding: 8px 14px;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    position: sticky;
    top: 0;
    z-index: 10;
}
.settings-subtabs-strip::-webkit-scrollbar { display: none; }

.settings-subtab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #141826;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94A3B8;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    user-select: none;
}
.settings-subtab-btn:hover {
    background: #1C2236;
    color: #FFFFFF;
    border-color: rgba(255, 255, 255, 0.2);
}
.settings-subtab-btn.active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.4), rgba(30, 58, 138, 0.6));
    border-color: #3B82F6;
    color: #FFFFFF;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.4), inset 0 0 0 1px rgba(147, 197, 253, 0.35);
}

.settings-subtab-pane {
    display: none !important;
}
.settings-subtab-pane.active {
    display: block !important;
    animation: fadeInSubtab 0.15s ease-out;
}
@keyframes fadeInSubtab {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.settings-tab-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.25rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--win-border);
}
