/* ==========================================================================
   ADISYON PRO - PREMIUM NEXT-GEN DASHBOARD DESIGN (GLASS & GLOW)
   ========================================================================== */

/* Design Tokens & CSS Custom Properties */
:root {
    /* Color Palette - POSA High Contrast Flat Design */
    --bg-dark: #2c3e50; /* Solid dark blue-gray */
    --bg-card: #34495e; /* Solid lighter blue-gray */
    --bg-sidebar: #1a252f; /* Very dark solid bar */
    --bg-input: #ffffff;
    
    /* Solid Borders */
    --border-subtle: #1a252f;
    --border-hover: #ffffff;
    --border-glow: transparent;
    
    /* Core Flat Accents */
    --primary: #8e44ad; /* Flat Purple */
    --primary-glow: transparent;
    --primary-hover: #9b59b6;
    --primary-light: #9b59b6;
    
    --secondary: #6366f1; /* Neon Indigo */
    --secondary-glow: rgba(99, 102, 241, 0.25);
    
    /* POSA Category & Product Colors */
    --status-empty: #2ecc71; /* Flat Green */
    --status-empty-glow: transparent;
    --status-occupied: #e74c3c; /* Flat Red */
    --status-occupied-glow: transparent;
    --status-billing: #f1c40f; /* Flat Yellow */
    --status-billing-glow: transparent;
    
    /* Text Hierarchy */
    --text-main: #ffffff; 
    --text-muted: #bdc3c7; 
    --text-light: #ecf0f1; 
    
    /* Gradients replaced with solid colors */
    --grad-primary: #8e44ad;
    --grad-empty: #2ecc71;
    --grad-occupied: #e74c3c;
    --grad-billing: #f1c40f;
    --grad-dark-card: #2c3e50;
    
    /* Typography & Utilities */
    --font-primary: 'Segoe UI', Arial, sans-serif; /* Standard readable font */
    --transition-smooth: none; /* Instant feedback */
    --glass-shadow: none;
    --glass-blur: none;
    --border-radius-lg: 4px;
    --border-radius-xl: 4px;
}

/* ==========================================================================
   BASE & RESET STYLES (WITH FLOATING ORBS)
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-primary);
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow: hidden;
    height: 100vh;
    width: 100vw;
    position: relative;
    font-size: 16px; /* Daha okunaklı temel punto */
}

/* Orbs removed for high contrast POS mode */

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.01);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* Layout Framework */
.app-container {
    display: flex;
    flex-direction: row; /* left to right */
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: relative;
    z-index: 5;
}

/* POSA Layout Ordering (Products Left, Cart Right) */
.app-sidebar { order: 1; }
.app-main { order: 2; flex: 1; position: relative; overflow-y: auto; overflow-x: hidden; }
.app-billing-sidebar { order: 3; border-left: 2px solid var(--bg-sidebar); border-right: none !important; }

/* View Switching Logic */
.main-view {
    display: none;
    width: 100%;
    min-height: 100%;
}

.main-view.active {
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   APP SIDEBAR STYLES (FLAT SOLID)
   ========================================================================== */
.app-sidebar {
    width: 130px; /* Narrower sidebar for POSA style */
    background: var(--bg-sidebar);
    border-right: 1px solid var(--bg-dark);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px 5px;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 36px;
    padding: 0 6px;
}

.brand-logo {
    width: 44px;
    height: 44px;
    background: var(--grad-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px var(--primary-glow);
}

.brand-logo i {
    font-size: 20px;
    color: white;
}

.brand-text h2 {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.7px;
    color: white;
}

.brand-text h2 span {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-status {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 3px;
    font-weight: 500;
}

.brand-status i {
    color: var(--status-empty);
    font-size: 7px;
    animation: statusPulse 1.8s infinite;
}

@keyframes statusPulse {
    0% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1.1); opacity: 0.5; box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Navigation Menu */
.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
}

.menu-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 14px 18px;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.menu-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.04);
}

.menu-btn.active {
    color: white;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.25);
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.1);
}

.menu-btn.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 4px;
    background: var(--grad-primary);
    border-radius: 0 4px 4px 0;
}

.menu-btn i {
    font-size: 18px;
    width: 22px;
    transition: var(--transition-smooth);
}

.menu-btn.active i {
    color: var(--primary-light);
    transform: scale(1.1);
}

