/* ========================================
   Global Styles & Variables
   ======================================== */
:root {
    --primary-color: #8ba888;
    --secondary-color: #d4c5b0;
    --accent-color: #6b8e6b;
    --text-dark: #2c3e2c;
    --text-light: #666;
    --bg-light: #f8f9f5;
    --white: #ffffff;
    --border-radius: 12px;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 12px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    min-height: 100vh;
}

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

/* ========================================
   Language Switcher
   ======================================== */
.language-switcher {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: var(--white);
    padding: 5px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.lang-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 15px;
    font-size: 14px;
    transition: var(--transition);
}

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

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

/* ========================================
   Header
   ======================================== */
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    padding: 40px 0;
    text-align: center;
    box-shadow: var(--shadow);
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid var(--white);
    object-fit: cover;
    box-shadow: var(--shadow);
}

.brand-name {
    font-size: 3em;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.brand-subtitle {
    display: block;
    font-size: 0.4em;
    letter-spacing: 3px;
    margin-top: 5px;
}

.brand-tagline {
    display: block;
    font-size: 0.3em;
    font-style: italic;
    opacity: 0.9;
}

.contact-info {
    margin: 30px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1em;
}

.contact-item .icon {
    font-size: 1.3em;
}

.contact-item a {
    color: var(--white);
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.contact-item a:hover {
    border-bottom-color: var(--white);
}

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

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: var(--white);
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

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

.btn-success {
    background: #25d366;
    color: var(--white);
    border: 2px solid #25d366;
}

.btn-success:hover {
    background: #1fa855;
    border-color: #1fa855;
}

.btn-success {
    background: #5cb85c;
    color: var(--white);
}

.btn-success:hover {
    background: #4cae4c;
}

.btn-danger {
    background: #d9534f;
    color: var(--white);
}

.btn-danger:hover {
    background: #c9302c;
}

.btn-info {
    background: #5bc0de;
    color: var(--white);
}

.btn-info:hover {
    background: #46b8da;
}

.btn-disabled {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-large {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
    margin-top: 10px;
}

/* ========================================
   Menu Section
   ======================================== */
.menu-section {
    padding: 60px 0;
}

.menu-header {
    text-align: center;
    margin-bottom: 40px;
}

.menu-header h2 {
    font-size: 2.5em;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.search-filter {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

#searchInput {
    padding: 12px 20px;
    border: 2px solid var(--secondary-color);
    border-radius: var(--border-radius);
    font-size: 1em;
    min-width: 300px;
    transition: var(--transition);
}

#searchInput:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 168, 136, 0.1);
}

#categoryFilter {
    padding: 12px 20px;
    border: 2px solid var(--secondary-color);
    border-radius: var(--border-radius);
    font-size: 1em;
    background: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

#categoryFilter:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* ========================================
   Menu Grid
   ======================================== */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.category-section {
    grid-column: 1 / -1;
}

.category-title {
    font-size: 2em;
    color: var(--accent-color);
    margin: 40px 0 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid var(--primary-color);
}

.menu-item {
    background: var(--white);
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.item-name {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.item-description {
    color: var(--text-light);
    font-size: 0.9em;
    margin-bottom: 15px;
    flex-grow: 1;
}

.item-price {
    font-size: 1.5em;
    color: var(--accent-color);
    font-weight: bold;
}

/* ========================================
   Admin Page
   ======================================== */
.admin-page {
    background: var(--bg-light);
}

.admin-header {
    background: var(--accent-color);
    color: var(--white);
    padding: 30px 0;
    box-shadow: var(--shadow);
}

.admin-header h1 {
    margin-bottom: 20px;
}

.admin-nav {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.login-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

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

.login-box h2 {
    margin-bottom: 20px;
    color: var(--text-dark);
}

.login-box input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid var(--secondary-color);
    border-radius: var(--border-radius);
    font-size: 1em;
}

.login-box .hint {
    font-size: 0.9em;
    color: var(--text-light);
    margin-top: 10px;
    text-align: center;
}

.admin-panel {
    padding: 40px 0;
}

.admin-section {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.admin-section h2 {
    color: var(--text-dark);
    margin-bottom: 20px;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.form-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.form-group input,
.form-group select {
    flex: 1;
    min-width: 200px;
    padding: 10px;
    border: 2px solid var(--secondary-color);
    border-radius: var(--border-radius);
    font-size: 1em;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 2px solid var(--secondary-color);
    border-radius: var(--border-radius);
    font-size: 1em;
}

.items-list {
    margin-top: 20px;
}

.item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--bg-light);
    margin-bottom: 10px;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.item-row:hover {
    background: var(--secondary-color);
}

.item-info {
    flex: 1;
}

.item-actions {
    display: flex;
    gap: 10px;
}

.item-actions button {
    padding: 8px 15px;
    font-size: 0.9em;
}

/* ========================================
   Order Page
   ======================================== */
.order-header {
    background: var(--primary-color);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
    box-shadow: var(--shadow);
}

.order-content {
    padding: 40px 0;
}

.order-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.menu-selection {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.category-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
}

.category-tab {
    padding: 10px 20px;
    background: var(--bg-light);
    border: none;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    cursor: pointer;
    transition: var(--transition);
    font-weight: bold;
}

.category-tab.active {
    background: var(--primary-color);
    color: var(--white);
}

.category-tab:hover {
    background: var(--accent-color);
    color: var(--white);
}

.order-menu-grid {
    display: grid;
    gap: 15px;
}

.order-menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.order-menu-item:hover {
    background: var(--secondary-color);
}

.item-details {
    flex: 1;
}

.item-details h4 {
    color: var(--text-dark);
    margin-bottom: 5px;
}

.item-details .price {
    color: var(--accent-color);
    font-weight: bold;
}

.add-to-cart {
    padding: 8px 20px;
    background: var(--accent-color);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: bold;
}

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

.order-cart {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    position: sticky;
    top: 20px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.cart-items {
    min-height: 200px;
    margin-bottom: 20px;
}

.empty-cart {
    text-align: center;
    color: var(--text-light);
    padding: 40px 0;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: var(--bg-light);
    margin-bottom: 10px;
    border-radius: var(--border-radius);
}

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

.cart-item-name {
    font-weight: bold;
    color: var(--text-dark);
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transition);
}

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

.cart-item-qty {
    min-width: 30px;
    text-align: center;
    font-weight: bold;
}

.cart-item-price {
    min-width: 60px;
    text-align: left;
    font-weight: bold;
    color: var(--accent-color);
}

.remove-btn {
    background: var(--white);
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    padding: 5px;
    transition: var(--transition);
}

.remove-btn:hover {
    color: #d9534f;
}

.cart-summary {
    border-top: 2px solid var(--secondary-color);
    padding-top: 15px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.summary-row.total {
    font-size: 1.3em;
    font-weight: bold;
    color: var(--accent-color);
    border-top: 2px solid var(--primary-color);
    padding-top: 10px;
    margin-top: 10px;
}

.payment-placeholder {
    background: #fffbea;
    border: 2px dashed var(--secondary-color);
    padding: 15px;
    border-radius: var(--border-radius);
    margin: 15px 0;
    text-align: center;
}

.info-text {
    color: var(--text-light);
    font-size: 0.9em;
    margin: 0;
}

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

.customer-form h3 {
    color: var(--text-dark);
    margin-bottom: 15px;
}

.customer-form input,
.customer-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid var(--secondary-color);
    border-radius: var(--border-radius);
    font-size: 1em;
    font-family: inherit;
}

.customer-form input:focus,
.customer-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 168, 136, 0.1);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
    margin-top: 60px;
}

.social-links {
    margin-top: 15px;
}

.social-icon {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.social-icon:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
    .brand-name {
        font-size: 2em;
    }
    
    .logo {
        width: 80px;
        height: 80px;
    }
    
    .contact-info {
        flex-direction: column;
        gap: 15px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .order-layout {
        grid-template-columns: 1fr;
    }
    
    .order-cart {
        position: static;
        max-height: none;
    }
    
    .search-filter {
        flex-direction: column;
    }
    
    #searchInput {
        min-width: 100%;
    }
    
    .form-group {
        flex-direction: column;
    }
    
    .form-group input,
    .form-group select {
        min-width: 100%;
    }
    
    .language-switcher {
        top: 10px;
        left: 10px;
    }
}

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

.menu-item,
.order-menu-item,
.cart-item {
    animation: fadeIn 0.3s ease;
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .language-switcher,
    .cta-buttons,
    .admin-nav,
    .add-to-cart,
    .customer-form button {
        display: none;
    }
}

