/* assets/css/style.css */

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    /* Light Theme (Default) */
    --bg-app: linear-gradient(135deg, #f5f7fb 0%, #e4e8f0 100%);
    --bg-card: rgba(255, 255, 255, 0.75);
    --bg-sidebar: rgba(255, 255, 255, 0.85);
    --border-glass: rgba(255, 255, 255, 0.6);
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --border-color: rgba(226, 232, 240, 0.8);
    --shadow-premium: 0 10px 30px -10px rgba(0, 0, 0, 0.05), 0 1px 3px rgba(0, 0, 0, 0.02);
    --shadow-hover: 0 20px 40px -15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.03);
    --blur-glass: 16px;
    
    --primary: #4f46e5;
    --primary-hover: #4338ca;
    --primary-light: rgba(79, 70, 229, 0.1);
    --accent: #d946ef;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #06b6d4;
}

[data-theme="dark"] {
    /* Dark Theme */
    --bg-app: linear-gradient(135deg, #0f172a 0%, #020617 100%);
    --bg-card: rgba(30, 41, 59, 0.7);
    --bg-sidebar: rgba(15, 23, 42, 0.85);
    --border-glass: rgba(255, 255, 255, 0.05);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border-color: rgba(51, 65, 85, 0.5);
    --shadow-premium: 0 15px 35px -10px rgba(0, 0, 0, 0.3), 0 1px 5px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 25px 45px -15px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(0, 0, 0, 0.15);
    
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-light: rgba(99, 102, 241, 0.15);
    --accent: #e879f9;
    --success: #34d399;
    --warning: #fbbf24;
    --danger: #f87171;
    --info: #22d3ee;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-app);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Theme toggle button */
.theme-toggle-btn {
    background: var(--primary-light);
    border: 1px solid var(--border-glass);
    color: var(--primary);
    border-radius: 10px;
    padding: 6px 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.theme-toggle-btn:hover {
    background: var(--primary);
    color: #fff;
    transform: scale(1.08);
}

/* Glassmorphism Styles */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(var(--blur-glass));
    -webkit-backdrop-filter: blur(var(--blur-glass));
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: var(--shadow-premium);
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease, background 0.3s ease, border-color 0.3s ease;
}

.glass-panel-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.glass-sidebar {
    background: var(--bg-sidebar);
    backdrop-filter: blur(var(--blur-glass));
    -webkit-backdrop-filter: blur(var(--blur-glass));
    border-right: 1px solid var(--border-glass);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: width 0.3s ease, background 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.main-content {
    margin-left: 260px;
    padding: 24px;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

/* ── Dashboard ────────────────────────────────────────────── */
.db-quick-actions {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: var(--shadow-premium);
}
.db-qa-label {
    font-size: .72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .09em; color: var(--text-secondary); margin-bottom: 12px;
}
.db-qa-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.db-qa-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 16px; border-radius: 10px; font-size: .82rem; font-weight: 600;
    border: 1.5px solid rgba(0,0,0,0.07); cursor: pointer; text-decoration: none;
    background: color-mix(in srgb, var(--qa-c) 8%, transparent);
    color: var(--qa-c); border-color: color-mix(in srgb, var(--qa-c) 20%, transparent);
    transition: all .18s;
}
.db-qa-btn:hover {
    background: var(--qa-c); color: #fff;
    box-shadow: 0 4px 16px color-mix(in srgb, var(--qa-c) 35%, transparent);
    transform: translateY(-1px);
}
.db-qa-btn i { font-size: .95rem; }

.db-kpi-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-premium);
    transition: transform .2s, box-shadow .2s;
    overflow: hidden;
    position: relative;
}
.db-kpi-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}
.db-kpi-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.db-chart-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-premium);
}
.db-widget-drag {
    position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
    cursor: move; color: var(--text-secondary); opacity: .4; font-size: .9rem;
}
.db-widget-drag:hover { opacity: .8; }
.db-widget-controls {
    position: absolute; top: 8px; right: 10px;
    display: flex; gap: 2px;
}
.db-ctrl-btn {
    background: none; border: none; color: var(--text-secondary);
    padding: 3px 5px; border-radius: 5px; cursor: pointer; font-size: .8rem;
    transition: all .15s;
}
.db-ctrl-btn:hover { background: var(--primary-light); color: var(--primary); }

