/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Main menu body background - not for admin */
body:not(.admin-body) {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('assets/my food menu background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

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

/* Landing Page */
.landing-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 20px;
}

.landing-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.landing-header p {
    font-size: 1rem;
    margin-bottom: 2rem;
}

.menu-options {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 300px;
}

.menu-option {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 2rem 5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-option:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

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

.menu-option h2 {
    font-size: 1.2rem;
    font-weight: bold;
}

/* Headers */
.menu-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-back-btn,
.header-search-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.header-back-btn:hover,
.header-search-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.header-logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    flex: 1;
    justify-content: center;
}

.header-logo-text {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0;
}

/* Search */
.search-container {
    background: white;
    padding: 1rem;
    position: fixed;
    width: 100%;
    top: 72px;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.search-container input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
}

.search-container input:focus {
    border-color: #e74c3c;
}

/* Menu Categories */
.menu-categories {
    position: sticky;
    top: 72px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    z-index: 998;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow-x: auto;
    white-space: nowrap;
}

.categories-marquee {
    display: inline-flex;
    gap: 1rem;
    padding: 0 1rem;
}

.category-btn {
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    border-radius: 15px;
    transition: all 0.3s ease;
    font-weight: bold;
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.category-btn.active,
.category-btn:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
}

/* Menu Section */
.menu-section {
    padding: 2rem 0;
    min-height: 100vh;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: white;
}

.category-section {
    margin-bottom: 3rem;
    padding-top: 2rem;
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.menu-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.menu-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.menu-item h3 {
    color: #ffffff;
    font-size: 1.1rem;
    margin: 0;
}

.menu-item .price {
    font-size: 1.1rem;
    font-weight: bold;
    color: #ffffff;
}

/* Item Detail Popup */
.item-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 25vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px 20px 0 0;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 2000;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.3);
}

.item-popup.active {
    transform: translateY(0);
}

.item-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.item-popup h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin: 0;
}

.item-popup .close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.item-popup .price {
    color: #e74c3c;
    font-size: 1.2rem;
    font-weight: bold;
}

.item-popup .description {
    color: #666;
    font-size: 1rem;
    line-height: 1.5;
    margin-top: 0.5rem;
}

/* Contact Section */
.contact-section {
    padding: 5rem 0 2rem;
    min-height: 100vh;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 1.5rem;
}

.contact-info,
.contact-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 10px;
}

.contact-info h3,
.contact-form h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.contact-info p {
    margin-bottom: 0.8rem;
    font-size: 1rem;
    color: #ffffff;
}

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