/* Sidebar Footer */
.sidebar-footer {
    border-top: 1px solid var(--border-subtle);
    padding-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.01);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
}

#current-time {
    font-size: 18px;
    font-weight: 800;
    color: white;
    letter-spacing: 0.5px;
}

#current-date {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 3px;
    font-weight: 600;
}

.btn-reset {
    background: rgba(244, 63, 94, 0.08);
    color: #f43f5e;
    border: 1px solid rgba(244, 63, 94, 0.15);
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.btn-reset:hover {
    background: #f43f5e;
    color: white;
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.3);
    transform: translateY(-1px);
}

/* ==========================================================================
   MAIN DASHBOARD MODULES
   ========================================================================== */
.app-main {
    flex: 1;
    height: 100vh;
    overflow-y: auto;
    padding: 32px;
    display: flex;
    flex-direction: column;
    z-index: 2;
}

.main-view {
    display: none;
    animation: moduleFadeIn 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.main-view.active {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

@keyframes moduleFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.view-header h1 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.8px;
    color: white;
}

.view-header h1 span {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.view-header p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 5px;
}

/* ==========================================================================
   POSA CATEGORY & MENU ITEMS (FLAT SOLID)
   ========================================================================== */

#order-menu-view {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 10px;
}

.view-header {
    /* normal block */
}

#main-menu-cats-container {
    /* normal block */
}

#main-menu-items-container {
    flex: 1;
}

.section-tabs {
    display: flex;
    flex-direction: row;
    gap: 10px;
    background: transparent;
    padding: 0;
    border: none;
    align-self: stretch;
    backdrop-filter: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 5px;
}

.tab-btn {
    background: var(--status-billing);
    border: none;
    color: #000 !important;
    padding: 16px 24px;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-transform: uppercase;
    transition: none;
    white-space: nowrap;
    min-width: 140px;
}

.tab-btn:hover {
    background: #f39c12;
}

.tab-btn.active {
    background: #f39c12;
    box-shadow: none;
}

/* Flat Product Card Grid */
.tables-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    padding-bottom: 30px;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
}

.order-product-card {
    background: var(--status-empty);
    border: none;
    border-radius: var(--border-radius-lg);
    padding: 16px;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    backdrop-filter: none;
    box-shadow: none;
    transition: none;
}

/* No hologram glow */
.order-product-card::after {
    display: none;
}

.order-product-card:hover {
    transform: none;
    background: #27ae60;
}

.order-product-card:hover::after {
    display: none;
}

.order-product-card .emoji-badge {
    display: none;
}

.order-product-card:hover .emoji-badge {
    display: none;
}

.order-product-card .product-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: center;
    width: 100%;
}

.order-product-card .product-details h3 {
    font-size: 20px;
    font-weight: 800;
    color: white;
    letter-spacing: 0;
}

.order-product-card .product-details p {
    display: none;
}

.order-product-card .card-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: none;
    padding-top: 0;
}

.order-product-card .price {
    font-size: 16px;
    font-weight: 800;
    color: white;
    background: rgba(0,0,0,0.2);
    padding: 4px 10px;
    border-radius: 4px;
}

.order-product-card .btn-add {
    display: none;
}

.order-product-card:hover .btn-add {
    display: none;
}

/* ==========================================================================
   CARİ BORÇ DEFTERİ VIEW (CREDIT CARD STYLE GRID)
   ========================================================================== */
.cari-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    height: calc(100vh - 160px);
    overflow: hidden;
}

.cari-left-panel {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-right: 1px solid var(--border-subtle);
    padding-right: 20px;
}

.cari-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    flex: 1;
    padding-right: 4px;
}

/* Cari Bank Card Layout */
.cari-card {
    background: var(--grad-dark-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius-lg);
    padding: 16px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    backdrop-filter: var(--glass-blur);
    transition: var(--transition-smooth);
}

/* Glow bar representing debt */
.cari-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--status-empty); /* Zero balance -> Green */
}

.cari-card.has-debt::before {
    background: var(--status-billing); /* Debt balance -> Golden Amber */
}

