:root {
    --primary-color: #1a365d;
    --primary-light: #2c5282;
    --accent-color: #f59e0b;
    --accent-hover: #d97706;
    --bg-color: #f3f4f6;
    --text-color: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
    --border-color: #e5e7eb;
    --chat-bg: #ffffff;
    --user-msg-bg: #1a365d;
    --user-msg-text: #ffffff;
    --bot-msg-bg: #f3f4f6;
    --bot-msg-text: #1f2937;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    height: 100vh;
    overflow: hidden;
}

.container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* Left Panel - Info & Branding */
.info-panel {
    width: 40%;
    background-color: var(--white);
    padding: 2rem;
    overflow-y: auto;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.logo-icon {
    font-size: 2rem;
    color: var(--primary-color);
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.hero-section h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero-section p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.6;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.menu-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.menu-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.menu-card i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
    display: block;
}

.menu-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.featured-deals {
    margin-top: auto;
}

.featured-deals h2 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.deal-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scrollbar-width: thin;
}

.deal-card {
    min-width: 200px;
    background: var(--bg-color);
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.deal-card .price {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.1rem;
}

.deal-card .old-price {
    text-decoration: line-through;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

/* Right Panel - Chat Interface */
.chat-panel {
    width: 60%;
    background-color: var(--chat-bg);
    display: flex;
    flex-direction: column;
    position: relative;
}

.chat-header {
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--white);
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

.status-dot {
    width: 10px;
    height: 10px;
    background-color: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    background: none;
    border: 1px solid var(--border-color);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

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

.chat-messages {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    scroll-behavior: smooth;
}

.message {
    max-width: 80%;
    padding: 1rem;
    border-radius: 1rem;
    line-height: 1.5;
    position: relative;
    animation: fadeIn 0.3s ease;
}

.message.bot {
    background-color: var(--bot-msg-bg);
    color: var(--bot-msg-text);
    align-self: flex-start;
    border-bottom-left-radius: 0.25rem;
}

.message.user {
    background-color: var(--user-msg-bg);
    color: var(--user-msg-text);
    align-self: flex-end;
    border-bottom-right-radius: 0.25rem;
}

.typing-indicator {
    display: none;
    align-self: flex-start;
    background-color: var(--bot-msg-bg);
    padding: 1rem;
    border-radius: 1rem;
    border-bottom-left-radius: 0.25rem;
    margin-bottom: 1rem;
}

.typing-dots {
    display: flex;
    gap: 0.3rem;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background-color: var(--text-light);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.typing-dots span:nth-child(2) { animation-delay: -0.16s; }

.chat-input-area {
    padding: 1.5rem 2rem;
    background: var(--white);
    border-top: 1px solid var(--border-color);
}

.input-wrapper {
    display: flex;
    gap: 1rem;
    background: var(--bg-color);
    padding: 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.input-wrapper:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(26, 54, 93, 0.1);
}

#chat-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.5rem;
    font-size: 1rem;
    outline: none;
    font-family: inherit;
}

#send-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background 0.2s;
}

#send-btn:hover {
    background-color: var(--primary-light);
}

#send-btn:disabled {
    background-color: var(--text-light);
    cursor: not-allowed;
}

/* Cookie Consent */
.cookie-banner {
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    width: 250px;
    background-color: rgba(31, 41, 55, 0.95);
    color: var(--white);
    padding: 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cookie-btn {
    background-color: var(--accent-color);
    color: var(--white);
    border: none;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    align-self: flex-end;
    font-size: 0.8rem;
}

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

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .info-panel {
        width: 100%;
        height: 35vh;
        padding: 1rem;
        gap: 1rem;
    }

    .hero-section h1 {
        font-size: 1.5rem;
    }

    .menu-grid {
        grid-template-columns: repeat(4, 1fr);
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .menu-card {
        min-width: 80px;
        padding: 0.5rem;
    }

    .menu-card i {
        font-size: 1.2rem;
    }

    .menu-card h3 {
        font-size: 0.8rem;
    }

    .featured-deals {
        display: none; /* Hide deals on mobile to save space */
    }

    .chat-panel {
        width: 100%;
        height: 65vh;
    }

    .chat-messages {
        padding: 1rem;
    }

    .chat-input-area {
        padding: 1rem;
    }
}