.kpi-card-inner { display: flex; align-items: flex-start; gap: 16px; padding-top: 8px; }
.kpi-icon-wrap {
    width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    background: color-mix(in srgb, var(--kpi-color) 15%, transparent);
    color: var(--kpi-color);
    box-shadow: 0 0 20px var(--kpi-glow);
}
.kpi-body { flex: 1; min-width: 0; }
.kpi-value {
    font-size: 1.6rem; font-weight: 800; line-height: 1;
    background: linear-gradient(135deg, var(--kpi-color), color-mix(in srgb, var(--kpi-color) 60%, #fff));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    margin-bottom: 4px;
}
.kpi-label { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--text-secondary); margin-bottom: 6px; }
.kpi-trend { font-size: .78rem; font-weight: 500; display: flex; align-items: center; gap: 4px; }
.kpi-trend.up { color: #10b981; }
.kpi-trend.warn { color: #f59e0b; }
.kpi-trend.neutral { color: var(--text-secondary); }

/* ── Table Selection ─────────────────────────────────────── */
.tbl-select-wrap { padding: 20px 24px; }
.tbl-select-header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; margin-bottom: 24px; flex-wrap: wrap;
}
.tbl-select-title { display: flex; align-items: center; gap: 14px; }
.tbl-select-icon {
    width: 48px; height: 48px; border-radius: 14px;
    background: var(--primary-light); color: var(--primary);
    display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.tbl-select-h { font-size: 1.2rem; font-weight: 800; color: var(--text-primary); }
.tbl-select-sub { font-size: .78rem; color: var(--text-secondary); }
.tbl-select-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tbl-search-wrap { position: relative; }
.tbl-search-ico { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-secondary); font-size: .85rem; }
.tbl-search-inp {
    padding: 8px 12px 8px 32px; border-radius: 10px; border: 1.5px solid var(--border-color);
    background: var(--bg-card); color: var(--text-primary); font-size: .85rem; width: 190px; outline: none;
    transition: border-color .15s;
}
.tbl-search-inp:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.tbl-filter-pills { display: flex; gap: 5px; flex-wrap: wrap; }
.tbl-fpill {
    padding: 6px 13px; border-radius: 20px; border: 1.5px solid var(--border-color);
    background: var(--bg-card); color: var(--text-secondary); font-size: .75rem; font-weight: 600;
    cursor: pointer; transition: all .15s;
}
.tbl-fpill:hover { border-color: var(--primary); color: var(--primary); }
.tbl-fpill.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 3px 10px rgba(99,102,241,.3); }
.tbl-takeaway-btn {
    padding: 8px 16px; border-radius: 10px; border: 1.5px solid rgba(16,185,129,.3);
    background: rgba(16,185,129,.08); color: #10b981; font-size: .82rem; font-weight: 600;
    cursor: pointer; transition: all .15s;
}
.tbl-takeaway-btn:hover { background: #10b981; color: #fff; box-shadow: 0 4px 14px rgba(16,185,129,.3); }
.tbl-grid-wrap { display: flex; flex-direction: column; gap: 24px; }
.tbl-empty { text-align: center; padding: 60px; color: var(--text-secondary); }
.tbl-empty i { font-size: 2.5rem; display: block; margin-bottom: 12px; opacity: .4; }
.tbl-area-section {}
.tbl-area-header {
    display: flex; align-items: center; gap: 8px;
    font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
    color: var(--primary); margin-bottom: 12px;
}
.tbl-area-count {
    background: var(--primary-light); color: var(--primary);
    font-size: .68rem; font-weight: 700; padding: 1px 7px; border-radius: 20px;
}
.tbl-area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
}
.tbl-card {
    background: color-mix(in srgb, var(--tc) 5%, var(--bg-card,#fff));
    border: 1.5px solid color-mix(in srgb, var(--tc) 25%, transparent);
    border-radius: 14px; padding: 14px 12px; cursor: pointer; position: relative;
    transition: all .18s; overflow: hidden;
}
.tbl-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--tc);
}
.tbl-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--tc) 20%, transparent);
    border-color: var(--tc);
}
.tbl-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.tbl-card-num { font-size: 1.2rem; font-weight: 800; color: var(--text-primary); }
.tbl-card-status-dot { color: var(--tc); font-size: .85rem; }
.tbl-card-name { font-size: .7rem; color: var(--text-secondary); margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbl-card-status { font-size: .72rem; font-weight: 700; color: var(--tc); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .04em; }
.tbl-card-meta { display: flex; align-items: center; justify-content: space-between; font-size: .7rem; color: var(--text-secondary); }
.tbl-card-amt { font-weight: 700; color: #f59e0b; }
.tbl-card-view-btn {
    position: absolute; bottom: 8px; right: 8px;
    background: none; border: 1px solid color-mix(in srgb, var(--tc) 30%, transparent);
    color: var(--tc); border-radius: 7px; padding: 2px 7px; font-size: .7rem; cursor: pointer;
    transition: all .15s;
}
.tbl-card-view-btn:hover { background: var(--tc); color: #fff; }

[data-theme="dark"] .tbl-card { background: color-mix(in srgb, var(--tc) 8%, rgba(30,41,59,0.8)); }
[data-theme="dark"] .tbl-search-inp { background: rgba(30,41,59,0.8); }
[data-theme="dark"] .tbl-fpill { background: rgba(30,41,59,0.8); }

/* Side navigation item styling */
/* nav-link-custom base — see redesigned block near bottom of file */

/* Header style */
.glass-header {
    background: var(--bg-card);
    backdrop-filter: blur(var(--blur-glass));
    -webkit-backdrop-filter: blur(var(--blur-glass));
    border-bottom: 1px solid var(--border-glass);
    padding: 12px 24px;
    border-radius: 0 0 16px 16px;
    box-shadow: var(--shadow-premium);
    margin-bottom: 24px;
}

/* Visual Tables Layout */
.restaurant-table {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 16px;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.restaurant-table.available {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border-color: rgba(16, 185, 129, 0.3);
}

.restaurant-table.occupied {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    border-color: rgba(245, 158, 11, 0.3);
}

.restaurant-table.reserved {
    background: rgba(79, 70, 229, 0.15);
    color: var(--primary);
    border-color: rgba(79, 70, 229, 0.3);
}

.restaurant-table.billed {
    background: rgba(6, 182, 212, 0.15);
    color: var(--info);
    border-color: rgba(6, 182, 212, 0.4);
    animation: pulse-info 2s infinite;
}

@keyframes pulse-info {
    0% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(6, 182, 212, 0); }
    100% { box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
}

.restaurant-table:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-hover);
}

/* POS Interface Elements */
.pos-categories {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: thin;
}

.pos-category-btn {
    white-space: nowrap;
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.2s ease;
}

.pos-category-btn.active, .pos-category-btn:hover {
    background: var(--primary);
    color: white !important;
    border-color: var(--primary);
}

.menu-item-card {
    height: 100%;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.menu-item-card img {
    height: 120px;
    object-fit: cover;
    width: 100%;
}

.veg-indicator {
    width: 14px;
    height: 14px;
    border: 1.5px solid #10b981;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
}
.veg-indicator::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
}

.nonveg-indicator {
    width: 14px;
    height: 14px;
    border: 1.5px solid #ef4444;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
}
.nonveg-indicator::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
}

/* Cart side pane */
.pos-cart-container {
    height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
}

.pos-cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 4px;
}

