:root {
    --primary-color: #1d4ed8;
    --secondary-color: #eab308;
    --accent-color: rgba(255, 255, 255, 0.1);
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --text-color: #f8fafc;
    --text-light: #94a3b8;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
    --border: 1px solid rgba(255, 255, 255, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

/* Hero Section */
.hero {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.8), var(--bg-color)), 
                url('https://images.unsplash.com/photo-1555396273-367ea4eb4db5?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1974&q=80') no-repeat center center/cover;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.logo-container {
    margin-bottom: 20px;
}

.logo {
    height: 150px;
    width: auto;
    border-radius: 50%;
    border: 3px solid var(--secondary-color);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.logo:hover {
    transform: scale(1.05);
}

.restaurant-name {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slogan {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.animated-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(29, 78, 216, 0.2);
    animation: float 6s infinite ease-in-out;
}

.animated-circle:nth-child(1) {
    width: 100px;
    height: 100px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.animated-circle:nth-child(2) {
    width: 150px;
    height: 150px;
    bottom: 15%;
    right: 10%;
    animation-delay: 2s;
}

.animated-circle:nth-child(3) {
    width: 70px;
    height: 70px;
    top: 60%;
    left: 30%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-20px) translateX(10px);
    }
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    color: var(--text-color);
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--secondary-color);
    margin: 10px auto;
}

/* Search Bar */
.search-container {
    display: flex;
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    background: var(--card-bg);
    color: var(--text-color);
    border: var(--border);
    border-radius: 30px;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(29, 78, 216, 0.3);
}

.search-btn {
    position: absolute;
    right: 5px;
    top: 5px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    background: var(--secondary-color);
}

/* Categories */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.category-card {
    background: var(--card-bg);
    border: var(--border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: none;
    transition: var(--transition);
    cursor: pointer;
    text-align: center;
    padding: 20px 10px;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.category-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.category-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.filter-btn {
    padding: 8px 16px;
    background: var(--card-bg);
    border: var(--border);
    color: var(--text-light);
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.filter-btn:hover {
    background: rgba(255,255,255,0.1);
    color: var(--white);
}

.filter-btn.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: transparent;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.product-card {
    background: var(--card-bg);
    border: var(--border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: none;
    transition: var(--transition);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-info {
    padding: 15px;
}

.product-name {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: var(--text-color);
}

.product-description {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.price {
    font-weight: 600;
    color: var(--secondary-color);
    font-size: 1.1rem;
}

.details-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
}

.details-btn:hover {
    background: var(--secondary-color);
}

.allergen-icon {
    color: #e53935;
    font-size: 1.2rem;
    margin-left: 5px;
}

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

.modal-content {
    background: var(--card-bg);
    margin: 50px auto;
    max-width: 900px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.close-modal:hover {
    color: var(--white);
}

.modal-body {
    display: flex;
    flex-direction: column;
}

.product-gallery {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.main-image {
    width: 100%;
    height: 100%;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-container {
    display: flex;
    padding: 10px;
    overflow-x: auto;
    gap: 10px;
    background: var(--bg-color);
}

.thumbnail {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.thumbnail:hover, .thumbnail.active {
    border-color: var(--primary-color);
}

.product-details {
    padding: 20px;
}

.price-container {
    display: flex;
    align-items: center;
    margin: 15px 0;
}

.allergens {
    margin-left: 15px;
    font-size: 0.9rem;
    color: #e53935;
}

.description {
    margin-bottom: 20px;
    line-height: 1.7;
}

/* Plus Features */
.plus-features {
    margin: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: var(--border);
    border-radius: 5px;
    overflow: hidden;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,0.1);
    color: var(--text-color);
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.quantity-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.quantity {
    width: 40px;
    text-align: center;
}

.add-to-cart, .call-waiter {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
}

.add-to-cart {
    background: var(--primary-color);
    color: var(--white);
}

.add-to-cart:hover {
    background: var(--dark-color);
}

.call-waiter {
    background: var(--light-color);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.call-waiter:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Reviews Section */
.reviews-section {
    margin-top: 30px;
    border-top: 1px solid var(--accent-color);
    padding-top: 20px;
}

.reviews-container {
    margin: 20px 0;
}

.review-item {
    background: var(--bg-color);
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.review-name {
    font-weight: 600;
}

.review-rating {
    color: var(--secondary-color);
}

.review-text {
    font-size: 0.9rem;
}

.review-form {
    margin-top: 20px;
}

.rating-input {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.rating-input span {
    margin-right: 10px;
}

.stars {
    display: flex;
}

.stars i {
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    margin-right: 5px;
}

.stars i.active, .stars i:hover {
    color: #ffc107;
}

.review-name, .review-text {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    background: var(--bg-color);
    color: var(--text-color);
    border: var(--border);
    border-radius: 5px;
    font-family: 'Poppins', sans-serif;
}

.review-text {
    min-height: 100px;
    resize: vertical;
}

.submit-review {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: var(--transition);
}

.submit-review:hover {
    background: #1e40af;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 400px;
    height: 100%;
    background: var(--card-bg);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open {
    right: 0;
}

.cart-header {
    padding: 20px;
    border-bottom: var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-cart {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition);
}

.close-cart:hover {
    color: var(--white);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.cart-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: var(--border);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-price {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 5px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
}

.cart-item-quantity button {
    width: 25px;
    height: 25px;
    background: rgba(255,255,255,0.1);
    color: var(--text-color);
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.cart-item-quantity span {
    margin: 0 10px;
}

.remove-item {
    color: #e53935;
    background: none;
    border: none;
    cursor: pointer;
    margin-top: 5px;
    font-size: 0.9rem;
}

.cart-summary {
    padding: 20px;
    border-top: var(--border);
}

.total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 1.1rem;
}

.checkout-btn, .online-payment {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.checkout-btn {
    background: var(--primary-color);
    color: var(--white);
}

.checkout-btn:hover {
    background: #1e40af;
}

.online-payment {
    background: #4285f4;
    color: var(--white);
}

.online-payment:hover {
    background: #3367d6;
}

/* Cart Icon */
.cart-icon-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.cart-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    position: relative;
}

.cart-icon:hover {
    transform: scale(1.1);
    background: var(--secondary-color);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e53935;
    color: var(--white);
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* Footer */
.footer {
    background: #020617;
    color: var(--light-color);
    padding: 30px 0;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.credit {
    margin-top: 15px;
    font-size: 0.9rem;
}

.credit a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}

.credit a:hover {
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero {
        height: 50vh;
    }
    
    .restaurant-name {
        font-size: 2.5rem;
    }
    
    .modal-content {
        width: 90%;
    }
    
    .modal-body {
        flex-direction: column;
    }
    
    .product-gallery {
        height: 250px;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 45vh;
    }
    
    .restaurant-name {
        font-size: 2rem;
    }
    
    .slogan {
        font-size: 1rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .cart-sidebar {
        max-width: 350px;
    }
}

@media (max-width: 576px) {
    .hero {
        height: 40vh;
    }
    
    .logo {
        height: 80px;
    }
    
    .restaurant-name {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons {
        justify-content: flex-start;
    }
    
    .cart-sidebar {
        width: 100%;
        max-width: none;
    }
    
    .cart-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .cart-count {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }
}

/* Ek Css */
/* Notification */
.notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--white);
    padding: 12px 24px;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1002;
}

.notification.show {
    opacity: 1;
}

/* Empty cart message */
.empty-cart {
    text-align: center;
    padding: 20px;
    color: var(--text-light);
}

/* --- ADMIN PANEL & AUTH PAGES --- */

/* Layout Utilities */
.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.text-center { text-align: center; }
.mb-20 { margin-bottom: 20px; }
.mt-20 { margin-top: 20px; }
.w-100 { width: 100%; }
.gap-10 { gap: 10px; }

/* Grid System */
.row { display: flex; flex-wrap: wrap; margin: -10px; }
.col-4 { width: 35%; padding: 10px; }
.col-8 { width: 65%; padding: 10px; }
@media (max-width: 768px) { .col-4, .col-8 { width: 100%; } }

/* Auth Pages (Login/Register) */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.auth-box {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    border: var(--border);
    box-shadow: var(--shadow);
}
.auth-link { color: var(--secondary-color); text-decoration: none; font-size: 0.9rem; }
.auth-link:hover { text-decoration: underline; }

/* Admin Navbar */
.navbar {
    background: var(--card-bg);
    padding: 15px 0;
    border-bottom: var(--border);
    margin-bottom: 30px;
}
.navbar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.navbar-brand {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}

/* Cards (Generic) */
.card {
    background: var(--card-bg);
    border: var(--border);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}
.card-header {
    background: rgba(255,255,255,0.03);
    padding: 15px 20px;
    font-weight: 600;
    border-bottom: var(--border);
    color: var(--white);
}
.card-body { padding: 20px; }

/* Forms */
.form-group { margin-bottom: 15px; }
.form-label { display: block; margin-bottom: 8px; color: var(--text-light); font-size: 0.9rem; }
.form-control {
    width: 100%;
    padding: 12px;
    background: var(--bg-color);
    border: var(--border);
    border-radius: 5px;
    color: var(--text-color);
    outline: none;
    transition: var(--transition);
}
.form-control:focus { border-color: var(--primary-color); }
.text-muted { color: var(--text-light); font-size: 0.8rem; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    font-size: 0.9rem;
    text-align: center;
}
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.btn-primary { background: var(--primary-color); color: var(--white); }
.btn-primary:hover { background: #1e40af; }
.btn-success { background: #10b981; color: var(--white); }
.btn-success:hover { background: #059669; }
.btn-warning { background: var(--secondary-color); color: #000; }
.btn-warning:hover { background: #ca8a04; }
.btn-danger { background: #ef4444; color: var(--white); }
.btn-danger:hover { background: #dc2626; }
.btn-secondary { background: #475569; color: var(--white); }
.btn-outline { background: transparent; border: 1px solid var(--text-light); color: var(--text-light); }
.btn-outline:hover { border-color: var(--white); color: var(--white); }

/* Alerts */
.alert { padding: 15px; border-radius: 5px; margin-bottom: 20px; border: 1px solid transparent; }
.alert-info { background: rgba(29, 78, 216, 0.1); border-color: rgba(29, 78, 216, 0.2); color: #93c5fd; }
.alert-danger { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.2); color: #fca5a5; }
.alert-success { background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.2); color: #6ee7b7; }

/* Tables */
.table-container { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th {
    text-align: left;
    padding: 15px;
    color: var(--text-light);
    border-bottom: var(--border);
    font-weight: 600;
}
.table td {
    padding: 15px;
    border-bottom: var(--border);
    vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover { background: rgba(255,255,255,0.02); }