/* Menu page styles */

.menu-notice {
    background: linear-gradient(135deg, #f8f4e8 0%, #fff9e6 100%);
    border-left: 4px solid #d4a574;
    padding: 1.5rem 2rem;
    margin: 2rem 0 3rem;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.menu-notice h3 {
    color: #8b6914;
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
}

.menu-notice p {
    margin: 0;
    padding: 0;
    color: #5a4a2a;
    line-height: 1.6;
}

/* Date selector */
.date-selector {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.date-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.date-tab {
    padding: 0.5rem 1rem;
    border: 2px solid #d4a574;
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-tab:hover {
    background: #fff9e6;
}

.date-tab.active {
    background: #d4a574;
    color: #fff;
}

.date-tab .remove-date {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0,0,0,0.2);
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.date-tab .remove-date:hover {
    background: rgba(0,0,0,0.4);
}

.add-date-btn {
    padding: 0.5rem 1rem;
    border: 2px dashed #ccc;
    border-radius: 20px;
    background: transparent;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
    transition: all 0.2s;
}

.add-date-btn:hover {
    border-color: #d4a574;
    color: #d4a574;
}

.date-input-wrapper {
    display: none;
    margin-top: 1rem;
}

.date-input-wrapper.show {
    display: block;
}

.date-input-wrapper input {
    padding: 0.75rem 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    width: 100%;
    max-width: 250px;
}

/* Menu table */
.menu-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    border-radius: 8px;
    overflow: hidden;
}

.menu-table th,
.menu-table td {
    padding: 0.875rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.menu-table th {
    background: #2c2c2c;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

.menu-table tbody tr:hover {
    background: #faf8f4;
}

.menu-table .category-row {
    background: #f5f0e6;
    font-weight: 700;
    color: #5a4a2a;
}

.menu-table .category-row td {
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
    border-bottom: 2px solid #d4a574;
    text-align: left;
}

.menu-table tbody tr:last-child td {
    border-bottom: none;
}

.price {
    font-weight: 600;
    color: #2c2c2c;
    white-space: nowrap;
}

/* Quantity controls */
.qty-cell {
    white-space: nowrap;
    text-align: center !important;
}

.qty-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: 2px solid #d4a574;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    color: #d4a574;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: #d4a574;
    color: #fff;
}

.qty-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.qty-value {
    min-width: 24px;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
}

.qty-value.has-items {
    color: #d4a574;
}

/* Order summary */
.order-summary {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    display: none;
}

.order-summary.show {
    display: block;
}

.order-summary h3 {
    margin: 0 0 1rem;
    color: #2c2c2c;
}

.order-day {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.order-day:last-of-type {
    border-bottom: none;
}

.order-day-title {
    font-weight: 600;
    color: #d4a574;
    margin-bottom: 0.5rem;
}

.order-item {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    color: #555;
}

.order-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 700;
    padding-top: 1rem;
    border-top: 2px solid #d4a574;
    margin-top: 1rem;
}

.submit-order {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 2rem;
    margin-top: 1.5rem;
    background: #0088cc;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.submit-order:hover {
    background: #006699;
}

.submit-order svg {
    width: 24px;
    height: 24px;
}

/* Responsive */
@media (max-width: 600px) {
    .menu-table th,
    .menu-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .menu-notice {
        padding: 1rem 1.25rem;
    }
    
    .qty-btn {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
    
    .date-selector,
    .order-summary {
        padding: 1rem;
    }
}
