/**
 * Restaurant Management System - Crisp White Theme (High Legibility & Contrast)
 * Predominantly Pure White, Clean Slate Borders, and Strong Readable Typography
 */

:root {
    /* Pure White & Clean Crisp Neutrals */
    --bg-main:    #F8FAFC; /* Crisp clean light background */
    --bg-card:    #FFFFFF; /* Pure white */
    --bg-surface: #FFFFFF;
    --bg-cream:   #F1F5F9;
    --bg-input:   #FFFFFF;

    /* Clean Crisp Borders */
    --border-subtle: #E2E8F0;
    --border-cream:  #CBD5E1;
    --border-gold:   #D97706;
    --border-fire:   #DC2626;

    /* High Legibility Dark Typography (Crisp against white backgrounds) */
    --text-primary:   #0F172A; /* Deep dark slate - very sharp and legible */
    --text-secondary: #334155; /* Medium dark slate - clear contrast */
    --text-muted:     #475569; /* Solid slate, NOT washed out */
    --text-gold:      #B45309; /* Rich dark amber gold */
    --text-fire:      #B91C1C; /* Rich deep fire red */

    /* Gold / Amber / Cream Tokens (30% less tint for soft elegant airy feel) */
    --gold-400: #D97706;
    --gold-500: #B45309;
    --gold-600: #92400E;
    --gold-light: #FEF7D8; /* 30% less tint than #FEF3C7 */
    --cream-light: #FEF7D8;
    --gold-glow: rgba(217, 119, 6, 0.10);

    /* Fire Tokens */
    --fire-500: #DC2626;
    --fire-600: #B91C1C;
    --fire-light: #FEE2E2;
    --fire-glow: rgba(220, 38, 38, 0.15);
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

/* Card Styling - Crisp White with subtle border */
.resto-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    transition: all 0.15s ease-in-out;
}
.resto-card-hover:hover {
    border-color: #CBD5E1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

/* Buttons */
.btn-gold {
    background: linear-gradient(135deg, #D97706, #B45309);
    color: #FFFFFF;
    font-weight: 700;
    border: none;
    box-shadow: 0 1px 4px rgba(180, 83, 9, 0.25);
    transition: all 0.15s ease;
}
.btn-gold:hover {
    background: linear-gradient(135deg, #F59E0B, #92400E);
    box-shadow: 0 3px 10px rgba(180, 83, 9, 0.35);
    transform: translateY(-1px);
    color: #FFFFFF;
}

.btn-fire {
    background: linear-gradient(135deg, #DC2626, #B91C1C);
    color: #FFFFFF;
    font-weight: 700;
    border: none;
    box-shadow: 0 1px 4px rgba(220, 38, 38, 0.25);
    transition: all 0.15s ease;
}
.btn-fire:hover {
    background: linear-gradient(135deg, #EF4444, #991B1B);
    box-shadow: 0 3px 10px rgba(220, 38, 38, 0.35);
    transform: translateY(-1px);
    color: #FFFFFF;
}

.btn-outline-gold {
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    color: #92400E;
    font-weight: 700;
    transition: all 0.15s ease;
}
.btn-outline-gold:hover {
    background: #FEF7D8;
    border-color: #B45309;
    color: #78350F;
}

/* Badges */
.badge-gold {
    background: #FEF7D8;
    border: 1px solid #FCD34D;
    color: #92400E;
    font-weight: 600;
}
.badge-fire {
    background: #FEE2E2;
    border: 1px solid #FCA5A5;
    color: #991B1B;
    font-weight: 600;
}

/* Form inputs */
.resto-input {
    background-color: #FFFFFF;
    border: 1px solid #CBD5E1;
    color: #0F172A;
    font-weight: 500;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.resto-input:focus {
    border-color: #B45309;
    outline: none;
    box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.15);
    background-color: #FFFFFF;
}
.resto-input::placeholder {
    color: #64748B;
}

/* Custom Table Styles */
.resto-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
.resto-table th {
    background: #F1F5F9;
    color: #0F172A;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 1rem;
    font-weight: 800;
    border-bottom: 1px solid #CBD5E1;
}
.resto-table td {
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #E2E8F0;
    color: #0F172A;
    font-size: 0.875rem;
    background: #FFFFFF;
}
.resto-table tr:hover td {
    background: #F8FAFC;
}

/* Accent Line */
.gold-fire-gradient {
    background: linear-gradient(90deg, #DC2626, #D97706, #F59E0B);
}

/* Vertical Text for POS Docks */
.writing-mode-vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
}

/* POS Item Box - 30% Height Increase (from 52px to 68px) & High Contrast Readable Text */
.pos-compact-box {
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    padding: 8px 9px;
    height: 68px; /* Increased height by 30% as instructed */
    min-height: 68px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.12s ease-in-out;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.pos-compact-box:hover {
    border-color: #B45309;
    background-color: #FFFDF9;
    box-shadow: 0 3px 8px rgba(180, 83, 9, 0.18);
    transform: translateY(-1px);
}
.pos-compact-box:active {
    transform: scale(0.97);
    background-color: #FEF7D8;
}
.pos-compact-box .item-title {
    font-size: 0.8125rem; /* 13px */
    font-weight: 700;
    color: #0F172A; /* Deep dark slate - high contrast against white */
    line-height: 1.25;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.pos-compact-box .item-price {
    font-size: 0.8125rem; /* 13px */
    font-weight: 800;
    color: #B45309; /* Strong rich amber gold - sharp and legible */
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    text-align: right;
    margin-top: auto;
}
