/* assets/css/styles.css */

/* Restaurant Theme Variables */
:root {
    --restaurant-primary: #d32f2f; /* Deep Red */
    --restaurant-secondary: #fff3e0; /* Light Cream */
    --restaurant-accent: #ffca28; /* Amber */
    --restaurant-dark: #b71c1c; /* Dark Red */
    --restaurant-green: #25D366; /* WhatsApp Green */
    --restaurant-green-dark: #128C7E;
    --restaurant-font: 'Quicksand', 'Segoe UI', Arial, sans-serif;
    --bs-border-radius: 14px;
}

/* Replace Temu variables with Fresh Breeze variables throughout */
body {
    font-family: var(--restaurant-font);
    background-color: var(--restaurant-secondary);
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1240px;
    padding: 0 15px;
}

/* Header Styles */
.navbar {
    background-color: var(--restaurant-secondary);
    box-shadow: 0 2px 6px rgba(211, 47, 47, 0.07);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--restaurant-primary);
}

.nav-link {
    color: #333;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--restaurant-primary);
}

/* Search Bar */
#search {
    border: 2px solid var(--restaurant-primary);
    border-radius: 25px;
    padding: 8px 20px;
    font-size: 1rem;
}

#search:focus {
    border-color: var(--restaurant-accent);
    box-shadow: 0 0 5px rgba(255, 202, 40, 0.2);
}