/* Custom premium scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.2);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(100, 116, 139, 0.4);
}

/* Virtual Printer log style */
.printer-console {
    background: #090d16;
    color: #39ff14; /* Matrix Green */
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.85rem;
    padding: 15px;
    border-radius: 12px;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
    border: 1px solid rgba(57, 255, 20, 0.2);
}

.receipt-simulate {
    background: #fff;
    color: #000;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    max-width: 320px;
    margin: 0 auto;
    border: 1px dashed #ccc;
}

/* Cooking animation for active kitchen displays */
.cooking-animation {
    animation: cooking-glow 1.5s infinite alternate;
}

@keyframes cooking-glow {
    from { box-shadow: 0 0 4px rgba(245, 158, 11, 0.3); border-color: rgba(245, 158, 11, 0.3); }
    to { box-shadow: 0 0 12px rgba(245, 158, 11, 0.6); border-color: rgba(245, 158, 11, 0.8); }
}

/* Light / Dark Mode Toggle button style */
.theme-toggle-btn {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
    color: var(--primary);
    background: var(--primary-light);
}

/* Global Search Suggestions */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    backdrop-filter: blur(var(--blur-glass));
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    z-index: 1050;
    max-height: 300px;
    overflow-y: auto;
}

.search-result-item {
    padding: 10px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s ease;
}

.search-result-item:hover {
    background: var(--primary-light);
}

/* Responsive sidebars */
@media (max-width: 991.98px) {
    .glass-sidebar {
        width: 70px;
        overflow: hidden;
    }
    .glass-sidebar .sidebar-text, .glass-sidebar .logo-text {
        display: none;
    }
    .main-content {
        margin-left: 70px;
        padding: 15px;
    }
    .nav-link-custom {
        justify-content: center;
        padding: 12px;
    }
    .nav-link-custom i {
        margin-right: 0;
    }
}

@media (max-width: 575.98px) {
    .main-content {
        padding: 10px;
    }
}

/* ═══════════════════════════════════════════════════════
   POS TERMINAL — REDESIGNED UI
   ═══════════════════════════════════════════════════════ */

/* ── Table Selection Screen ─────────────────────────── */
.pos-table-screen {
    padding: 0;
}

.table-card {
    background: var(--bg-card);
    border: 2px solid var(--border-glass);
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 140px;
    position: relative;
    user-select: none;
}

.table-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px -12px rgba(0,0,0,0.12);
}

.table-card:active {
    transform: scale(0.97);
}

.table-card-number {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -1px;
    color: var(--text-primary);
}

.table-card-name {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Table status badges */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.67rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.status-available {
    background: rgba(16,185,129,0.12);
    color: #059669;
}

.status-running {
    background: rgba(245,158,11,0.12);
    color: #d97706;
    animation: pulse-warn 2s ease-in-out infinite;
}

.status-billed {
    background: rgba(239,68,68,0.12);
    color: #dc2626;
    animation: pulse-danger 2s ease-in-out infinite;
}

@keyframes pulse-warn {
    0%,100% { box-shadow: 0 0 0 0 rgba(245,158,11,0.3); }
    50% { box-shadow: 0 0 0 4px rgba(245,158,11,0); }
}

@keyframes pulse-danger {
    0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.3); }
    50% { box-shadow: 0 0 0 4px rgba(239,68,68,0); }
}

/* Small icon button */
.btn-icon-sm {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    color: var(--text-secondary);
    transition: all 0.15s ease;
    line-height: 1;
}

.btn-icon-sm:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
}

/* ── Order Workspace ────────────────────────────────── */
.pos-workspace {
    height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
}

.pos-topbar {
    flex-shrink: 0;
    border-radius: 14px;
}

.pos-table-badge {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: var(--text-primary);
    background: var(--primary-light);
    border-radius: 10px;
    padding: 6px 14px;
    border: 1px solid rgba(79,70,229,0.15);
}

/* ── Category Scroll Bar ───────────────────────────── */
.pos-categories-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    flex-shrink: 0;
    border-radius: 12px;
    scrollbar-width: none;
    white-space: nowrap;
}
.pos-categories-scroll::-webkit-scrollbar { display: none; }

.pos-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.18s ease;
    font-family: var(--font-sans);
}

.pos-cat-pill:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

.pos-cat-pill.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(79,70,229,0.3);
}

/* ── Menu Item Cards ───────────────────────────────── */
.pos-menu-card {
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.4,0,0.2,1);
    height: 100%;
    min-height: 110px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pos-menu-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px -8px rgba(0,0,0,0.12);
    border-color: var(--primary);
}

.pos-menu-card:active {
    transform: scale(0.96);
}

.pos-menu-card.item-added-pulse {
    animation: itemPulse 0.5s ease;
}

@keyframes itemPulse {
    0% { transform: scale(1); }
    30% { transform: scale(1.06); background: rgba(79,70,229,0.12); }
    100% { transform: scale(1); }
}

.pos-item-name {
    font-size: 0.83rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    flex-grow: 1;
}

