* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
}

html {
    scroll-behavior: smooth;
}

/* Navbar */
#navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: transparent;
    flex-wrap: wrap;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

#navbar.scrolled {
    padding: 1rem 5%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#navbar.scrolled .logo,
#navbar.scrolled .nav-links a {
    color: #333;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    transition: color 0.3s ease;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-cart-icon {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-cart-icon:hover {
    color: #e67e22;
}

#navbar.scrolled .nav-cart-icon {
    color: #333;
}
#navbar.scrolled .nav-cart-icon:hover {
    color: #e67e22;
}
#navbar.menu-open .nav-cart-icon {
    color: #333 !important;
}

.menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s ease;
}
#navbar.scrolled .menu-toggle {
    color: #333;
}

.nav-links {
    display: flex;
    list-style: none;
    margin-left: auto;
    margin-right: 2rem;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #e67e22 !important;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1585937421612-70a008356fbe?auto=format&fit=crop&w=1950&q=80') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero h1 em {
    color: #e67e22;
    font-style: normal;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 12px 35px;
    background-color: #e67e22;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #d35400;
}

/* Features Section */
.features-section {
    padding: 4rem 5%;
    background-color: #fff;
    text-align: center;
}

.features-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-box {
    flex: 1;
    min-width: 250px;
    padding: 2rem;
    background: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-box h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.feature-box p {
    color: #666;
    font-size: 0.95rem;
}

/* Menu Section */
.menu-section {
    padding: 5rem 5%;
    background-color: #f9f9f9;
    text-align: center;
}

.menu-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.menu-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.menu-card {
    background: #fff;
    width: 320px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.menu-card:hover {
    transform: translateY(-10px);
}

.card-img {
    height: 220px;
    background-size: cover;
    background-position: center;
}

.menu-card h3 {
    padding: 1.5rem 1rem 0.5rem;
    color: #333;
}

.menu-card p {
    padding: 0 1rem;
    color: #666;
    font-size: 0.95rem;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
}

.price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #e67e22;
}

.btn-order {
    padding: 8px 20px;
    background-color: #e67e22;
    color: #fff;
    border: none;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-order:hover {
    background-color: #d35400;
}

/* Footer */
footer {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 3rem 5%;
}

footer p {
    margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    #navbar {
        padding: 1rem 5%;
    }
    #navbar.scrolled {
        padding: 0.8rem 5%;
    }
    #navbar.menu-open {
        background-color: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
    }
    #navbar.menu-open .logo,
    #navbar.menu-open .nav-links a,
    #navbar.menu-open .menu-toggle {
        color: #333 !important;
    }
    .menu-toggle {
        display: block;
    }
    .nav-links {
        display: flex;
        width: 100%;
        flex-direction: column;
        text-align: center;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out, opacity 0.3s ease-in-out, padding 0.4s ease-in-out;
        order: 3;
        margin-left: 0;
        margin-right: 0;
    }
    .nav-links.active {
        max-height: 400px;
        opacity: 1;
        padding-top: 1rem;
        padding-bottom: 0.5rem;
    }
    .nav-links li {
        margin: 0.8rem 0;
        font-size: 1.1rem;
    }
    .hero h1 {
        font-size: 2.3rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .menu-section h2, .about-section h2, .contact-section h2 {
        font-size: 2rem;
    }
    .menu-card {
        width: 100%;
        max-width: 350px;
    }
    .form-row {
        flex-direction: column;
        gap: 1.2rem;
    }
    .cart-page, .payment-page, .admin-page, .auth-page {
        padding-top: 11rem;
    }
    .admin-grid {
        grid-template-columns: 1fr;
    }
}

/* About & Contact Sections */
.about-section, .contact-section {
    padding: 5rem 5%;
    text-align: center;
}

.about-section {
    background-color: #fff;
}

.about-section h2, .contact-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.about-section p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: #666;
}

.contact-container {
    display: flex;
    justify-content: center;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
    text-align: left;
    flex-wrap: wrap;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
    min-width: 300px;
}

.contact-form input, .contact-form textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    width: 100%;
}

.contact-info {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

/* Cart Page Styles */
.cart-page {
    padding: 8rem 5% 5rem;
    min-height: calc(100vh - 120px);
    background-color: #f9f9f9;
}

.cart-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.cart-total {
    text-align: right;
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 2rem;
    color: #2c3e50;
}

.empty-cart {
    text-align: center;
    color: #666;
    font-size: 1.2rem;
    padding: 2rem;
}

/* Custom Alert Page */
#custom-alert-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-out;
}

.custom-alert-box {
    background: #fff;
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.custom-alert-box p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    color: #2c3e50;
    font-weight: 500;
}

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

/* Payment Page Styles */
.payment-page {
    padding: 8rem 5% 5rem;
    min-height: calc(100vh - 120px);
    background-color: #f9f9f9;
    display: flex;
    justify-content: center;
}

.payment-container {
    background: #fff;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
}

.payment-container h2 {
    margin-bottom: 2rem;
    color: #2c3e50;
    text-align: center;
}

.payment-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.payment-form input {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row input {
    flex: 1;
}

/* Admin Dashboard Styles */
.admin-page {
    padding: 8rem 5% 5rem;
    min-height: calc(100vh - 120px);
    background-color: #f4f6f8;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.order-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border-top: 4px solid #3498db;
}

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

.status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.status.preparing { background: #f1c40f; color: #fff; }
.status.completed { background: #2ecc71; color: #fff; }

.order-items-list {
    margin: 1rem 0;
    padding-left: 1.5rem;
    color: #555;
}

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

/* Auth/Registration Page Styles */
.auth-page {
    padding: 8rem 5% 5rem;
    min-height: calc(100vh - 120px);
    background-color: #f9f9f9;
    display: flex;
    justify-content: center;
}

.auth-container {
    background: #fff;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.auth-container h2 {
    margin-bottom: 2rem;
    color: #2c3e50;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.auth-form input {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}

/* Map Modal Styles */
#map-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

#map-container {
    width: 90%;
    max-width: 700px;
    height: 450px;
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    position: relative;
}

.close-map {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #e67e22;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    z-index: 10001;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Rating Modal Styles */
.rating-modal-content {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
    width: 90%;
}

.rating-modal-content h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.star-rating {
    direction: rtl;
    display: inline-block;
    padding: 1rem 0;
}

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

.star-rating label {
    color: #ddd;
    font-size: 2.5rem;
    padding: 0 5px;
    cursor: pointer;
    transition: color 0.2s;
}

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

.rating-modal-content textarea {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-top: 1rem;
    min-height: 80px;
    font-size: 1rem;
}

/* Receipt Modal Styles */
.receipt-modal-content {
    background: #fff;
    padding: 2.5rem 2rem;
    border-radius: 5px;
    max-width: 400px;
    width: 90%;
    font-family: 'Courier New', Courier, monospace;
    color: #333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.receipt-modal-content h3 {
    text-align: center;
    border-bottom: 1px dashed #ccc;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.receipt-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.receipt-total {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 1.2rem;
    border-top: 1px dashed #ccc;
    padding-top: 1rem;
    margin-top: 1rem;
}

.close-receipt {
    width: 100%;
    margin-top: 2rem;
}