.cari-card:hover {
    transform: translateX(6px);
    border-color: var(--border-hover);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.cari-card.active-selected {
    outline: 2px solid var(--primary);
    box-shadow: 0 0 16px var(--primary-glow);
    background: rgba(139, 92, 246, 0.05);
}

.cari-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.cari-card-name {
    font-size: 15px;
    font-weight: 700;
    color: white;
    letter-spacing: -0.3px;
}

.cari-card-phone {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 6px;
    display: block;
    font-weight: 500;
}

.cari-card-balance {
    font-size: 16px;
    font-weight: 800;
    color: var(--status-billing);
}

.cari-card.no-debt .cari-card-balance {
    color: var(--status-empty);
}

/* Right Customer Ledger Details Panel */
.cari-right-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius-xl);
    padding: 28px;
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow);
    overflow-y: auto;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.cari-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 24px;
}

.det-cari-name {
    font-size: 24px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.6px;
}

.cari-phone {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
    display: inline-block;
    font-weight: 500;
}

.cari-balance-box {
    text-align: right;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-subtle);
    padding: 14px 28px;
    border-radius: var(--border-radius-lg);
}

.cari-balance-box .lbl {
    font-size: 10px;
    color: var(--text-light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cari-balance-box .amt {
    font-size: 26px;
    font-weight: 850;
    color: var(--status-billing);
    display: block;
    margin-top: 4px;
}

.cari-actions-bar {
    display: flex;
    gap: 12px;
    margin: 24px 0;
}

/* ==========================================================================
   RIGHT SIDEBAR: SALES BASKET / SEPET
   ========================================================================== */
.app-billing-sidebar {
    width: 450px; /* Wider for POSA cart */
    background: var(--bg-card);
    border-left: none;
    display: flex;
    flex-direction: column;
    backdrop-filter: none;
    box-shadow: none;
    z-index: 10;
}

.selected-table-state {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.billing-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.billing-orders-list {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-height: calc(100vh - 220px);
    border-bottom: 1px solid var(--border-subtle);
}

/* Flat Sepet Card Items */
.order-item {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-subtle);
    padding: 14px 0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: none;
}

.order-item:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: var(--border-hover);
}

.order-item-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.order-item-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.order-item-title {
    font-size: 18px;
    font-weight: 800;
    color: white;
}

.order-item-price {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 600;
}

.order-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-control {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    overflow: hidden;
}

.quantity-control button {
    background: transparent;
    border: none;
    color: var(--text-main);
    width: 34px;
    height: 34px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.quantity-control button:hover {
    background: rgba(255, 255, 255, 0.06);
}

.quantity-control span {
    font-size: 16px;
    font-weight: 800;
    width: 30px;
    text-align: center;
}

.order-item-total {
    font-size: 18px;
    font-weight: 800;
    color: white;
    min-width: 60px;
    text-align: right;
}

.btn-remove {
    background: rgba(244, 63, 94, 0.08);
    color: #f43f5e;
    border: none;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.btn-remove:hover {
    background: #f43f5e;
    color: white;
    box-shadow: 0 2px 8px rgba(244, 63, 94, 0.3);
}

.order-item-note {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-item-note input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    flex: 1;
    font-size: 11px;
}

/* Sidebar Basket Totals Footer */
.billing-footer {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: rgba(0, 0, 0, 0.3);
}

.discount-selector {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-lbl {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.discount-chips {
    display: flex;
    gap: 5px;
}

.discount-chips button {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.discount-chips button:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.discount-chips button.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 10px var(--primary-glow);
}

.price-summary {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.summary-row.text-discount {
    color: var(--status-billing);
    font-weight: 600;
}

.summary-row.grand-total {
    font-size: 20px;
    font-weight: 800;
    color: white;
    border-top: 1px solid var(--border-subtle);
    padding-top: 14px;
    margin-top: 4px;
}

/* ==========================================================================
   BUTTONS AND ACTIONS (NEON EFFECT)
   ========================================================================== */
.btn {
    border: none;
    padding: 18px 24px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--grad-primary);
    color: white;
    box-shadow: 0 4px 16px var(--primary-glow);
}

.btn-primary:hover {
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-hover);
}

.btn-success {
    background: var(--grad-empty);
    color: white;
    box-shadow: 0 4px 16px var(--status-empty-glow);
}

.btn-success:hover {
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.5);
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* ==========================================================================
   REPORTS & ANALYTICS VIEWS (PREMIUM DASHBOARD AESTHETIC)
   ========================================================================== */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 8px;
}

.report-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius-xl);
    padding: 28px 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

/* Subtle gradient glow behind the card content */
.report-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border-radius: 50%;
    transition: var(--transition-smooth);
    opacity: 0;
}

.report-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.report-card:hover::before {
    opacity: 1;
    transform: scale(1.5);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    position: relative;
    z-index: 2;
}

.card-icon.c-green { 
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(16, 185, 129, 0.05) 100%);
    color: var(--status-empty); 
    border: 1px solid rgba(16, 185, 129, 0.2); 
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.1);
}

