/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background-image: url('/marble-background.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    color: #000;
    line-height: 1.6;
}

#main-content {
    min-height: 100vh;
    backdrop-filter: brightness(1.01);
    background-color: rgba(255, 255, 255, 0.02);
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.glass-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem;
    position: relative;
    z-index: 10;
}

.page-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 3rem;
    color: #000;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.3);
}

/* Modern Navigation */
.modern-navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Brand/Logo Section */
.navbar-brand {
    display: flex;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.brand-link:hover {
    transform: scale(1.02);
}

.brand-logo {
    height: 3.5rem;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.1));
    transition: filter 0.3s ease;
}

.brand-logo:hover {
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c2c2c;
    letter-spacing: -0.02em;
}

.brand-subtitle {
    font-size: 0.9rem;
    font-weight: 400;
    color: #8b5a3c;
    letter-spacing: 0.05em;
    margin-top: -2px;
}

/* Desktop Navigation */
.navbar-menu {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    text-decoration: none;
    color: #6b6b6b;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item:hover {
    color: #2c2c2c;
    background: rgba(44, 44, 44, 0.05);
    transform: translateY(-1px);
}

.nav-item.active {
    color: #2c2c2c;
    background: rgba(44, 44, 44, 0.08);
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: -0.25rem;
    left: 50%;
    transform: translateX(-50%);
    width: 0.5rem;
    height: 0.5rem;
    background: #8b5a3c;
    border-radius: 50%;
}

.nav-icon {
    font-size: 1rem;
    line-height: 1;
}

/* Action Buttons */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.login-btn {
    color: #6b6b6b;
    background: transparent;
    border-color: rgba(107, 107, 107, 0.2);
}

.login-btn:hover {
    color: #2c2c2c;
    background: rgba(44, 44, 44, 0.05);
    border-color: rgba(44, 44, 44, 0.2);
    transform: translateY(-1px);
}

.register-btn {
    color: #8b5a3c;
    background: rgba(139, 90, 60, 0.1);
    border-color: rgba(139, 90, 60, 0.2);
}

.register-btn:hover {
    color: #6d4530;
    background: rgba(139, 90, 60, 0.15);
    border-color: rgba(139, 90, 60, 0.3);
    transform: translateY(-1px);
}

