/* Orders Page Styles - Extracted for better performance */

/* Base Layout */
.order-page-container {
    background: var(--catering-bg);
    min-height: 100vh;
}

.order-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.order-card .card-header {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--brand-gold);
    font-family: 'Jost', sans-serif;
    font-weight: 600;
}

.order-card .card-body {
    padding: 2rem;
    color: #ffffff;
}

.order-card h6 {
    color: #ffffff;
    font-family: 'Jost', sans-serif;
}

/* Typography */
.order-card .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.order-card .text-primary {
    color: var(--brand-gold) !important;
}

small.text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
    font-family: 'Jost', sans-serif;
}

/* Forms */
.order-card .form-label {
    color: #ffffff;
    font-family: 'Jost', sans-serif;
    font-weight: 500;
}

.order-card .form-control,
.order-card .form-select {
    background: rgba(24, 49, 46, 0.6);
    border: 1px solid rgba(201, 163, 94, 0.4);
    color: #ffffff;
}

.order-card .form-control:focus,
.order-card .form-select:focus {
    background: rgba(24, 49, 46, 0.8);
    border-color: var(--brand-gold);
    box-shadow: 0 0 0 0.2rem rgba(201, 163, 94, 0.25);
    color: #ffffff;
}

.order-card .form-select option {
    background: #18312e;
    color: #ffffff;
}

