/* ===== ORDER MENU PAGE STYLES ===== */

/* Remove outer container styling for order page */
main.page-shell {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Dark green styling for pickup slot dropdown */
#pickup-slot {
    background: #004D25;
    color: #FFFFFF;
    border: 2px solid #006B35;
    border-radius: 8px;
    padding: 12px;
    font-size: 16px;
    width: 100%;
    max-width: 300px;
}

#pickup-slot option {
    background: #004D25;
    color: #FFFFFF;
}

/* Toggle Switch Styling */
.switch-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #444;
    transition: 0.3s;
    border-radius: 26px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #1A5D32;
}

input:checked + .slider:before {
    transform: translateX(24px);
}

/* Order Dashboard Layout */
.order-dashboard-container {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 340px;
    gap: 16px;
    padding: 24px 0;
    max-width: 1800px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.order-sidebar-left,
.order-sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.order-main {
    min-width: 0;
}

/* Sidebar Cards */
.sidebar-card {
    background: var(--bg-surface-light, #1A1A1A);
    border: 2px solid var(--border-color, #333333);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    min-width: 0;
}

.sidebar-card:hover {
    border-color: var(--accent-green, #0E6B3B);
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.sidebar-card h3 {
    margin: 0 0 1rem 0;
    color: var(--accent-green, #0E6B3B);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-card h3 i {
    font-size: 1rem;
}

/* Specials */
.special-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color, #333333);
}

.special-item:last-child {
    border-bottom: none;
}

.special-badge {
    display: inline-block;
    background: linear-gradient(135deg, #0E6B3B 0%, #117F47 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 0.5rem;
}

.special-desc {
    color: var(--text-muted, #B0B0B0);
    font-size: 0.85rem;
    margin: 0.25rem 0;
}

.special-price {
    color: var(--accent-green, #0E6B3B);
    font-weight: 700;
    font-size: 1.1rem;
}

/* Category Navigation */
.category-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
}

.category-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary, #FFFFFF);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: var(--bg-surface, #111111);
    border: 1px solid transparent;
}

.category-link:hover,
.category-link:focus-visible {
    background: rgba(14, 107, 59, 0.2);
    border-color: var(--accent-green, #0E6B3B);
    text-decoration: none;
    color: var(--text-primary, #FFFFFF);
}

/* Menu Item Grid */
.menu-item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Order Items */
.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color, #333333);
    gap: 0.5rem;
}

.order-item:last-child {
    border-bottom: none;
}

.order-item-name {
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
}

.order-item-price {
    white-space: nowrap;
    color: var(--accent-green, #0E6B3B);
    font-weight: 700;
}

/* Responsive */
@media (max-width: 1200px) {
    .order-dashboard-container {
        grid-template-columns: 240px minmax(0, 1fr);
    }

    .order-sidebar-right {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .order-dashboard-container {
        grid-template-columns: 1fr;
    }

    .order-sidebar-left,
    .order-sidebar-right {
        display: contents;
    }

    .menu-item-grid {
        grid-template-columns: 1fr;
    }

    .category-nav {
        flex-direction: row;
        flex-wrap: wrap;
        max-height: none;
        overflow-x: auto;
    }

    .category-link {
        white-space: nowrap;
    }
}
