/* CHIMEole POS - Master Custom CSS */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #0f766e;
    --primary-hover: #115e59;
    --primary-light: #ccfbf1;
    --secondary-color: #1e293b;
    --accent-color: #f59e0b;
    --bg-main: #f8fafc;
    --card-bg: #ffffff;
    --text-primary: #0f172a;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --sidebar-width: 260px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    overflow-x: hidden;
}

/* Navbar & Header */
.navbar-brand-text {
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--primary-color);
}

.brand-badge {
    background: linear-gradient(135deg, #0f766e 0%, #0369a1 100%);
    color: #fff;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
}

/* Sidebar Navigation */
.app-sidebar {
    width: var(--sidebar-width);
    background: #0f172a;
    color: #94a3b8;
    height: 100vh;
    max-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.app-sidebar::-webkit-scrollbar {
    width: 5px;
}

.app-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.app-sidebar .nav-link {
    color: #94a3b8;
    padding: 8px 14px;
    font-weight: 500;
    border-radius: 6px;
    margin: 2px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.app-sidebar .nav-link:hover,
.app-sidebar .nav-link.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.app-sidebar .nav-link.active {
    background: var(--primary-color);
    color: #ffffff;
}

.main-content {
    margin-left: var(--sidebar-width);
    padding: 30px;
    min-height: 100vh;
}

@media (max-width: 991px) {
    .app-sidebar {
        margin-left: calc(-1 * var(--sidebar-width));
    }
    .main-content {
        margin-left: 0;
        padding: 15px;
    }
    .app-sidebar.show {
        margin-left: 0;
    }
}

/* Stat Cards */
.stat-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 22px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.icon-teal { background: #ccfbf1; color: #0f766e; }
.icon-blue { background: #e0f2fe; color: #0284c7; }
.icon-amber { background: #fef3c7; color: #d97706; }
.icon-rose { background: #ffe4e6; color: #e11d48; }

/* POS Interface Custom Layout */
.pos-container {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 20px;
    height: calc(100vh - 80px);
}

@media (max-width: 1199px) {
    .pos-container {
        grid-template-columns: 1fr;
        height: auto;
    }
}

.pos-keypad-btn {
    font-weight: 700;
    font-size: 1.1rem;
    padding: 14px 10px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #1e293b;
    transition: all 0.15s ease;
}

.pos-keypad-btn:hover, .pos-keypad-btn:focus {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.preset-qty-btn {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-weight: 600;
    padding: 10px;
    transition: all 0.15s ease;
}

.preset-qty-btn:hover {
    background: #0f766e;
    color: #fff;
}

.cart-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cart-items-list {
    flex: 1;
    overflow-y: auto;
    max-height: 320px;
}

/* Receipt Thermal CSS Rules */
.receipt-paper {
    width: 300px;
    margin: 0 auto;
    background: #ffffff;
    padding: 15px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 13px;
    font-weight: 700 !important;
    color: #000000 !important;
    border: 2px solid #000000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.receipt-paper * {
    font-weight: 700 !important;
    color: #000000 !important;
}

.receipt-header {
    text-align: center;
    border-bottom: 2px dashed #000000;
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.receipt-header h4 {
    font-weight: 900 !important;
    font-size: 18px;
    margin: 0;
    text-transform: uppercase;
}

.receipt-table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0;
}

.receipt-table th, .receipt-table td {
    text-align: left;
    padding: 4px 0;
    font-size: 12px;
    font-weight: 700 !important;
}

.receipt-table td.num, .receipt-table th.num {
    text-align: right;
}

.receipt-total-row {
    border-top: 2px dashed #000000;
    border-bottom: 2px dashed #000000;
    font-weight: 900 !important;
    font-size: 14px;
    padding: 6px 0;
}

.receipt-footer {
    text-align: center;
    margin-top: 12px;
    font-size: 11px;
    font-weight: 700 !important;
}

@media print {
    body * {
        visibility: hidden;
    }
    .receipt-paper, .receipt-paper * {
        visibility: visible;
        font-weight: 900 !important;
        color: #000000 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .receipt-paper {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        border: none;
        box-shadow: none;
        padding: 0;
    }
    .no-print {
        display: none !important;
    }
}