.contact-form button {
    width: 100%;
    padding: 1rem;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.contact-form button:hover {
    background: #c0392b;
}

/* Responsive Design */
@media (min-width: 768px) {
    .landing-header h1 {
        font-size: 2.5rem;
    }
    
    .landing-header p {
        font-size: 1.1rem;
    }
    
    .menu-options {
        flex-direction: row;
        max-width: 700px;
    }
    
    .menu-option {
        padding: 2.5rem 2rem;
    }
    
    .menu-option .icon {
        font-size: 3.5rem;
    }
    
    .menu-option h2 {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contact-content {
        flex-direction: row;
        gap: 3rem;
    }
}

@media (min-width: 1024px) {
    .landing-header h1 {
        font-size: 3rem;
    }
    
    .landing-header p {
        font-size: 1.2rem;
    }
    
    .menu-options {
        max-width: 800px;
    }
    
    .menu-option {
        padding: 3rem 2rem;
    }
    
    .menu-option .icon {
        font-size: 4rem;
    }
    
    .menu-option h2 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
/* Admin Styles */
.admin-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

/* Login Form */
.login-form {
    max-width: 400px;
    margin: 100px auto;
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.login-form h2 {
    text-align: center;
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.login-form input {
    width: 100%;
    padding: 12px;
    margin-bottom: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.login-form input:focus {
    outline: none;
    border-color: #667eea;
}

.login-form button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.login-form button:hover {
    transform: translateY(-2px);
}

/* Admin Panel */
.admin-panel {
    max-width: 1200px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

/* Admin Header */
.admin-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h1 {
    margin: 0;
    font-size: 1.8rem;
}

.logout-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.3s;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Admin Navigation */
.admin-nav {
    background: #f8f9fa;
    padding: 0;
    display: flex;
    border-bottom: 1px solid #dee2e6;
}

.nav-btn {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    color: #666;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.nav-btn:hover {
    background: #e9ecef;
    color: #333;
}

.nav-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: white;
}

/* Admin Pages */
.admin-page {
    padding: 2rem;
    min-height: 500px;
}

.admin-page h2 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
}

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.stat-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1rem;
    opacity: 0.9;
}

.stat-card p {
    margin: 0;
    font-size: 2rem;
    font-weight: bold;
}

/* Settings Content */
.settings-content {
    max-width: 600px;
}

.branding-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.branding-section h3 {
    color: #333;
    margin-bottom: 1rem;
}

.branding-section form {
    display: flex;
    gap: 1rem;
    align-items: end;
}

.branding-section input {
    flex: 1;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.branding-section button {
    padding: 10px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.branding-section button:hover {
    background: #5a67d8;
}

/* Categories Content */
.categories-content {
    max-width: 800px;
}

.add-category {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.add-category h3 {
    color: #333;
    margin-bottom: 1rem;
}

.add-category form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 1rem;
    align-items: end;
}

.add-category input,
.add-category select {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.add-category button {
    padding: 10px 20px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.add-category button:hover {
    background: #218838;
}

.categories-list h3 {
    color: #333;
    margin-bottom: 1rem;
}

.category-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-info h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.category-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.category-actions {
    display: flex;
    gap: 0.5rem;
}

.order-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.order-btn:hover {
    background: #5a6268;
}

.category-actions button:not(.order-btn) {
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.category-actions button:not(.order-btn):hover {
    background: #c82333;
}

/* Items Content */
.items-content {
    max-width: 1000px;
}

.add-item-form {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.add-item-form h3 {
    color: #333;
    margin-bottom: 1rem;
}

.add-item-form form {
    display: grid;
    grid-template-columns: 1fr 2fr 100px 1fr auto;
    gap: 1rem;
    align-items: end;
}

.add-item-form input,
.add-item-form select {
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.add-item-form button {
    padding: 10px 20px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.add-item-form button:hover {
    background: #218838;
}

.items-list h3 {
    color: #333;
    margin-bottom: 1rem;
}

.admin-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-item-info h4 {
    margin: 0 0 0.5rem 0;
    color: #333;
}

.admin-item-info p {
    margin: 0 0 0.25rem 0;
    color: #666;
    font-size: 0.9rem;
}

.admin-item-actions {
    display: flex;
    gap: 0.5rem;
}

.edit-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.edit-btn:hover {
    background: #0056b3;
}

.delete-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
}

.delete-btn:hover {
    background: #c82333;
}

/* Popup Styles */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.popup-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.popup-content h3 {
    margin: 0 0 1.5rem 0;
    color: #333;
}

.popup-content input,
.popup-content select {
    width: 100%;
    padding: 10px;
    margin-bottom: 1rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.popup-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.popup-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
}

.popup-buttons button[type="submit"] {
    background: #007bff;
    color: white;
}

.popup-buttons button[type="submit"]:hover {
    background: #0056b3;
}

.popup-buttons button[type="button"] {
    background: #6c757d;
    color: white;
}

.popup-buttons button[type="button"]:hover {
    background: #5a6268;
}

/* Responsive Admin Styles */
@media (max-width: 768px) {
    .admin-container {
        padding: 10px;
    }
    
    .admin-nav {
        flex-wrap: wrap;
    }
    
    .nav-btn {
        flex: 1;
        min-width: 120px;
    }
    
    .admin-page {
        padding: 1rem;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .add-category form,
    .add-item-form form {
        grid-template-columns: 1fr;
    }
    
    .branding-section form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .admin-item,
    .category-item {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .admin-item-actions,
    .category-actions {
        justify-content: center;
    }
}