/* General Styles */
:root {
    --primary-color: #dc3545;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --dark-color: #343a40;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url('https://images.unsplash.com/photo-1504674900247-0877df9cc836?w=1200') center/cover;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

/* Dish Card */
.dish-card {
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.dish-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.dish-card img {
    height: 200px;
    object-fit: cover;
}

.dish-card .card-title {
    font-weight: bold;
    color: var(--dark-color);
}

.dish-card .price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/* Cart Table */
.cart-table img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

/* Quantity Controls */
.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-control button {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    background-color: var(--primary-color);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

.quantity-control button:hover {
    background-color: #c82333;
}

.quantity-control input {
    width: 60px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 5px;
}

/* Order Status Badges */
.status-pending {
    background-color: #ffc107;
}

.status-preparing {
    background-color: #17a2b8;
}

.status-delivery {
    background-color: #007bff;
}

.status-delivered {
    background-color: #28a745;
}

.status-cancelled {
    background-color: #dc3545;
}

/* Category Filter */
.category-filter {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.category-filter .btn {
    margin: 5px;
}

/* Admin Sidebar */
.admin-sidebar {
    background-color: var(--dark-color);
    min-height: 100vh;
    padding: 20px 0;
}

.admin-sidebar .nav-link {
    color: #adb5bd;
    padding: 12px 20px;
    margin: 5px 0;
    border-radius: 5px;
    transition: all 0.3s;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: white;
}

.admin-sidebar .nav-link i {
    margin-right: 10px;
}

/* Dashboard Cards */
.dashboard-card {
    border-left: 4px solid;
    transition: transform 0.3s;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

.dashboard-card.card-primary {
    border-left-color: #007bff;
}

.dashboard-card.card-success {
    border-left-color: #28a745;
}

.dashboard-card.card-warning {
    border-left-color: #ffc107;
}

.dashboard-card.card-danger {
    border-left-color: #dc3545;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1.2rem;
    }
    
    .dish-card img {
        height: 180px;
    }
}

/* Loading Spinner */
.spinner-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

/* Form Styles */
.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Image Preview */
.image-preview {
    max-width: 200px;
    max-height: 200px;
    margin-top: 10px;
    border-radius: 8px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 5rem;
    color: #dee2e6;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
}

/* Navbar Brand Animation */
.navbar-brand {
    transition: transform 0.3s;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

/* Cart Notification Popup (Bottom Slide-up) */
.cart-notification {
    position: fixed;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 20px 30px;
    border-radius: 15px 15px 0 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    min-width: 350px;
    max-width: 90%;
    transition: bottom 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.cart-notification.show {
    bottom: 0;
}

.cart-notification-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-notification-icon {
    font-size: 2.5rem;
    animation: bounceIn 0.6s;
}

.cart-notification-text {
    flex: 1;
}

.cart-notification-text h5 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
    font-weight: bold;
}

.cart-notification-text p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.cart-notification-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.cart-notification-actions .btn {
    flex: 1;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s;
}

.cart-notification-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.cart-notification-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 576px) {
    .cart-notification {
        min-width: 95%;
        padding: 15px 20px;
    }
    
    .cart-notification-icon {
        font-size: 2rem;
    }
    
    .cart-notification-text h5 {
        font-size: 1rem;
    }
    
    .cart-notification-actions {
        flex-direction: column;
    }
}