/* LocalMenu Component Styles */
.menu-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.menu-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.menu-item-title {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.menu-item-price {
    font-size: 1.1em;
    font-weight: bold;
    color: #e74c3c;
}

.menu-item-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
}

.menu-item-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    background: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.quantity-btn:hover {
    background: #2980b9;
}

.quantity-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

.quantity-display {
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.options-btn {
    background: #f39c12;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.options-btn:hover {
    background: #e67e22;
}

.options-btn i {
    font-size: 12px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: none;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.modal-title {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}

.close:hover,
.close:focus {
    color: #000;
}

.option-group {
    margin-bottom: 25px;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #f9f9f9;
}

.option-group-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
}

.option-group-required {
    color: #e74c3c;
    font-size: 0.9em;
    font-weight: normal;
}

.option-values {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.option-value:hover {
    background: #f0f0f0;
    border-color: #3498db;
}

.option-value.selected {
    background: #e3f2fd;
    border-color: #3498db;
}

.option-value-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.option-value-name {
    font-weight: 500;
    color: #333;
}

.option-value-price {
    color: #e74c3c;
    font-weight: bold;
}

.option-value input[type="radio"],
.option-value input[type="checkbox"] {
    margin: 0;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.total-price {
    font-size: 1.2em;
    font-weight: bold;
    color: #e74c3c;
}

.add-to-cart-btn {
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.add-to-cart-btn:hover {
    background: #229954;
}

.add-to-cart-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 15px;
    }
    
    .menu-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .menu-item-actions {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .quantity-controls {
        justify-content: center;
    }
}

/* Error States */
.error-message {
    color: #e74c3c;
    background: #fdf2f2;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 10px;
    margin: 10px 0;
}

.success-message {
    color: #155724;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    padding: 10px;
    margin: 10px 0;
} 