.pos-item-code {
    font-size: 0.68rem;
    color: var(--text-secondary);
    background: rgba(100,116,139,0.1);
    padding: 1px 6px;
    border-radius: 8px;
    display: inline-block;
    margin-top: 2px;
}

.pos-item-price {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
}

.pos-diet-dot {
    font-size: 0.65rem;
}

.pos-quick-add {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.pos-quick-add:hover {
    background: var(--primary-hover);
    transform: scale(1.15);
}

/* ── Cart Items ────────────────────────────────────── */
.pos-cart-row {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    animation: slideInRight 0.2s ease;
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(12px); }
    to { opacity: 1; transform: translateX(0); }
}

.pos-cart-row:last-child {
    border-bottom: none;
}

.pos-qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    gap: 0;
}

.pos-qty-control button {
    width: 30px;
    height: 30px;
    border: none;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.pos-qty-control button:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.pos-qty-control span {
    min-width: 32px;
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    background: transparent;
    color: var(--text-primary);
    padding: 0 4px;
}

.pos-cart-totals {
    padding-top: 4px;
    margin-bottom: 8px;
}

.pos-cart-totals .d-flex {
    font-size: 0.85rem;
}

/* ── Customer Block ────────────────────────────────── */
.pos-customer-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.cust-dropdown {
    position: absolute;
    background: var(--bg-card);
    backdrop-filter: blur(var(--blur-glass));
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
    z-index: 1050;
    width: 100%;
    max-height: 220px;
    overflow-y: auto;
    margin-top: 2px;
}

#pos-customer-block {
    position: relative;
}

.cust-option {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s ease;
    font-size: 0.85rem;
}

.cust-option:last-child { border-bottom: none; }

.cust-option:hover {
    background: var(--primary-light);
}

/* ── Variation / Addon Selection Pills ─────────────── */
.var-pill-label {
    display: block;
    padding: 10px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.18s ease;
    font-size: 0.85rem;
    background: var(--bg-card);
}

.var-pill-label:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.var-pill-label.selected {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.var-pill-label.selected small {
    color: rgba(255,255,255,0.8) !important;
}

/* ── Payment Method Pills ──────────────────────────── */
.pay-method-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 24px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.18s ease;
    background: var(--bg-card);
    color: var(--text-primary);
    user-select: none;
}

.pay-method-pill:hover {
    border-color: #10b981;
    background: rgba(16,185,129,0.08);
    color: #059669;
}

.pay-method-pill.selected {
    border-color: #10b981;
    background: #10b981;
    color: white;
    box-shadow: 0 4px 14px rgba(16,185,129,0.3);
}

/* ── Toast Notifications ───────────────────────────── */
.toast-notification {
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: var(--font-sans);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    backdrop-filter: blur(12px);
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    max-width: 320px;
}

.toast-notification.toast-show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success {
    background: rgba(16,185,129,0.92);
    color: white;
    border: 1px solid rgba(255,255,255,0.15);
}

.toast-danger, .toast-error {
    background: rgba(239,68,68,0.92);
    color: white;
    border: 1px solid rgba(255,255,255,0.15);
}

.toast-warning {
    background: rgba(245,158,11,0.92);
    color: white;
    border: 1px solid rgba(255,255,255,0.15);
}

.toast-info {
    background: rgba(6,182,212,0.92);
    color: white;
    border: 1px solid rgba(255,255,255,0.15);
}

/* ── Receipt Print View ────────────────────────────── */
.receipt-simulate {
    background: #fff;
    color: #000;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.78rem;
    line-height: 1.6;
}

/* ── Drag/Drop DashBoard Highlight ────────────────── */
.drag-over-border {
    outline: 2px dashed var(--primary);
    outline-offset: 4px;
}

/* ── Responsive: Mobile POS ────────────────────────── */
@media (max-width: 991.98px) {
    .pos-workspace .row.g-3 {
        height: auto !important;
    }
    .pos-workspace .col-lg-7,
    .pos-workspace .col-lg-5 {
        height: auto !important;
    }
}

/* Tiny button variant */
.btn-xs {
    padding: 3px 8px;
    font-size: 0.75rem;
    line-height: 1.4;
    border-radius: 6px;
}


/* ── Settings Module Redesign (Liquid Glass UI) ────── */
.settings-split-container {
    display: flex;
    gap: 24px;
    min-height: 75vh;
}

.settings-nav-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.settings-pane-content {
    flex-grow: 1;
    min-width: 0; /* prevent flex blowout */
}

.settings-search-wrapper {
    position: relative;
    margin-bottom: 16px;
}

.settings-search-input {
    background: rgba(255, 255, 255, 0.5) !important;
    border: 1px solid var(--border-glass) !important;
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding-left: 36px;
}
[data-theme="dark"] .settings-search-input {
    background: rgba(15, 23, 42, 0.4) !important;
}

.settings-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.settings-nav-group {
    margin-bottom: 20px;
}

.settings-nav-group-header {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    margin-bottom: 8px;
    padding-left: 12px;
}

.settings-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
    margin-bottom: 4px;
}

.settings-nav-item:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: rgba(99, 102, 241, 0.1);
}

.settings-nav-item.active {
    background: var(--primary-light);
    color: var(--primary);
    border-color: rgba(99, 102, 241, 0.2);
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.05);
}

.settings-nav-item-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-nav-fav {
    color: var(--text-secondary);
    opacity: 0.3;
    transition: all 0.2s ease;
    cursor: pointer;
    padding: 2px;
}
.settings-nav-fav:hover, .settings-nav-fav.active {
    opacity: 1;
    color: #fbbf24;
}