/* Login Page Specific Styles */
.login-card {
    background: var(--restaurant-secondary);
    border-radius: var(--bs-border-radius);
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
button:disabled {
    opacity: 0.8;
    cursor: not-allowed;
}
.login-card h2 {
    font-size: 1.8rem;
    font-weight: 700;
}

.alert-dismissible {
    border-radius: 8px;
    padding: 1rem;
    font-size: 0.95rem;
}

.form-label {
    font-weight: 500;
    color: #333;
}

.input-group .btn-outline-secondary {
    border-radius: 0 10px 10px 0;
    border-left: none;
}

.toggle-password i.bi-eye::before {
    content: "\f06e"; /* Eye icon */
}

.toggle-password i.bi-eye-slash::before {
    content: "\f070"; /* Eye-slash icon */
}

.invalid-feedback {
    font-size: 0.85rem;
    color: var(--fresh-danger);
}
/* Optional: Registration-specific styles */
.register-card {
    background: linear-gradient(135deg, var(--restaurant-secondary), #f9f9fb);
    border-radius: var(--bs-border-radius);
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
/* Responsive Adjustments for Login */
@media (max-width: 576px) {
    .login-card {
        padding: 1.5rem;
    }

    .login-card h2 {
        font-size: 1.5rem;
    }

    .btn-primary {
        font-size: 1rem;
        padding: 8px;
    }
}
/* Hero Section (Homepage) */
.hero {
    background: linear-gradient(rgba(211, 47, 47, 0.85), rgba(58, 134, 255, 0.7)), url('../assets/images/10.jpeg') no-repeat center center;
    background-size: cover;
    color: var(--restaurant-secondary);
    padding: 100px 0;
    text-align: center;
    border-radius: 0 0 20px 20px;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.3rem;
    font-weight: 400;
}

.hero .btn-primary {
    background-color: var(--restaurant-primary);
    border-color: var(--restaurant-primary);
    padding: 12px 30px;
    font-size: 1.2rem;
    border-radius: 25px;
    transition: background-color 0.2s;
}

.hero .btn-primary:hover {
    background-color: var(--restaurant-accent);
}
.banner{
    background: var(--restaurant-primary);
}

/* Product Cards */
.card {
    border: none;
    border-radius: var(--bs-border-radius);
    overflow: hidden;
    background-color: var(--restaurant-secondary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.card-img-top {
    height: 220px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.card-text {
    font-size: 0.95rem;
    color: #666;
}

.card .btn-primary {
    background-color: var(--restaurant-primary);
    border-color: var(--restaurant-primary);
    border-radius: 20px;
    padding: 8px 20px;
}

.card .btn-primary:hover {
    background-color: var(--restaurant-accent);
    border-color: var(--restaurant-accent);
}

/* Discount Badge */
.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--restaurant-primary);
    color: var(--restaurant-secondary);
    padding: 5px 10px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 15px;
}

/* Category Cards */
.category-card {
    border-radius: var(--bs-border-radius);
    overflow: hidden;
    background-color: var(--restaurant-secondary);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.category-card img {
    height: 160px;
    object-fit: cover;
    transition: transform 0.3s;
}

.category-card:hover img {
    transform: scale(1.05);
}

.category-card .btn-outline-primary {
    border-color: var(--restaurant-primary);
    color: var(--restaurant-primary);
    border-radius: 20px;
}

.category-card .btn-outline-primary:hover {
    background-color: var(--restaurant-primary);
    color: var(--restaurant-secondary);
}

/* Search Autocomplete */
.ui-autocomplete {
    max-height: 250px;
    overflow-y: auto;
    border: 2px solid var(--restaurant-primary);
    background: var(--restaurant-secondary);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 1050;
}

.ui-autocomplete .ui-menu-item {
    padding: 10px 15px;
    font-size: 0.95rem;
    color: #333;
}

.ui-autocomplete .ui-menu-item:hover {
    background-color: var(--restaurant-primary);
    color: var(--restaurant-secondary);
}

/* Star Rating for Reviews */
.star-rating {
    display: inline-flex;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.star-rating .star {
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
    margin-right: 5px;
}

.star-rating .star.filled,
.star-rating .star:hover,
.star-rating .star:hover ~ .star {
    color: var(--restaurant-accent);
}

/* Admin Dashboard Metrics */
.metric-card {
    background: var(--restaurant-secondary);
    padding: 25px;
    border-radius: var(--bs-border-radius);
    text-align: center;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.metric-card:hover {
    transform: scale(1.05);
}

.metric-card h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--restaurant-primary);
    margin-bottom: 0.5rem;
}

.metric-card p {
    font-size: 1rem;
    color: #666;
}

/* Order Status Badges */
.badge {
    font-size: 0.9rem;
    padding: 0.6em 1.2em;
    border-radius: 15px;
    font-weight: 500;
}

/* Progress Bar for Order Tracking */
.progress {
    height: 1.8rem;
    border-radius: 10px;
    background-color: #e9ecef;
}

.progress-bar {
    background-color: var(--restaurant-primary);
    transition: width 0.4s ease-in-out;
}

/* Promotional Banner */
.promo-banner {
    background: linear-gradient(135deg, var(--restaurant-primary), var(--restaurant-accent));
    color: var(--restaurant-secondary);
    padding: 2.5rem;
    text-align: center;
    border-radius: var(--bs-border-radius);
    margin: 3rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.promo-banner h3 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.promo-banner .btn {
    background-color: var(--restaurant-secondary);
    color: var(--restaurant-primary);
    border-radius: 25px;
    padding: 10px 25px;
}

/* Buttons */
.btn-primary {
    background-color: var(--restaurant-primary);
    border-color: var(--restaurant-primary);
    border-radius: 25px;
    font-weight: 600;
    padding: 10px 20px;
    transition: background-color 0.2s, transform 0.2s;
}

.btn-primary:hover {
    background-color: var(--restaurant-accent);
    border-color: var(--restaurant-accent);
    transform: translateY(-2px);
}

.btn-secondary {
    border-radius: 25px;
    padding: 10px 20px;
}

/* Forms */
.form-control {
    border-radius: 10px;
    border: 1px solid #ddd;
    padding: 10px;
}

.form-control:focus {
    border-color: var(--restaurant-primary);
    box-shadow: 0 0 5px rgba(211, 47, 47, 0.2);
}

/* Carousel (Homepage) */
.carousel-inner {
    border-radius: var(--bs-border-radius);
    overflow: hidden;
}

.carousel-item img {
    height: 400px;
    object-fit: cover;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--restaurant-primary);
    border-radius: 50%;
    padding: 20px;
}

    .carousel-caption h3 {
        font-size: 1.2rem;
    }

    .carousel-caption p {
        font-size: 0.9rem;
    }

    .carousel img {
        height: 200px;
    }

    .carousel-caption {
        bottom: 1rem;
        padding: 0.5rem;
    }

    .carousel-caption .btn {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }

.sticky-cart {
    position: sticky;
    bottom: 20px;
    background: var(--restaurant-primary);
    color: var(--restaurant-secondary);
    padding: 10px 20px;
    border-radius: 25px;
    text-align: center;
}
/* Checkout Page Styles */
.checkout-card {
    background: var(--restaurant-secondary);
    border-radius: var(--bs-border-radius);
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.list-group-item {
    border: none;
    padding: 0.75rem 0;
}

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

.form-check-label {
    font-weight: 500;
    color: #333;
}

.form-check .invalid-feedback {
    margin-left: 1.5rem;
}

/* Order Confirmation Styles */
.order-confirmation-card {
    background: var(--restaurant-secondary);
    border-radius: var(--bs-border-radius);
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
/* Admin Container */
.admin-container {
    padding: 2rem;
    background: #f5f6fa;
    min-height: 100vh;
}

/* Admin Card */
.admin-card {
    background: var(--restaurant-secondary);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

/* Admin Form */
#add-product-form .form-label {
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
}

#add-product-form .form-control,
#add-product-form .form-select {
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    border: 1px solid #b2dfdb;
    transition: border-color 0.2s ease;
}

#add-product-form .form-control:focus,
#add-product-form .form-select:focus {
    border-color: var(--restaurant-primary);
    box-shadow: 0 0 0 0.2rem rgba(211, 47, 47, 0.18);
}

#add-product-form textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

#add-product-form .btn-primary {
    background: var(--restaurant-primary);
    border: none;
    font-weight: 600;
    padding: 0.75rem;
    border-radius: 10px;
    transition: background 0.2s ease;
}

#add-product-form .btn-primary:hover {
    background: var(--restaurant-dark);
}

/* Admin Table */
.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}
canvas#dashboardChart {
    max-height: 400px;
}
.admin-table thead th {
    background: var(--restaurant-primary);
    color: var(--restaurant-secondary);
    font-weight: 600;
    padding: 1rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-bottom: 2px solid var(--temu-light);
}

.admin-table tbody tr {
    transition: background 0.2s ease;
}

.admin-table tbody tr:hover {
    background: var(--restaurant-light);
}

.admin-table td {
    color: #333;
    padding: 1rem;
    vertical-align: middle;
    font-size: 0.95rem;
}

.admin-table td.low-stock {
    color: var(--fresh-danger);
    font-weight: 600;
}

/* Action Buttons */
.admin-table .btn {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.admin-table .btn-outline-primary {
    border-color: var(--restaurant-primary);
    color: var(--restaurant-primary);
}

.admin-table .btn-outline-primary:hover {
    background: var(--restaurant-primary);
    color: var(--restaurant-secondary);
}

.admin-table .btn-outline-danger {
    border-color: var(--fresh-danger);
    color: var(--fresh-danger);
}

.admin-table .btn-outline-danger:hover {
    background: var(--fresh-danger);
    color: var(--fresh-secondary);
}

.admin-table .btn-warning {
    background: #ffc107;
    border-color: #ffc107;
    color: #333;
}

.admin-table .btn-warning:hover {
    background: #e0a800;
    border-color: #e0a800;
}

/* Alerts */
.alert {
    border-radius: 8px;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: #d0f5ea;
    color: #155724;
}

.alert-danger {
    background: #ffe3ec;
    color: #ef476f;
}
/* Orders Container */
.orders-container {
    padding: 2rem;
    background: #f5f6fa;
    min-height: 100vh;
}

.orders-card {
    background: var(--restaurant-secondary);
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

/* Orders Table */
.orders-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.orders-table thead th {
    background: var(--restaurant-primary);
    color: var(--restaurant-secondary);
    font-weight: 600;
    padding: 1rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    border-bottom: 2px solid var(--temu-light);
}

.orders-table tbody tr {
    transition: background 0.2s ease;
}

.orders-table tbody tr:hover {
    background: var(--restaurant-light);
}

.orders-table td {
    color: #333;
    padding: 1rem;
    vertical-align: middle;
    font-size: 0.95rem;
}

/* Status Badges */
.orders-badge {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-weight: 500;
}

.bg-warning { background: #ffd166 !important; color: #22223b !important; }
.bg-info { background: #3a86ff !important; color: #ffffff !important; }
.bg-primary { background: var(--fresh-accent) !important; color: #ffffff !important; }
.bg-success { background: var(--fresh-green) !important; color: #ffffff !important; }
.bg-danger { background: var(--fresh-danger) !important; color: #ffffff !important; }

/* Action Buttons */
.orders-table .btn {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.orders-table .btn-outline-primary {
    border-color: var(--restaurant-primary);
    color: var(--restaurant-primary);
}

.orders-table .btn-outline-primary:hover {
    background: var(--restaurant-primary);
    color: var(--restaurant-secondary);
}

.orders-table .btn-outline-info {
    border-color: var(--restaurant-accent);
    color: var(--restaurant-accent);
}

.orders-table .btn-outline-info:hover {
    background: var(--restaurant-accent);
    color: var(--restaurant-secondary);
}

/* Continue Shopping Button */
.btn-outline-secondary {
    border-color: #333;
    color: #333;
    font-weight: 500;
    border-radius: 10px;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.btn-outline-secondary:hover {
    background: #333;
    color: var(--restaurant-secondary);
}

/* Pagination */
.pagination .page-link {
    color: var(--restaurant-primary);
    border: 1px solid var(--restaurant-light);
    border-radius: 8px;
    margin: 0 0.2rem;
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    background: var(--restaurant-primary);
    color: var(--restaurant-secondary);
    border-color: var(--restaurant-primary);
}

.pagination .page-item.active .page-link {
    background: var(--restaurant-primary);
    color: var(--restaurant-secondary);
    border-color: var(--restaurant-primary);
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
    border-color: var(--restaurant-light);
}

/* Alerts */
.alert {
    border-radius: 8px;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.alert-info {
    background: #e0f7fa;
    color: #155263;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .orders-container {
        padding: 1.5rem;
    }

    .orders-table th,
    .orders-table td {
        font-size: 0.85rem;
        padding: 0.75rem;
    }

    .orders-table .btn {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    .orders-badge {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    .card-img-top{
        height: 400px!important;
    }
        
}

@media (max-width: 576px) {
    .orders-container {
        padding: 1rem;
    }

    .orders-table {
        font-size: 0.8rem;
    }

    .orders-table th,
    .orders-table td {
        padding: 0.5rem;
    }

    .orders-table .btn {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }

    .orders-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }

    .btn-outline-secondary {
        width: 100%;
        text-align: center;
    }

    .pagination .page-link {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
}
/* Responsive Adjustments */
@media (max-width: 992px) {
    .admin-container {
        padding: 1.5rem;
    }

    .admin-table th,
    .admin-table td {
        font-size: 0.85rem;
        padding: 0.75rem;
    }

    .admin-table .btn {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }

    #add-product-form .form-control,
    #add-product-form .form-select {
        font-size: 0.9rem;
    }
    .img-size{
        height: 450px!important;
    }
}

@media (max-width: 576px) {
    .admin-container {
        padding: 1rem;
    }

    .admin-table {
        font-size: 0.8rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.5rem;
    }

    .admin-table .btn {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }

    #add-product-form .btn-primary {
        font-size: 0.9rem;
        padding: 0.6rem;
    }
      .img-size{
        height: 450px!important;
    }
}
/* Search Bar */
.input-group .form-control {
    border-radius: 10px 0 0 10px;
    font-size: 0.95rem;
}

.input-group .btn-outline-secondary {
    border-radius: 0 10px 10px 0;
    background: var(--restaurant-primary);
    color: var(--restaurant-secondary);
    border: none;
}

.input-group .btn-outline-secondary:hover {
    background: var(--restaurant-dark);
}

/* Add Product Button */
.btn-primary {
    background: var(--restaurant-primary);
    border: none;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    transition: background 0.2s ease;
}

.btn-primary:hover {
    background: var(--restaurant-dark);
}

/* Modal Styles */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: var(--restaurant-primary);
    color: var(--restaurant-secondary);
    border-radius: 12px 12px 0 0;
    padding: 1.25rem;
}

.modal-title {
    font-weight: 600;
}

.modal-body {
    padding: 1.5rem;
    background: var(--restaurant-secondary);
}

.modal-body .form-label {
    font-weight: 500;
    color: #333;
}

.modal-body .form-control,
.modal-body .form-select {
    border-radius: 8px;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
}

.modal-body .btn-primary {
    font-size: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .admin-container {
        padding: 1.5rem;
    }

    .admin-table th,
    .admin-table td {
        font-size: 0.85rem;
        padding: 0.75rem;
    }

    .admin-table .btn {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
    .toggle-password {
        width: 50px!important;
        text-align: center;
    }
      .img-size{
        height: 450px!important;
    }
}

@media (max-width: 576px) {
    .admin-container {
        padding: 1rem;
    }

    .admin-table {
        font-size: 0.8rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.5rem;
    }

    .d-flex.mb-4 {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-primary {
        width: 100%;
        text-align: center;
    }
      .img-size{
        height: 450px!important;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .checkout-card, .order-confirmation-card {
        padding: 1.5rem;
    }

    .list-group-item {
        font-size: 0.95rem;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2.2rem;
    }


    .metric-card h3 {
        font-size: 1.8rem;
    }

    .carousel-item img {
        height: 250px;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.5rem;
    }

    #search {
        font-size: 0.9rem;
        padding: 6px 15px;
    }

    .btn-primary {
        padding: 8px 15px;
        font-size: 0.95rem;
    }
}