/* Global Styles */
:root {
    --primary-color: #ff6b9d;
    --secondary-color: #ffffff;
    --accent-color: #ff4081;
    --dark-color: #333333;
    --light-color: #f8f8f8;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

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

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

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    font-size: 16px;
    transition: var(--transition);
}

.btn:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* Header Styles */
.header {
    background-color: var(--secondary-color);
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo h1 {
    font-size: 24px;
    color: var(--primary-color);
}

.logo h1 span {
    color: var(--dark-color);
    font-size: 18px;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-color);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.admin-btn {
    background: var(--primary-color);
    color: var(--secondary-color) !important;
    padding: 8px 15px;
    border-radius: 5px;
}

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

.cart-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: var(--primary-color);
    color: white !important;
    padding: 8px 15px;
    border-radius: 5px;
    text-decoration: none;
    transition: var(--transition);
}

.cart-btn:hover {
    background: var(--accent-color);
    color: white !important;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger .line {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    margin: 5px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.62)), url(images/front/Front.JPG) no-repeat center center/cover;
    display: flex;
    align-items: center;
    text-align: center;
    margin-top: 80px;
}

.hero-content h2 {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 30px;
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: var(--light-color);
}

.about h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    text-align: center;
}

.contact h2 {
    margin-bottom: 30px;
    color: var(--primary-color);
}

/* Menu Section */
.menu {
    padding: 100px 0 50px;
}

.menu h2 {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.menu-subtitle {
    text-align: center;
    margin-bottom: 40px;
    font-size: 18px;
    color: var(--accent-color);
    font-weight: 600;
}

.menu-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.menu-item {
    background: var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.menu-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.menu-item-img {
    height: 200px;
    overflow: hidden;
}

.menu-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.menu-item:hover .menu-item-img img {
    transform: scale(1.1);
}

.menu-item-content {
    padding: 20px;
}

.menu-item-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.menu-item-content p {
    margin-bottom: 15px;
    color: #666;
}

.menu-item-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-color);
}

.menu-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
}

.menu-item:hover .menu-item-overlay {
    opacity: 1;
}

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

.menu-item-btn:hover {
    background: var(--accent-color);
}

/* Bill Preview */
.bill-preview {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    width: 300px;
    z-index: 1000;
    display: none;
}

.bill-preview h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

.bill-items {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.bill-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.bill-total {
    font-weight: bold;
    margin-top: 10px;
    text-align: right;
}

.bill-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

/* Order Section */
.order {
    padding: 100px 0 50px;
}

.order h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.order-summary {
    background: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

#order-items {
    margin-bottom: 20px;
}

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

.order-item:last-child {
    border-bottom: none;
}

.order-item-info {
    display: flex;
    align-items: center;
}

.order-item-img {
    width: 60px;
    height: 60px;
    border-radius: 5px;
    overflow: hidden;
    margin-right: 15px;
}

.order-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-item-quantity {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.order-item-quantity button {
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

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

.order-total {
    text-align: right;
    margin-top: 20px;
}

.order-total p {
    margin-bottom: 10px;
}

.order-total .total {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.customer-info {
    background: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.customer-info h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
}

.form-group textarea {
    height: 100px;
}

.payment-methods {
    background: var(--light-color);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.payment-methods h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.payment-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.payment-option {
    display: flex;
    align-items: center;
}

.payment-option input {
    margin-right: 10px;
}

.payment-details {
    padding: 15px;
    background: var(--secondary-color);
    border-radius: 5px;
    margin-top: 15px;
}

#place-order {
    display: block;
    width: 100%;
    padding: 15px;
    font-size: 18px;
}

/* Comments Section */
.comments-section {
    padding: 80px 0;
    margin-top: 60px;
    background-color: var(--light-color);
}

.comments-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.feedback-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.feedback-stats .stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    color: var(--dark-color);
}

.feedback-stats .stat i {
    color: var(--primary-color);
}

.comment-form {
    max-width: 600px;
    margin: 0 auto 40px;
}

#comment-text {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 15px;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
}

.like-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

#like-btn {
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

#like-btn:hover {
    background: var(--accent-color);
}

#like-count {
    font-weight: 600;
    color: var(--primary-color);
}

.comments-container {
    max-width: 800px;
    margin: 0 auto;
}

.comment {
    background: var(--secondary-color);
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.comment p {
    margin-bottom: 10px;
}

.comment-date {
    font-size: 12px;
    color: #888;
}

.no-comments {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 20px;
}

/* Invoice Modal */
#invoice-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    overflow-y: auto;
    padding: 20px;
}

.invoice-content {
    background: white;
    padding: 30px;
    border-radius: 10px;
    max-width: 800px;
    margin: 50px auto;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.invoice-details {
    margin-bottom: 20px;
}

.invoice-details p {
    margin-bottom: 8px;
}

.invoice-items {
    width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
}

.invoice-items th, .invoice-items td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.invoice-items th {
    background-color: var(--primary-color);
    color: white;
}

.invoice-totals {
    text-align: right;
    margin-top: 20px;
}

.invoice-totals p {
    margin-bottom: 10px;
}

.invoice-totals .total {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.invoice-thanks {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
    font-style: italic;
}

.invoice-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

/* Admin Panel */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.login-form {
    background: var(--secondary-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 400px;
}

.login-form h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.error-message {
    color: #dc3545;
    margin-bottom: 15px;
    text-align: center;
}

.admin-panel {
    display: none;
}

.admin-dashboard {
    padding: 100px 0 50px;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: var(--secondary-color);
    padding: 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.stat-card p {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-color);
}

.admin-sections {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.admin-section {
    background: var(--secondary-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.admin-section h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.table-container {
    overflow-x: auto;
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

tr:hover {
    background-color: #f5f5f5;
}

.btn-small {
    padding: 5px 10px;
    font-size: 14px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 20px 0;
    background: var(--dark-color);
    color: var(--secondary-color);
}

.social-icons a {
    color: white;
    padding-left: 5px;
    transition: color ease;
    transition-duration: 0.2s;
}

.social-icons a:hover {
    color: var(--primary-color);
}

/* Cart Notification */
#cart-notification {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #28a745;
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    box-shadow: var(--shadow);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--secondary-color);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .hamburger {
        display: block;
    }

    .hamburger.active .line:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active .line:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .line:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero-content h2 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .menu-items {
        grid-template-columns: 1fr;
    }

    .payment-options {
        flex-direction: column;
    }

    .feedback-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .invoice-content {
        padding: 15px;
    }
    
    .invoice-items th, 
    .invoice-items td {
        padding: 8px 10px;
        font-size: 14px;
    }

    .bill-preview {
        width: 90%;
        left: 5%;
        right: auto;
    }
}