/* Floor Plan Designer */
.floorplan-designer {
    display: flex;
    flex-direction: column;
    height: 600px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-glass);
    background: var(--bg-card);
    backdrop-filter: blur(16px);
}

.floorplan-toolbar {
    background: rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid var(--border-glass);
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
[data-theme="dark"] .floorplan-toolbar {
    background: rgba(15, 23, 42, 0.3);
}

.floorplan-canvas-container {
    flex-grow: 1;
    overflow: auto;
    position: relative;
    background: radial-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}
[data-theme="dark"] .floorplan-canvas-container {
    background: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
}

.floorplan-canvas {
    width: 1500px;
    height: 1000px;
    position: relative;
}

.designer-table-node {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary);
    color: var(--text-primary);
    font-weight: 600;
    user-select: none;
    cursor: move;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    background: var(--bg-card);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.designer-table-node.circle {
    border-radius: 50% !important;
}

.designer-table-node.square {
    border-radius: 10px;
}

.designer-table-node.rectangle {
    border-radius: 8px;
}

.designer-table-node:hover {
    box-shadow: var(--shadow-hover);
}

.designer-table-node.selected {
    border-color: var(--accent);
    outline: 2px solid rgba(217, 70, 239, 0.3);
    z-index: 10;
}

.designer-table-resize {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    right: -4px;
    bottom: -4px;
    cursor: nwse-resize;
    z-index: 11;
}

.designer-table-node.circle .designer-table-resize {
    right: 4px;
    bottom: 4px;
}

.designer-table-name {
    font-size: 0.8rem;
    pointer-events: none;
}

.designer-table-capacity {
    font-size: 0.65rem;
    opacity: 0.7;
    pointer-events: none;
}

/* Sticky Bottom Action Bar */
.settings-sticky-bar {
    position: fixed;
    bottom: 24px;
    left: 284px; /* offset sidebar */
    right: 24px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 14px 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
    transform: translateY(120px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}
.sidebar-collapsed + .main-content .settings-sticky-bar {
    left: 104px;
}
[data-theme="dark"] .settings-sticky-bar {
    background: rgba(15, 23, 42, 0.75);
}

.settings-sticky-bar.visible {
    transform: translateY(0);
    opacity: 1;
}

.save-indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
    background: #ef4444;
}
.save-indicator-dot.saved {
    background: #10b981;
    animation: pulse-saved 1.5s infinite;
}
@keyframes pulse-saved {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.6; }
    100% { transform: scale(1); opacity: 1; }
}

.spicy-level-flame {
    color: #cbd5e1;
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.15s ease;
}
.spicy-level-flame.active {
    color: #ef4444;
}

.settings-card {
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.settings-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary) !important;
}

.settings-card-icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 12px;
}

/* ═══════════════════════════════════════════
   CATEGORY GROUPS — Settings View
   ═══════════════════════════════════════════ */
.cat-group-block {
    border: 1px solid rgba(99,102,241,0.18);
    border-radius: 12px;
    margin-bottom: 14px;
    overflow: hidden;
}
.cat-ungrouped { border-color: rgba(100,116,139,0.2); }

.cat-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: rgba(99,102,241,0.05);
    border-bottom: 1px solid rgba(99,102,241,0.1);
    flex-wrap: wrap;
}
.cat-ungrouped .cat-group-header { background: rgba(100,116,139,0.05); border-bottom-color: rgba(100,116,139,0.1); }

.cat-group-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.cat-group-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.cat-group-name { font-weight: 700; font-size: 0.95rem; }
.cat-group-meta { font-size: 0.75rem; color: #64748b; margin-top: 1px; }

.cat-group-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    flex-shrink: 0;
}
.cat-group-actions .btn-xs {
    padding: 3px 9px;
    font-size: 0.75rem;
    border-radius: 6px;
}

.cat-group-children { padding: 6px 12px 10px; }

.cat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 6px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    gap: 10px;
}
.cat-row:last-child { border-bottom: none; }
.cat-row-child { padding-left: 12px; }
.cat-row:hover { background: rgba(99,102,241,0.03); border-radius: 6px; }

.cat-row-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.cat-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}
.cat-row-name { font-weight: 600; font-size: 0.85rem; }
.cat-row-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 3px; }