.order-card .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-check-input {
    background-color: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.form-check-input:checked {
    background-color: var(--brand-gold);
    border-color: var(--brand-gold);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(201, 163, 94, 0.25);
}

.form-check-label {
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Jost', sans-serif;
}

.invalid-feedback {
    color: #ff6b6b;
}

/* Buttons */
.order-card .btn-primary {
    background: var(--brand-gold);
    border: none;
    font-weight: 600;
    font-family: 'Jost', sans-serif;
    transition: all 0.3s;
}

.order-card .btn-primary:hover {
    background: #b89350;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(201, 163, 94, 0.4);
    color: #18312e;
}

.order-card .btn-outline-primary {
    border-color: var(--brand-gold);
    color: var(--brand-gold);
}

.order-card .btn-outline-primary:hover {
    background: var(--brand-gold);
    color: #18312e;
}

.order-card .btn-outline-danger {
    border-color: #dc3545;
    color: #dc3545;
}

.order-card .btn-outline-danger:hover {
    background: #dc3545;
    color: #ffffff;
}

.btn-lg {
    padding: 14px 36px;
    font-size: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-sm {
    font-family: 'Jost', sans-serif;
}

/* Badges & Alerts */
.badge {
    font-family: 'Jost', sans-serif;
    font-weight: 500;
}

.badge.bg-success {
    background-color: #28a745 !important;
}

.badge.bg-danger {
    background-color: #dc3545 !important;
}

.alert {
    background: rgba(220, 53, 69, 0.2);
    color: #ffffff;
    border: none;
    border-left: 4px solid #dc3545;
    border-radius: 8px;
    font-family: 'Jost', sans-serif;
}

.alert-success {
    background: rgba(40, 167, 69, 0.2);
    border-left-color: #28a745;
}

.alert-info {
    background: rgba(23, 162, 184, 0.2);
    border-left-color: #17a2b8;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.2);
    color: #ffffff;
    border: none;
    border-left: 4px solid #ffc107;
    border-radius: 8px;
    font-family: 'Jost', sans-serif;
}

/* Borders & Backgrounds */
.border-primary {
    border-color: rgba(201, 163, 94, 0.3) !important;
}

.bg-primary {
    background-color: var(--brand-gold) !important;
}

.bg-primary.text-white {
    color: #fff !important;
}

.bg-light {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
}

.bg-secondary {
    background-color: rgba(108, 117, 125, 0.3) !important;
}

.sticky-top {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

hr {
    border-color: rgba(255, 255, 255, 0.2);
}

.border-bottom {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Input Groups */
.input-group .form-control {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.input-group .btn-primary {
    background: var(--brand-gold);
    border-color: var(--brand-gold);
    color: #fff;
}

.input-group .btn-primary:hover {
    background: #b89350;
    border-color: #b89350;
}

/* Spinners */
.spinner-border-sm {
    color: var(--brand-gold);
}

/* Images */
.img-fluid.rounded {
    border-radius: 8px !important;
}

/* Coupon Section */
#coupon-section h5 {
    color: var(--brand-gold);
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
}

/* Order Type Tabs */
.order-type-tabs {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-tabs.order-type-nav {
    border-bottom: 2px solid rgba(201, 163, 94, 0.3);
    gap: 0.375rem;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.nav-tabs.order-type-nav .nav-link {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 5px;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-tabs.order-type-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(201, 163, 94, 0.4);
    color: var(--brand-gold);
}

.nav-tabs.order-type-nav .nav-link.active {
    background: var(--brand-gold);
    border-color: var(--brand-gold);
    color: #18312e;
}

/* Category Tabs */
.menu-category-tabs {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-tabs.menu-tabs {
    border-bottom: 2px solid rgba(201, 163, 94, 0.3);
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0;
}

.nav-tabs.menu-tabs .nav-link {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 5px 5px 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    margin-bottom: -2px;
    white-space: nowrap;
}

.nav-tabs.menu-tabs .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(201, 163, 94, 0.4);
    color: var(--brand-gold);
}

.nav-tabs.menu-tabs .nav-link.active {
    background: var(--brand-gold);
    border-color: var(--brand-gold);
    color: #18312e;
    font-weight: 600;
}

.nav-tabs.menu-tabs .nav-link i {
    margin-right: 0.375rem;
    font-size: 0.875rem;
}

/* Menu Items Grid */
.tab-content {
    padding: 1.25rem 0;
}

.menu-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

/* Menu Item Card */
.menu-item-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.menu-item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border-color: rgba(201, 163, 94, 0.5);
}

.menu-item-image-wrapper {
    position: relative;
    width: 100%;
    height: 160px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.menu-item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.menu-item-card:hover .menu-item-image {
    transform: scale(1.08);
}

.menu-item-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(24, 49, 46, 0.9), rgba(24, 49, 46, 0.7));
}

.menu-item-image-placeholder i {
    font-size: 2.5rem;
    color: var(--brand-gold);
    opacity: 0.5;
}

.menu-item-card-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.menu-item-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.375rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.menu-item-description {
    font-family: 'Jost', sans-serif;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    margin-bottom: 0.625rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.menu-item-price-tag {
    font-family: 'Jost', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--brand-gold);
    margin-bottom: 0.75rem;
    letter-spacing: 0.3px;
}

/* Add-ons */
.menu-item-addons {
    background: rgba(201, 163, 94, 0.08);
    border: 1px solid rgba(201, 163, 94, 0.2);
    border-radius: 5px;
    padding: 0.625rem;
    margin-bottom: 0.75rem;
    max-height: 120px;
    overflow-y: auto;
}

.menu-item-addons::-webkit-scrollbar {
    width: 4px;
}

.menu-item-addons::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.menu-item-addons::-webkit-scrollbar-thumb {
    background: var(--brand-gold);
    border-radius: 2px;
}

.menu-item-addons-title {
    font-family: 'Jost', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--brand-gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.menu-item-addons-title i {
    margin-right: 0.375rem;
    font-size: 0.75rem;
}

.addon-item {
    display: flex;
    align-items: center;
    padding: 0.3rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    margin-bottom: 0.3rem;
    transition: background 0.2s ease;
}

.addon-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.addon-item:last-child {
    margin-bottom: 0;
}

.addon-item input[type="checkbox"] {
    margin-right: 0.375rem;
    cursor: pointer;
    width: 15px;
    height: 15px;
}

.addon-item label {
    margin-bottom: 0;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    flex: 1;
    line-height: 1.3;
}

.addon-price {
    color: var(--brand-gold);
    font-weight: 500;
    font-size: 0.8125rem;
    white-space: nowrap;
    margin-left: 0.375rem;
}

/* Quantity Controls */
.menu-item-quantity-section {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.75rem;
    margin-top: auto;
}

.quantity-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quantity-label {
    font-family: 'Jost', sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0;
    white-space: nowrap;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex: 1;
}

.quantity-btn {
    background: var(--brand-gold);
    border: none;
    color: #18312e;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0;
}

.quantity-btn:hover {
    background: #b89350;
    transform: scale(1.05);
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-btn:disabled {
    background: rgba(201, 163, 94, 0.3);
    cursor: not-allowed;
    transform: none;
}

.quantity-input {
    flex: 1;
    background: rgba(24, 49, 46, 0.6) !important;
    border: 1px solid rgba(201, 163, 94, 0.4) !important;
    color: #ffffff !important;
    font-family: 'Jost', sans-serif;
    font-weight: 600;
    text-align: center;
    font-size: 0.9375rem;
    padding: 0.4rem 0.5rem;
    border-radius: 5px;
    height: 36px;
    min-width: 50px;
}

.quantity-input:focus {
    background: rgba(24, 49, 46, 0.8) !important;
    border-color: var(--brand-gold) !important;
    box-shadow: 0 0 0 0.15rem rgba(201, 163, 94, 0.25) !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .menu-items-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 992px) {
    .menu-items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .menu-item-image-wrapper {
        height: 140px;
    }
    
    .menu-item-card-body {
        padding: 0.875rem;
    }
    
    .menu-item-title {
        font-size: 1.05rem;
    }
}

@media (max-width: 768px) {
    .menu-category-tabs {
        padding: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .nav-tabs.menu-tabs {
        border-bottom: none;
        gap: 0.5rem;
    }
    
    .nav-tabs.menu-tabs .nav-link {
        border-radius: 5px;
        margin-bottom: 0;
        padding: 0.5rem 0.875rem;
        font-size: 0.8125rem;
        flex: 1;
        text-align: center;
    }
    
    .nav-tabs.menu-tabs .nav-link i {
        display: none;
    }
    
    .menu-items-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .menu-item-image-wrapper {
        height: 180px;
    }
    
    .tab-content {
        padding: 1rem 0;
    }
}

@media (max-width: 576px) {
    .menu-item-card-body {
        padding: 0.75rem;
    }
    
    .menu-item-title {
        font-size: 1rem;
    }
    
    .menu-item-description {
        font-size: 0.75rem;
        -webkit-line-clamp: 3;
    }
    
    .menu-item-price-tag {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .menu-item-addons {
        padding: 0.5rem;
        max-height: 100px;
    }
    
    .addon-item {
        padding: 0.25rem 0.375rem;
    }
    
    .addon-item label,
    .addon-price {
        font-size: 0.75rem;
    }
    
    .quantity-input {
        font-size: 0.875rem;
        height: 32px;
        padding: 0.3rem 0.4rem;
        min-width: 45px;
    }
    
    .quantity-label {
        font-size: 0.75rem;
    }
    
    .quantity-btn {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
}