.order-btn {
    color: white;
    background: linear-gradient(135deg, #8b5a3c 0%, #a0674a 100%);
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(139, 90, 60, 0.3);
}

.order-btn:hover {
    background: linear-gradient(135deg, #6d4530 0%, #8b5a3c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 90, 60, 0.4);
}

.btn-icon {
    font-size: 1rem;
    line-height: 1;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.mobile-toggle:hover {
    background: rgba(44, 44, 44, 0.05);
}

.toggle-line {
    width: 24px;
    height: 2px;
    background: #2c2c2c;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-toggle.active .toggle-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active .toggle-line:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active .toggle-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Menu */
.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transform: translateY(-20px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav-links {
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    text-decoration: none;
    color: #6b6b6b;
    font-weight: 500;
    transition: all 0.3s ease;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    color: #2c2c2c;
    background: rgba(44, 44, 44, 0.05);
}

.mobile-order-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    margin-top: 1rem;
    border-radius: 12px;
    text-decoration: none;
    color: white;
    background: linear-gradient(135deg, #8b5a3c 0%, #a0674a 100%);
    font-weight: 600;
    transition: all 0.3s ease;
}

.mobile-order-btn:hover {
    background: linear-gradient(135deg, #6d4530 0%, #8b5a3c 100%);
    transform: translateY(-1px);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: #2c2c2c;
    color: #faf9f7;
    border: 2px solid #2c2c2c;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.btn-primary:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: #000;
    border: 2px solid #000;
}

.btn-outline:hover {
    background: #f5f5f5;
}

.btn-full {
    width: 100%;
}

/* Pages */
.page {
    display: none;
    min-height: calc(100vh - 80px);
}

.page.active {
    display: block;
}

/* Home Page */
.home-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.home-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.home-title {
    font-size: 3rem;
    font-weight: bold;
    color: #000;
    line-height: 1.2;
}

.home-description {
    font-size: 1.25rem;
    color: #666;
}

.home-buttons {
    display: flex;
    gap: 1rem;
}

.home-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.image-background {
    position: absolute;
    width: 90%;
    height: 90%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.5), rgba(254, 243, 199, 0.5));
    filter: blur(2rem);
}

.image-container {
    position: relative;
    width: 100%;
    max-width: 24rem;
    aspect-ratio: 1;
    border-radius: 50%;
    padding: 0.75rem;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(255, 255, 255, 0.3));
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 8px solid rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Menu Page */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.menu-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.5s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.menu-card:hover {
    transform: scale(1.01);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.menu-image {
    aspect-ratio: 1;
    overflow: hidden;
}

.menu-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.menu-card:hover .menu-image img {
    transform: scale(1.05);
}

.menu-content {
    padding: 1.5rem;
}

.menu-content h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: #000;
    margin-bottom: 0.5rem;
}

.menu-content p {
    color: #666;
    margin-bottom: 0.25rem;
}

.menu-size {
    font-size: 0.875rem;
    color: #999;
}

/* Branches Page */
.branches-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.map-container {
    height: 600px;
    border-radius: 0.75rem;
    overflow: hidden;
}

#map {
    height: 100%;
    width: 100%;
}

.branches-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.branch-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.5s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.branch-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.branch-card h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: #000;
    margin-bottom: 0.5rem;
}

.branch-card p {
    color: #666;
    margin-bottom: 1rem;
}

.delivery-links {
    display: flex;
    gap: 1.5rem;
}

.delivery-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    background: white;
    border-radius: 50%;
    transition: background-color 0.3s ease;
    padding: 0.75rem;
}

.delivery-link:hover {
    background: #f5f5f5;
}

.delivery-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Login/Register Pages */
.login-container {
    min-height: 100vh;
    display: flex;
}

.login-form-section {
    width: 50%;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-form-container {
    width: 100%;
    max-width: 28rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.login-title {
    font-size: 1.875rem;
    font-weight: bold;
    color: #000;
}

.login-subtitle {
    color: #666;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #666;
}

.form-group input {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #666;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: #000;
}

.forgot-password {
    font-size: 0.875rem;
    color: #000;
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover {
    color: #333;
}

.login-image-section {
    width: 50%;
    position: relative;
}

.login-image-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.5), rgba(254, 243, 199, 0.5));
}

.login-image-container {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.login-image {
    width: 100%;
    max-width: 32rem;
    aspect-ratio: 1;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

/* Dashboard Page */
.dashboard-container {
    min-height: 100vh;
    background: white;
    padding: 2rem;
}

.dashboard-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.dashboard-content {
    color: #666;
}

/* Toast Container */
.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    min-width: 300px;
    animation: slideIn 0.3s ease;
    cursor: pointer;
}

.toast.success {
    border-left: 4px solid #10b981;
}

.toast.error {
    border-left: 4px solid #ef4444;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.toast-description {
    color: #666;
    font-size: 0.875rem;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .home-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .branches-grid {
        grid-template-columns: 1fr;
    }
    
    .login-container {
        flex-direction: column;
    }
    
    .login-form-section,
    .login-image-section {
        width: 100%;
    }
    
    .login-image-section {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .navbar-menu {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .navbar-container {
        padding: 1rem;
    }
    
    .brand-logo {
        height: 3rem;
    }
    
    .brand-title {
        font-size: 1.25rem;
    }
    
    .brand-subtitle {
        font-size: 0.8rem;
    }
    
    .home-title {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .content-container {
        padding: 2rem 1rem;
    }
    
    .login-form-section {
        padding: 2rem 1rem;
    }
    
    .home-buttons {
        flex-direction: column;
    }
    
    .delivery-links {
        flex-wrap: wrap;
    }
    
    .map-container {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .navbar-container {
        padding: 0.75rem 1rem;
    }
    
    .brand-title {
        font-size: 1.1rem;
    }
    
    .brand-subtitle {
        font-size: 0.75rem;
    }
    
    .brand-logo {
        height: 2.5rem;
    }
    
    .home-title {
        font-size: 1.75rem;
    }
    
    .page-title {
        font-size: 1.75rem;
    }
    
    .login-title {
        font-size: 1.5rem;
    }
    
    .toast {
        min-width: 250px;
        margin: 0 1rem;
    }
    
    .delivery-link {
        width: 3rem;
        height: 3rem;
    }
}

/* Footer */
.site-footer {
    width: 100%;
    text-align: center;
    padding: 1.25rem 0;
    font-size: 0.875rem;
    color: #6b6b6b;
    background: transparent;
}

.veronika {
    font-weight: 700;
    color: #8b5a3c;
    letter-spacing: 0.05em;
} 