/* Custom styles for SmartServe Customer Interface */

:root {
    --primary-dark: #1a1a2e;
    --primary-gold: #c8a96a;
    --light-beige: #f7f3e9;
    --accent-color: #2d3047;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
}

/* General Styles */
body {
    font-family: 'Cormorant Garamond', serif;
    background-color: #fefefe;
    color: #333;
    min-height: 100vh;
}

/* Buttons */
.btn-gold {
    background-color: var(--primary-gold);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-gold:hover {
    background-color: #b89a5e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(200, 169, 106, 0.3);
}

.btn-outline-gold {
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
    background: transparent;
}

.btn-outline-gold:hover {
    background-color: var(--primary-gold);
    color: white;
}

/* Cards */
.category-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.category-card:hover .display-4 {
    transform: scale(1.1);
}

/* Order Items */
.order-item {
    transition: background-color 0.3s ease;
}

.order-item:hover {
    background-color: rgba(247, 243, 233, 0.3);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-controls button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #dee2e6;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quantity-controls button:hover {
    background-color: #f8f9fa;
    border-color: var(--primary-gold);
    color: var(--primary-gold);
}

/* Timer */
.timer {
    font-family: 'Courier New', monospace;
}

/* Status Icon */
.status-icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Form Controls */
.form-control:focus, .form-select:focus {
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 0.25rem rgba(200, 169, 106, 0.25);
}

/* Order Number Display */
.order-number {
    background: linear-gradient(135deg, var(--light-beige), #f0e6d0);
    padding: 18px;
    border-radius: 12px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-dark);
    border: 2px solid var(--primary-gold);
    box-shadow: 0 4px 12px rgba(200, 169, 106, 0.1);
    text-align: center;
}

/* Splash Screen */
.fade-out {
    opacity: 0;
    transition: opacity 1s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b89a5e;
}

/* ── Floating Continue Browsing Button ── */
.floating-continue-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, box-shadow 0.2s ease;
    pointer-events: none;
}

.floating-continue-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.floating-continue-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.22);
}

@media (max-width: 768px) {
    .floating-continue-btn {
        right: 12px;
        left: 12px;
        bottom: 16px;
        text-align: center;
        border-radius: 12px;
        padding: 14px 20px;
    }

    .floating-continue-btn.visible:hover {
        transform: translateY(0);
    }
}

/* ── UI Readability Improvements ── */
body {
    font-size: 16px;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    line-height: 1.3;
}

.card {
    border-radius: 12px;
}

.card-body {
    padding: 1.25rem;
}

.card-header {
    padding: 0.875rem 1.25rem;
    border-radius: 12px 12px 0 0 !important;
}

.table th {
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.875rem 0.75rem;
}

.table td {
    padding: 0.75rem;
    vertical-align: middle;
    font-size: 0.95rem;
}

.btn {
    font-weight: 600;
    border-radius: 8px;
    padding: 0.5rem 1.25rem;
}

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.1rem;
}

.badge {
    font-weight: 600;
    padding: 0.35em 0.7em;
    font-size: 0.8rem;
}

.form-control, .form-select {
    border-radius: 8px;
    padding: 0.625rem 0.875rem;
    font-size: 1rem;
}

.form-label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.375rem;
}

.nav-tabs .nav-link {
    font-weight: 600;
    padding: 0.625rem 1rem;
    font-size: 0.9rem;
}

.display-6 {
    font-weight: 700 !important;
}

.text-muted {
    font-size: 0.9rem;
}

.price-tag {
    font-family: 'Segoe UI', system-ui, sans-serif;
}

/* ── Menu item images — reliable display ── */
.menu-item-card .card-img-top,
.card-img-top {
    object-fit: cover;
    width: 100%;
    max-height: 220px;
    min-height: 140px;
    background-color: #f0f0f0;
}

/* ── Responsive adjustments ── */
@media (max-width: 768px) {
    .container-fluid {
        padding: 0 10px;
    }
    
    .logo-large {
        font-size: 36px;
    }
    
    .restaurant-large {
        font-size: 20px;
    }
    
    body {
        font-size: 15px;
    }
    
    .display-5 {
        font-size: 1.75rem !important;
    }
    
    .display-6 {
        font-size: 1.5rem !important;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .table th, .table td {
        font-size: 0.85rem;
        padding: 0.5rem;
    }
    
    .btn-lg {
        padding: 0.625rem 1.25rem;
        font-size: 1rem;
    }

    .nav-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .nav-tabs .nav-link {
        white-space: nowrap;
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
    
    .menu-item-card .card-img-top {
        max-height: 160px;
        min-height: 120px;
    }
    
    .row.g-4 {
        --bs-gutter-y: 0.75rem;
        --bs-gutter-x: 0.75rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .card-text {
        font-size: 0.85rem;
    }
}