/* Restaurant Ordering Platform - Custom Styles */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
}

/* Navigation Styles */
.navbar-brand {
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--warning-color) !important;
}

/* Hero Section */
.hero-section {
    min-height: 500px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #0056b3 100%);
}

.hero-buttons .btn {
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.hero-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Card Styles */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
}
/* Feature Cards */
.feature-card {
    background: white;
    border-radius: 15px;
    border: 1px solid #e9ecef;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
/* Button Styles */
.btn {
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

/* Form Styles */
.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Price Display */
.price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Cart Badge */
#cart-count {
    font-size: 0.75rem;
    min-width: 20px;
    height: 20px;
    line-height: 20px;
    border-radius: 10px;
}

/* Rating Input Styles */
.rating-input {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
    margin-bottom: 10px;
}

.rating-input input[type="radio"] {
    display: none;
}

.rating-input .star-label {
    cursor: pointer;
    font-size: 1.5rem;
    color: #ddd;
    transition: color 0.2s ease;
}

.rating-input .star-label:hover,
.rating-input .star-label:hover ~ .star-label {
    color: #ffc107;
}

.rating-input input[type="radio"]:checked ~ .star-label {
    color: #ffc107;
}

.rating-input .star-label i {
    transition: transform 0.2s ease;
}

.rating-input .star-label:hover i {
    transform: scale(1.1);
}

/* Review Form Styles */
#reviewForm {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

#reviewForm .form-label {
    color: #495057;
    margin-bottom: 8px;
}

#reviewForm textarea {
    resize: vertical;
    min-height: 100px;
}

#submitReview {
    min-width: 180px;
}

#submitReview:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Review Display Improvements */
.review-item {
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.review-item:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

/* Rating Distribution */
.rating-distribution .progress {
    background-color: #f8f9fa;
}

.rating-distribution .progress-bar {
    transition: width 0.6s ease;
}

/* Review Filter Buttons */
.btn-group .btn-check:checked + .btn-outline-secondary {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

/* Review Actions */
.review-actions {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f8f9fa;
}

.review-actions .btn {
    transition: all 0.2s ease;
}

.review-actions .btn:hover {
    transform: translateY(-1px);
}

/* Review Text */
.review-text {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #007bff;
    margin: 10px 0;
}

/* User Avatar in Reviews */
.review-item .bg-primary {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
}

/* Animation for filtered reviews */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.review-item[style*="display: block"] {
    animation: fadeIn 0.3s ease-in;
}

/* Loading states */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Toast notifications */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* Form enhancements */
#reviewForm {
    transition: all 0.3s ease;
}

#reviewForm.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 3rem 0;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin-bottom: 1rem;
    }

    .feature-card {
        margin-bottom: 2rem;
    }

    .rating-input {
        justify-content: center;
    }

    .rating-input .star-label {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }

    #reviewForm {
        padding: 15px;
    }

    #submitReview {
        width: 100%;
        margin-top: 10px;
    }
}