.card-icon.c-blue { 
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(99, 102, 241, 0.05) 100%);
    color: #818cf8; 
    border: 1px solid rgba(99, 102, 241, 0.2);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.1);
}

.card-icon.c-orange { 
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.05) 100%);
    color: var(--status-billing); 
    border: 1px solid rgba(245, 158, 11, 0.2);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.1);
}

.card-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 2;
}

.card-title {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.card-value {
    font-size: 28px;
    font-weight: 850;
    color: white;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.analytics-details {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 24px;
}

.analytics-box {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius-xl);
    padding: 28px;
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow);
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

/* Subtle top glow line for analytics boxes */
.analytics-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}

.analytics-box h3 {
    font-size: 18px;
    font-weight: 800;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.3px;
    margin-bottom: 4px;
}

.analytics-box h3 i {
    color: var(--primary-light);
    background: rgba(139, 92, 246, 0.1);
    padding: 8px;
    border-radius: 8px;
    font-size: 14px;
}

.scroll-table {
    overflow-x: auto;
    max-height: 360px;
    padding-right: 4px;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th, td {
    padding: 16px 14px;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

th {
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.8px;
    background: rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 5;
    backdrop-filter: blur(10px);
}

th:first-child { border-top-left-radius: 10px; border-bottom-left-radius: 10px; }
th:last-child { border-top-right-radius: 10px; border-bottom-right-radius: 10px; }

td {
    color: var(--text-main);
    transition: var(--transition-smooth);
}

tr {
    transition: var(--transition-smooth);
}

tr:hover td {
    background: rgba(255,255,255,0.02);
}

tr:last-child td {
    border-bottom: none;
}

.no-data {
    text-align: center;
    color: var(--text-muted);
    padding: 40px;
    font-style: italic;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-right: 8px;
    overflow-y: auto;
    max-height: 360px;
}

.category-sales-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    background: rgba(255,255,255,0.01);
    border-radius: 12px;
    border: 1px solid transparent;
    transition: var(--transition-smooth);
}

.category-sales-item:hover {
    background: rgba(255,255,255,0.02);
    border-color: rgba(255,255,255,0.05);
    transform: translateX(4px);
}

.cat-sales-meta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 700;
    color: white;
}

.cat-progress-bar {
    height: 10px;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.02);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.cat-progress-fill {
    height: 100%;
    background: var(--grad-primary);
    border-radius: 8px;
    transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}

/* Shine effect on progress fill */
.cat-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ==========================================================================
   MENU EDITOR STYLES
   ========================================================================== */
.menu-editor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.menu-edit-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    backdrop-filter: var(--glass-blur);
    box-shadow: var(--glass-shadow);
    transition: var(--transition-smooth);
}

.menu-edit-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

.menu-edit-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.menu-edit-emoji {
    font-size: 26px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-edit-details h4 {
    font-size: 15px;
    font-weight: 700;
    color: white;
}

.menu-edit-details span {
    font-size: 10px;
    color: var(--primary-light);
    background: rgba(139, 92, 246, 0.08);
    padding: 3px 8px;
    border-radius: 6px;
    margin-top: 4px;
    display: inline-block;
    font-weight: 700;
}

.menu-edit-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    min-height: 36px;
}

.menu-edit-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-subtle);
    padding-top: 12px;
}

.menu-edit-price {
    font-size: 16px;
    font-weight: 800;
    color: white;
}

.menu-edit-actions {
    display: flex;
    gap: 6px;
}

.menu-edit-actions button {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: var(--transition-smooth);
}