.cat-badge {
    font-size: 0.7rem;
    padding: 1px 7px;
    border-radius: 10px;
    font-weight: 500;
}
.cat-badge-tax     { background: rgba(16,185,129,0.1); color: #059669; }
.cat-badge-printer { background: rgba(99,102,241,0.1); color: #4f46e5; }
.cat-badge-none    { font-size: 0.7rem; color: #94a3b8; }

.cat-row-actions { display: flex; gap: 4px; flex-shrink: 0; }
.cat-row-actions .btn-xs {
    padding: 2px 7px;
    font-size: 0.73rem;
    border-radius: 5px;
}
.cat-empty { padding: 10px 6px; font-size: 0.8rem; color: #94a3b8; font-style: italic; }

[data-theme="dark"] .cat-group-block { border-color: rgba(99,102,241,0.25); }
[data-theme="dark"] .cat-group-header { background: rgba(99,102,241,0.08); }
[data-theme="dark"] .cat-row:hover { background: rgba(255,255,255,0.04); }

/* ── Menu Items Registry ─────────────────────────────────── */
.mir-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
.mir-header-left { display:flex; align-items:center; gap:10px; }
.mir-total-count { font-size:.78rem; color:#6b7280; background:#f3f4f6; border-radius:20px; padding:2px 10px; }
.mir-toolbar { display:flex; flex-direction:column; gap:10px; margin-bottom:16px; }
.mir-search-wrap { position:relative; }
.mir-search-icon { position:absolute; left:12px; top:50%; transform:translateY(-50%); color:#9ca3af; font-size:.9rem; pointer-events:none; }
.mir-search { width:100%; padding:9px 36px 9px 36px; border:1.5px solid #e5e7eb; border-radius:10px; font-size:.9rem; outline:none; background:#fff; transition:border-color .15s; }
.mir-search:focus { border-color:#6366f1; box-shadow:0 0 0 3px rgba(99,102,241,.1); }
.mir-search-clear { position:absolute; right:10px; top:50%; transform:translateY(-50%); background:none; border:none; color:#9ca3af; cursor:pointer; font-size:1rem; padding:0; }
.mir-filter-cats { display:flex; gap:6px; flex-wrap:wrap; }
.mir-cat-chip { padding:4px 12px; border-radius:20px; border:1.5px solid #e5e7eb; background:#fff; font-size:.78rem; font-weight:500; color:#374151; cursor:pointer; transition:all .15s; }
.mir-cat-chip:hover { border-color:#6366f1; color:#6366f1; }
.mir-cat-chip.active { background:#6366f1; border-color:#6366f1; color:#fff; }
.mir-list { display:flex; flex-direction:column; gap:8px; }
.mir-empty { text-align:center; padding:48px 24px; color:#9ca3af; background:#f9fafb; border-radius:12px; border:2px dashed #e5e7eb; }

.mir-cat-section { border:1.5px solid #e5e7eb; border-radius:12px; overflow:hidden; background:#fff; }
.mir-cat-header { display:flex; align-items:center; justify-content:space-between; padding:12px 16px; background:#f8f9fc; cursor:pointer; user-select:none; border-bottom:1px solid #e5e7eb; transition:background .15s; }
.mir-cat-header:hover { background:#f0f0ff; }
.mir-cat-header-left { display:flex; align-items:center; gap:8px; }
.mir-chevron { font-size:.8rem; color:#6366f1; transition:transform .2s; }
.mir-cat-section.collapsed .mir-chevron { transform:rotate(-90deg); }
.mir-cat-section.collapsed .mir-cat-body { display:none; }
.mir-cat-name { font-weight:600; font-size:.9rem; color:#111827; }
.mir-cat-count { font-size:.73rem; color:#6b7280; background:#f3f4f6; border-radius:20px; padding:1px 8px; }
.mir-cat-add { font-size:.75rem !important; padding:2px 10px !important; }

.mir-cat-body { display:flex; flex-direction:column; }
.mir-item { display:flex; align-items:center; justify-content:space-between; padding:10px 16px; border-bottom:1px solid #f3f4f6; transition:background .12s; }
.mir-item:last-child { border-bottom:none; }
.mir-item:hover { background:#fafbff; }
.mir-item-left { display:flex; align-items:center; gap:10px; flex:1; min-width:0; }
.mir-dot { width:10px; height:10px; border-radius:50%; flex-shrink:0; }
.mir-item-info { display:flex; flex-direction:column; min-width:0; }
.mir-item-name { font-weight:500; font-size:.88rem; color:#111827; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mir-item-sku { font-size:.72rem; color:#9ca3af; letter-spacing:.04em; }
.mir-item-right { display:flex; align-items:center; gap:8px; flex-shrink:0; }
.mir-price { font-weight:600; font-size:.9rem; color:#059669; }
.mir-diet-badge { font-size:.7rem; font-weight:600; padding:2px 8px; border-radius:20px; white-space:nowrap; }
.btn-ghost { background:none; border:none; padding:4px 6px; border-radius:6px; transition:background .12s; }
.mir-btn-edit:hover { background:#e0e7ff; color:#6366f1; }
.mir-btn-del:hover { background:#fee2e2; color:#ef4444; }

/* ── Menu Item Editor Modal ──────────────────────────────── */
.mie-tabs-bar { background:#f8f9fc; border-bottom:1.5px solid #e5e7eb; padding:0 16px; }
.mie-tabs-bar .nav { gap:2px; flex-wrap:nowrap; overflow-x:auto; }
.mie-tab { border:none; background:none; padding:12px 16px; font-size:.82rem; font-weight:500; color:#6b7280; cursor:pointer; border-bottom:2.5px solid transparent; margin-bottom:-1.5px; white-space:nowrap; transition:all .15s; }
.mie-tab:hover { color:#6366f1; }
.mie-tab.active { color:#6366f1; border-bottom-color:#6366f1; font-weight:600; }

.mie-section { margin-bottom:24px; padding-bottom:24px; border-bottom:1.5px solid #f3f4f6; }
.mie-section:last-child { border-bottom:none; margin-bottom:0; padding-bottom:0; }
.mie-section-label { font-size:.72rem; font-weight:700; color:#6366f1; text-transform:uppercase; letter-spacing:.08em; margin-bottom:12px; display:flex; align-items:center; }
.mie-label { font-size:.82rem; font-weight:600; color:#374151; margin-bottom:4px; display:block; }
.mie-optional { font-weight:400; color:#9ca3af; font-size:.75rem; margin-left:4px; }

.mie-diet-group { display:flex; gap:6px; }
.mie-diet-option input { display:none; }
.mie-diet-btn { display:block; padding:6px 12px; border-radius:8px; font-size:.8rem; font-weight:500; cursor:pointer; border:1.5px solid #e5e7eb; background:#fff; transition:all .15s; white-space:nowrap; }
.mie-diet-btn.selected { border-color:var(--dc); background:color-mix(in srgb,var(--dc) 10%,white); color:var(--dc); }
.mie-diet-btn:hover { border-color:var(--dc,#6366f1); }

.mie-spicy-row { display:flex; gap:6px; }
.mie-spicy-btn { border:1.5px solid #e5e7eb; background:#fff; border-radius:8px; padding:5px 10px; font-size:.82rem; cursor:pointer; transition:all .15s; }
.mie-spicy-btn:hover,.mie-spicy-btn.active { background:#fff7ed; border-color:#f97316; }

.mie-day-chip { display:inline-flex; align-items:center; gap:5px; cursor:pointer; }
.mie-day-chip input { display:none; }
.mie-day-chip span { display:block; padding:6px 12px; border-radius:8px; font-size:.8rem; font-weight:600; border:1.5px solid #e5e7eb; background:#fff; color:#374151; transition:all .15s; }
.mie-day-chip input:checked + span { background:#6366f1; border-color:#6366f1; color:#fff; }

[data-theme="dark"] .mir-cat-section { border-color:rgba(255,255,255,.08); background:#1e1e2e; }
[data-theme="dark"] .mir-cat-header { background:rgba(99,102,241,.08); border-color:rgba(255,255,255,.06); }
[data-theme="dark"] .mir-item:hover { background:rgba(99,102,241,.05); }
[data-theme="dark"] .mir-item { border-color:rgba(255,255,255,.05); }
[data-theme="dark"] .mir-search { background:#1e1e2e; border-color:rgba(255,255,255,.12); color:#e2e8f0; }
[data-theme="dark"] .mir-cat-chip { background:#1e1e2e; border-color:rgba(255,255,255,.12); color:#cbd5e1; }
[data-theme="dark"] .mie-tab { color:#94a3b8; }
[data-theme="dark"] .mie-section { border-color:rgba(255,255,255,.07); }
[data-theme="dark"] .mie-diet-btn,[data-theme="dark"] .mie-spicy-btn,[data-theme="dark"] .mie-day-chip span { background:#1e1e2e; border-color:rgba(255,255,255,.12); color:#cbd5e1; }

/* ── Settings Center Page Header ─────────────────────────── */
.sc-page-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px; padding: 20px 24px;
    background: var(--bg-card); backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass); border-radius: 16px;
    box-shadow: var(--shadow-premium); position: relative; overflow: hidden;
}
.sc-page-header::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}
.sc-header-left { display: flex; align-items: center; gap: 14px; }
.sc-header-icon {
    width: 48px; height: 48px; border-radius: 14px;
    background: var(--primary-light); color: var(--primary);
    display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
    box-shadow: 0 0 20px var(--primary-light);
}
.sc-header-title { font-size: 1.2rem; font-weight: 800; margin: 0; color: var(--text-primary); }
.sc-header-sub { font-size: .75rem; color: var(--text-secondary); margin: 0; }
.sc-save-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px; border-radius: 20px; font-size: .78rem; font-weight: 600;
    background: var(--bg-card); border: 1.5px solid var(--border-color);
    color: var(--text-secondary);
}

/* ── Global form & input polish ──────────────────────────── */
.form-control, .form-select {
    border-radius: 10px !important;
    border-color: var(--border-color) !important;
    font-size: .88rem !important;
    transition: border-color .15s, box-shadow .15s !important;
}
.form-control:focus, .form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px var(--primary-light) !important;
}
.btn { border-radius: 10px !important; font-weight: 500 !important; }
.btn-primary {
    background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 70%, var(--accent))) !important;
    border: none !important;
    box-shadow: 0 4px 14px var(--primary-light) !important;
}
.btn-primary:hover { transform: translateY(-1px) !important; box-shadow: 0 6px 20px var(--primary-light) !important; }

/* ══════════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════════ */
.glass-header {
    background: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    box-shadow: 0 1px 12px rgba(0,0,0,0.05);
}

/* ══════════════════════════════════════════════════════════
   MAIN SIDEBAR — redesigned
══════════════════════════════════════════════════════════ */
.glass-sidebar {
    background: #ffffff !important;
    border-right: 1px solid #f1f5f9 !important;
    box-shadow: 2px 0 16px rgba(0,0,0,0.05) !important;
    backdrop-filter: none !important;
}

/* Brand / Logo area */
.logo-wrapper { gap: 10px; }
.logo-icon { font-size: 1.6rem !important; }
.logo-text {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -.02em;
}

/* Collapse/toggle button */
.sidebar-toggle-btn {
    width: 26px; height: 26px; padding: 0 !important;
    border-radius: 8px !important;
    background: #f1f5f9 !important;
    border: none !important;
    color: #94a3b8 !important;
    display: flex; align-items: center; justify-content: center;
    transition: background .15s, color .15s !important;
}
.sidebar-toggle-btn:hover { background: #e2e8f0 !important; color: #4f46e5 !important; }

/* Search box */
.search-container .input-group {
    background: #f8fafc;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}
.search-container .input-group:focus-within {
    border-color: rgba(99,102,241,0.4) !important;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.08) !important;
}
.search-container .input-group-text {
    background: transparent !important;
    border: none !important;
    color: #6366f1 !important;
    padding-right: 6px !important;
}
.sidebar-search-input {
    background: transparent !important;
    border: none !important;
    font-size: .8rem !important;
    color: #1e293b !important;
    padding-left: 4px !important;
}
.sidebar-search-input::placeholder { color: #94a3b8 !important; }
.sidebar-search-input:focus { box-shadow: none !important; }

/* Section labels */
.menu-group-label {
    font-size: .62rem !important;
    font-weight: 700 !important;
    letter-spacing: .1em !important;
    color: #94a3b8 !important;
    padding: 12px 10px 4px !important;
    text-transform: uppercase !important;
}

/* ── Base nav item ── */
.nav-link-custom {
    display: flex !important;
    align-items: center !important;
    padding: 9px 12px !important;
    color: #475569 !important;
    border-radius: 10px !important;
    font-size: .855rem !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    margin-bottom: 1px !important;
    transition: background .15s, color .15s !important;
    border-left: none !important;
    transform: none !important;
    gap: 10px;
}
.nav-link-custom i {
    font-size: 1rem !important;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

/* Hover */
.nav-link-custom:hover {
    background: #f1f5f9 !important;
    color: #1e293b !important;
    transform: none !important;
}

/* Active leaf item */
.nav-link-custom.active {
    background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-left: none !important;
    box-shadow: 0 4px 12px rgba(99,102,241,0.25) !important;
}
.nav-link-custom.active i { color: #fff !important; }

/* Group header (accordion parent) */
.menu-group-header {
    color: #374151 !important;
    font-weight: 600 !important;
    font-size: .84rem !important;
    margin-top: 4px !important;
}
.menu-group-header:hover { background: #f8fafc !important; color: #4f46e5 !important; }
.menu-group-header.text-primary { color: #4f46e5 !important; }
.menu-group-header .chevron-indicator { color: #cbd5e1; font-size: .72rem !important; margin-left: auto; }
.menu-group-header i:first-child { color: #6366f1; }

/* Child items — indented, hide the default circle icon */
.menu-group-children .nav-link-custom {
    padding-left: 36px !important;
    font-size: .83rem !important;
    color: #64748b !important;
}
.menu-group-children .nav-link-custom i {
    display: none !important;
}
.menu-group-children .nav-link-custom::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #cbd5e1;
    flex-shrink: 0;
    margin-right: 10px;
    transition: background .15s;
}
.menu-group-children .nav-link-custom:hover::before { background: #6366f1; }
.menu-group-children .nav-link-custom:hover { color: #1e293b !important; }
.menu-group-children .nav-link-custom.active {
    color: #fff !important;
    padding-left: 36px !important;
}
.menu-group-children .nav-link-custom.active::before { background: #fff; }

/* Pin toggle button on hover */
.link-item-wrapper:hover .pin-toggle-btn { opacity: 1 !important; }
.pin-toggle-btn { background: transparent !important; }

/* Divider between pinned and main */
.border-glass { border-color: #f1f5f9 !important; }

/* Hide default bi-circle fallback icon on standalone items */
.link-item-wrapper > .nav-link-custom .bi-circle {
    opacity: 0;
    width: 0; margin: 0;
}

/* Logout button */
.sidebar-logout-btn, .nav-link-custom.text-danger {
    color: #ef4444 !important;
    background: transparent !important;
}
.sidebar-logout-btn:hover, .nav-link-custom.text-danger:hover {
    background: rgba(239,68,68,0.08) !important;
    color: #dc2626 !important;
}
.bottom-logout { border-color: #f1f5f9 !important; }

/* ══════════════════════════════════════════════════════════
   PRINTER CONFIG UI
══════════════════════════════════════════════════════════ */
.pc-wrap { max-width: 860px; }
.pc-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }

/* Setup guide */
.pc-guide {
    background: #f8faff;
    border: 1px solid rgba(99,102,241,0.15);
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 24px;
}
.pc-guide-title { font-weight: 700; font-size: .85rem; color: #4338ca; margin-bottom: 12px; }
.pc-guide-steps { display: flex; flex-direction: column; gap: 10px; }
.pc-guide-step { display: flex; gap: 12px; align-items: flex-start; font-size: .83rem; color: #374151; line-height: 1.5; }
.pc-step-num {
    width: 22px; height: 22px; border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff; font-size: .7rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; margin-top: 1px;
}

/* Printer cards */
.pc-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.pc-card {
    display: flex; align-items: center; gap: 16px;
    background: #fff; border: 1px solid #e2e8f0;
    border-radius: 14px; padding: 14px 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
    transition: box-shadow .15s;
}
.pc-card:hover { box-shadow: 0 4px 16px rgba(99,102,241,.1); border-color: rgba(99,102,241,.25); }
.pc-card-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: linear-gradient(135deg,rgba(99,102,241,.1),rgba(139,92,246,.08));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: #6366f1; flex-shrink: 0;
}
.pc-card-body { flex: 1; min-width: 0; }
.pc-card-name { font-weight: 700; font-size: .9rem; color: #0f172a; }
.pc-card-meta { font-size: .75rem; color: #64748b; margin-top: 2px; }
.pc-card-badges { display: flex; gap: 6px; margin-top: 4px; }
.pc-card-actions { display: flex; gap: 6px; flex-shrink: 0; }
.pc-empty { text-align: center; padding: 40px; color: #94a3b8; line-height: 1.8; }

/* Category routing */
.pc-route-section { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 20px; }
.pc-route-title { font-weight: 700; font-size: .9rem; color: #1e293b; margin-bottom: 8px; }

/* Editor modal */
.pc-toggle-card {
    display: flex; justify-content: space-between; align-items: flex-start;
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px;
    padding: 12px 14px;
}
.pc-info-box {
    background: rgba(251,191,36,.06);
    border: 1px solid rgba(251,191,36,.25);
    border-radius: 10px; padding: 12px 14px;
    font-size: .82rem; color: #374151;
}

/* ── Scrollbar styling ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(99,102,241,0.2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: rgba(99,102,241,0.4); }

/* Selection color */
::selection { background: rgba(99,102,241,0.2); color: var(--text-primary); }