.btn-item-edit {
    background: rgba(99, 102, 241, 0.08);
    color: #6366f1;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

.btn-item-edit:hover { background: #6366f1; color: white; box-shadow: 0 4px 10px var(--secondary-glow); }

.btn-item-delete {
    background: rgba(244, 63, 94, 0.08);
    color: #f43f5e;
    border: 1px solid rgba(244, 63, 94, 0.15);
}

.btn-item-delete:hover { background: #f43f5e; color: white; box-shadow: 0 4px 10px rgba(244, 63, 94, 0.3); }

/* ==========================================================================
   MODAL WINDOWS (FROSTED GLASS BLUR BACKDROP)
   ========================================================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    z-index: 100;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: #090d16;
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    width: 500px;
    max-width: 90%;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-sm .modal-content {
    width: 400px;
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 17px;
    font-weight: 800;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.4px;
}

.close-btn {
    background: transparent;
    border: none;
    font-size: 26px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.close-btn:hover {
    color: white;
}

.modal-body {
    padding: 24px;
}

.modal-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Form inputs styling */
.form-group {
    margin-bottom: 18px;
}

.form-row {
    display: flex;
    gap: 14px;
}

.form-group.half {
    flex: 1;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 16px 18px;
    color: white;
    font-size: 16px;
    outline: none;
    transition: var(--transition-smooth);
}

.form-control:focus {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 10px var(--primary-glow);
}

textarea.form-control {
    resize: none;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
    padding-right: 36px;
}

.modal-actions-right {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

/* Payment Checkout Details */
.checkout-amount-display {
    text-align: center;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-subtle);
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 24px;
}

.checkout-amount-display .lbl {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.checkout-amount-display .amt {
    display: block;
    font-size: 32px;
    font-weight: 850;
    color: white;
    margin-top: 6px;
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.payment-method-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 20px 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--text-main);
    transition: var(--transition-smooth);
}

.payment-method-card i {
    font-size: 26px;
}

.payment-method-card span {
    font-size: 12px;
    font-weight: 750;
}

.payment-method-card.cash:hover { background: rgba(16, 185, 129, 0.08); border-color: var(--status-empty); color: var(--status-empty); box-shadow: 0 4px 14px var(--status-empty-glow); }
.payment-method-card.card:hover { background: rgba(99, 102, 241, 0.08); border-color: #6366f1; color: #6366f1; box-shadow: 0 4px 14px var(--secondary-glow); }
.payment-method-card.meal-card:hover { background: rgba(139, 92, 246, 0.08); border-color: var(--primary); color: var(--primary); box-shadow: 0 4px 14px var(--primary-glow); }

/* Success Animation Tick Mark */
.payment-success-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
    gap: 18px;
    animation: fadeIn 0.4s ease;
}

.payment-success-animation h3 {
    color: var(--status-empty);
    font-size: 20px;
    font-weight: 800;
}

.payment-success-animation p {
    font-size: 13px;
    color: var(--text-muted);
}

.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto;
}

.success-checkmark .check-icon {
    width: 80px;
    height: 80px;
    position: relative;
    border-radius: 50%;
    box-sizing: content-box;
    border: 4px solid var(--status-empty);
}

.success-checkmark .check-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0.1);
    animation: successPulseKey 1.8s infinite;
}

.success-checkmark .check-icon .icon-line {
    height: 5px;
    background-color: var(--status-empty);
    display: block;
    border-radius: 2px;
    position: absolute;
    z-index: 10;
}

.success-checkmark .check-icon .icon-line.line-tip {
    top: 46px;
    left: 14px;
    width: 25px;
    transform: rotate(45deg);
}

.success-checkmark .check-icon .icon-line.line-long {
    top: 38px;
    right: 8px;
    width: 47px;
    transform: rotate(-45deg);
}

@keyframes successPulseKey {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.25); }
    70% { box-shadow: 0 0 0 15px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ==========================================================================
   ANIMATIONS & DEFAULTS
   ========================================================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hidden { display: none !important; }
.print-only { display: none; }

/* ==========================================================================
   ROLE-BASED ACCESS CONTROL (RBAC) CLASSES
   ========================================================================== */
body.role-employee .admin-only {
    display: none !important;
}

body.role-employee .hide-debt {
    filter: blur(8px);
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
}

/* Blur placeholder text for hidden debts */
body.role-employee .hide-debt::after {
    content: 'Gizli';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    font-weight: 800;
    color: white;
    background: rgba(0,0,0,0.6);
    padding: 2px 6px;
    border-radius: 4px;
    filter: none;
}

body.role-employee .cari-card-balance,
body.role-employee .cari-balance-box .amt,
body.role-employee #tahsilat-max-balance {
    position: relative;
    filter: blur(6px);
    pointer-events: none;
    user-select: none;
}

/* For Cari List Table and specific transaction amounts */
body.role-employee .cari-transactions-wrapper td:nth-child(4) {
    filter: blur(5px);
    pointer-events: none;
    user-select: none;
}

/* ==========================================================================
   PRINT MEDIA - THERMAL SLIP STYLING
   ========================================================================== */
@media print {
    @page { margin: 0; size: auto; }
    
    html, body, body.desktop-app {
        margin: 0 !important;
        padding: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        background: white !important; /* MEYDAN OKUMA: Siyah basmayı engeller */
        color: black !important;
    }

    /* Arka plandaki renkli parlamaları yazdırmada gizle */
    html::before, html::after, body::before, body::after {
        display: none !important;
    }

    /* Tüm ana yapıyı belgeden tamamen çıkar, sadece print-only kalsın */
    body > *:not(.print-only) {
        display: none !important;
    }
    
    .print-only {
        display: block !important;
        position: relative !important;
        left: 0 !important; /* Kesin sola yaslama */
        width: 72mm !important; /* 80mm kağıdın tam yazdırılabilir sol alanı */
        max-width: 72mm !important; 
        margin: 0 !important; /* Ortalamayı iptal edip tamamen sola kilitledik */
        padding: 0 !important;
        background: white !important;
        color: #000000 !important;
        font-family: 'Arial', sans-serif !important; 
        font-weight: 700 !important; 
        font-size: 14px !important; 
        line-height: 1.5 !important;
        height: auto !important;
        overflow: hidden !important;
        text-align: left !important;
    }
    
    /* İçerideki tüm detayları sola kilitliyoruz (özellikle başlıklar hariç) */
    .print-only * {
        color: #000000 !important;
        font-family: 'Arial', sans-serif !important;
    }
    
    .receipt-header {
        text-align: center;
        margin-bottom: 4px;
    }
    
    .receipt-header h2 {
        font-size: 15px;
        font-weight: 700;
        margin-bottom: 2px;
    }
    
    .receipt-meta p {
        margin: 2px 0;
        display: flex;
        justify-content: space-between;
    }
    
    .receipt-divider {
        text-align: center;
        margin: 4px 0;
    }
    
    .receipt-divider-dash {
        text-align: center;
        margin: 4px 0;
    }
    
    .receipt-items .item-row {
        display: flex;
        justify-content: space-between;
        margin: 4px 0;
    }
    
    .receipt-summary p {
        display: flex;
        justify-content: space-between;
        margin: 4px 0;
    }
    
    .receipt-summary .print-total {
        font-size: 14px;
        font-weight: 700;
    }
    
    .receipt-footer {
        text-align: center;
        margin-top: 15px;
        font-size: 10px;
    }
    
    #print-receipt.hide-prices .receipt-summary,
    #print-receipt.hide-prices .receipt-items .item-row span:last-child,
    #print-receipt.hide-prices .stmt-amount {
        display: none !important;
    }
    
    .statement-tr-row {
        border-bottom: 1px dashed #bbb;
        padding-bottom: 8px;
        margin-bottom: 8px;
    }
    .statement-tr-row:last-child {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }
}

/* ==========================================================================
   PREMIUM CARI TRANSACTION LEDGER VIEW & STYLING
   ========================================================================== */
.cari-trx-row {
    transition: var(--transition-smooth);
}
.cari-trx-row:hover {
    background: rgba(255, 255, 255, 0.03) !important;
    transform: translateX(4px);
}
.trx-item-tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}
.trx-item-tag {
    font-size: 11px;
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    color: var(--text-main);
    display: inline-flex;
    align-items: center;
    font-weight: 500;
}
.trx-waiter-badge {
    font-size: 10px;
    padding: 2.5px 7px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 6px;
    color: var(--primary-light);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    margin-top: 6px;
}
.trx-type-badge {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
}
.trx-type-borc {
    background: rgba(244, 63, 94, 0.08);
    color: var(--status-occupied);
    border: 1px solid rgba(244, 63, 94, 0.15);
}
.trx-type-tahsilat {
    background: rgba(16, 185, 129, 0.08);
    color: var(--status-empty);
    border: 1px solid rgba(16, 185, 129, 0.15);
}

/* ==========================================================================
   PREMIUM LOGIN SCREEN OVERLAY (AUTHENTICATION MODULE)
   ========================================================================== */
.login-screen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #030712;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    visibility: hidden;
}

.login-screen-overlay.show {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.login-card {
    background: rgba(13, 18, 30, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 32px;
    width: 550px;
    max-width: 95%;
    padding: 50px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 0 0 100px rgba(139, 92, 246, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 24px;
    animation: loginCardSlide 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes loginCardSlide {
    from { transform: translateY(30px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.login-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
    opacity: 0.2;
}

.login-orb.orb-1 {
    top: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    background: var(--primary);
}

.login-orb.orb-2 {
    bottom: -30px;
    left: -30px;
    width: 180px;
    height: 180px;
    background: #f43f5e;
}

.login-header {
    text-align: center;
}

.login-logo {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: var(--grad-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 16px auto;
    box-shadow: 0 8px 24px var(--primary-glow);
}

.login-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
}

.login-header h2 span {
    color: var(--primary-light);
}

.login-header p {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    font-weight: 500;
}

.login-error {
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.2);
    color: #f43f5e;
    padding: 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    animation: loginShake 0.4s ease;
}

@keyframes loginShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.input-wrapper i {
    position: absolute;
    left: 16px;
    color: var(--text-muted);
    font-size: 14px;
    transition: var(--transition-smooth);
}

.input-wrapper input {
    padding-left: 44px;
}

.input-wrapper input:focus + i {
    color: var(--primary-light);
}

.btn-login {
    width: 100%;
    height: 48px;
    font-size: 14px;
    font-weight: 700;
    margin-top: 8px;
}

.login-hint {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 14px;
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.6;
}

.login-hint p {
    margin: 2px 0;
}

.login-hint code {
    color: var(--primary-light);
    background: rgba(139, 92, 246, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-weight: 600;
}

.btn-db-admin-sidebar {
    background: transparent;
    border: 1px solid rgba(139, 92, 246, 0.25);
    background: rgba(139, 92, 246, 0.03);
    color: var(--primary-light);
    padding: 14px 18px;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    margin-top: auto;
    margin-bottom: 8px;
}

.btn-db-admin-sidebar:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-db-admin-sidebar i {
    font-size: 18px;
    width: 22px;
    transition: var(--transition-smooth);
}

.btn-logout-sidebar {
    background: transparent;
    border: 1px solid rgba(244, 63, 94, 0.2);
    background: rgba(244, 63, 94, 0.03);
    color: #f43f5e;
    padding: 14px 18px;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-logout-sidebar:hover {
    background: rgba(244, 63, 94, 0.08);
    border-color: #f43f5e;
    color: white;
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.25);
}

.btn-logout-sidebar i {
    font-size: 18px;
    width: 22px;
    transition: var(--transition-smooth);
}

.btn-drawer:hover {
    background: rgba(139, 92, 246, 0.15) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 4px 12px var(--primary-glow) !important;
}

/* --- LOGIN NUMPAD --- */
.login-numpad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.login-numpad button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 20px 0;
    color: white;
    font-size: 28px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
}

.login-numpad button:hover {
    background: rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
}

.login-numpad button:active {
    transform: translateY(1px);
    background: rgba(139, 92, 246, 0.5);
}

.login-numpad button.numpad-action {
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
}

/* ==========================================================================
   VIRTUAL KEYBOARD STYLES
   ========================================================================== */
.vk-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(13, 18, 30, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    padding: 15px 20px 25px;
    transform: translateY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.vk-container.hidden {
    transform: translateY(110%);
}

.vk-header {
    width: 100%;
    max-width: 900px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.vk-title {
    color: var(--primary-glow);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.vk-close-btn {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.vk-close-btn:active {
    transform: scale(0.95);
    background: rgba(239, 68, 68, 0.3);
}

.vk-keys {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 900px;
}

.vk-row {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.vk-key {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 22px;
    font-weight: 500;
    font-family: inherit;
    border-radius: 12px;
    min-width: 55px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    transition: all 0.1s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.vk-key:active {
    background: var(--primary);
    transform: scale(0.95);
    box-shadow: 0 0 15px var(--primary-glow);
}

.vk-key.wide {
    min-width: 85px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.04);
}

.vk-key.space {
    flex-grow: 1;
    max-width: 500px;
}

.vk-key.action {
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--primary);
    color: white;
}
  
.vk-preview-bar { width: 100%%; max-width: 900px; background: rgba(0,0,0,0.6); border: 1px solid var(--border-subtle); border-radius: 8px; padding: 15px 20px; margin-bottom: 15px; color: white; font-size: 28px; font-weight: bold; text-align: center; min-height: 60px; letter-spacing: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } 
