:root {
    --bg-cream: #F4F1EB;
    --text-dark: #2C402E;
    --accent-green: #4E684C;
    --white: #FFFFFF;
    
    --user-msg-bg: #2C402E;
    --user-msg-text: #F4F1EB;
    --bot-msg-bg: #FFFFFF;
    --bot-msg-text: #2C402E;
    --border-color: #DFDAC9;

    --font-sans: 'Inter', sans-serif;
    --font-serif: 'Playfair Display', serif;
    --font-cursive: 'Dancing Script', cursive;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-cream);
    color: var(--text-dark);
    height: 100vh;
    overflow: hidden;
}

.app-layout {
    display: flex;
    height: 100vh;
    width: 100vw;
}

.left-pane {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(244, 241, 235, 0.95) 0%, rgba(244, 241, 235, 0.7) 100%);
    z-index: 2;
}

.branding-overlay {
    position: relative;
    z-index: 3;
    padding: 40px;
    max-width: 650px;
    text-align: center;
    color: var(--text-dark);
    animation: fadeIn 1s ease-out;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 25px;
}

.logo i {
    font-size: 2rem;
    color: var(--accent-green);
}

.logo-text {
    font-family: var(--font-sans);
    letter-spacing: 4px;
    font-size: 0.9rem;
    font-weight: 500;
}

.main-title {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    line-height: 1.2;
    margin-bottom: 15px;
    font-weight: 600;
}

.main-title span {
    font-size: 1.4rem;
    font-family: var(--font-sans);
    letter-spacing: 4px;
    font-weight: 400;
    display: block;
    margin-top: 5px;
}

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    color: var(--accent-green);
}

.divider::before, .divider::after {
    content: '';
    height: 1px;
    background-color: var(--text-dark);
    opacity: 0.3;
    width: 60px;
    margin: 0 15px;
}

.intro-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 20px 0;
    font-weight: 400;
}

.quote {
    font-family: var(--font-cursive);
    font-size: 2.4rem;
    line-height: 1.3;
    margin: 30px 0;
    color: var(--text-dark);
    text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
}

.signature {
    margin-bottom: 25px;
}

.signature h2 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.website-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--text-dark);
    color: var(--white);
    padding: 14px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: background-color 0.3s, transform 0.2s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.website-btn:hover {
    background-color: var(--accent-green);
    transform: translateY(-2px);
}

.right-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--white);
    box-shadow: -5px 0 25px rgba(0,0,0,0.05);
    z-index: 4;
}

.chat-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.chat-header {
    padding: 20px;
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    z-index: 10;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
}

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

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(72, 187, 120, 0.4); }
    70% { box-shadow: 0 0 0 8px rgba(72, 187, 120, 0); }
    100% { box-shadow: 0 0 0 0 rgba(72, 187, 120, 0); }
}

.chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    display: flex;
    flex-direction: column;
    background: var(--bg-cream);
    scroll-behavior: smooth;
}

.chat-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.message {
    display: flex;
    gap: 15px;
    max-width: 85%;
    animation: fadeIn 0.3s ease-in-out;
}

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

.message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message.assistant {
    align-self: flex-start;
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.message-content {
    padding: 16px 20px;
    border-radius: 22px;
    font-size: 1rem;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.message.assistant .message-content {
    background-color: var(--bot-msg-bg);
    color: var(--bot-msg-text);
    border-top-left-radius: 4px;
}

.message.user .message-content {
    background-color: var(--user-msg-bg);
    color: var(--user-msg-text);
    border-top-right-radius: 4px;
}

.typing-indicator {
    display: none;
    align-self: flex-start;
    background-color: var(--bot-msg-bg);
    padding: 14px 20px;
    border-radius: 22px;
    border-top-left-radius: 4px;
    margin-top: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.typing-indicator span {
    display: inline-block;
    width: 7px;
    height: 7px;
    background-color: var(--accent-green);
    border-radius: 50%;
    margin: 0 3px;
    animation: bounce 1.3s linear infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.15s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.3s; }

@keyframes bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-5px); }
}

.input-area {
    padding: 20px 30px;
    background-color: var(--white);
    border-top: 1px solid var(--border-color);
}

#chat-form {
    display: flex;
    gap: 15px;
    background-color: var(--bg-cream);
    border-radius: 35px;
    padding: 8px 8px 8px 25px;
    border: 1px solid transparent;
    transition: border-color 0.3s, background-color 0.3s;
}

#chat-form:focus-within {
    border-color: var(--accent-green);
    background-color: var(--white);
}

#user-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 1rem;
    color: var(--text-dark);
    font-family: inherit;
}

#send-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background-color: var(--text-dark);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background-color 0.2s, transform 0.1s;
}

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

#send-btn:active {
    transform: scale(0.95);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent-green); }

@media (max-width: 992px) {
    .app-layout {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
    }
    
    body {
        overflow-y: auto;
    }

    .left-pane {
        flex: none;
        padding: 30px 15px;
    }
    
    .overlay {
        background: linear-gradient(to bottom, rgba(244, 241, 235, 0.95) 0%, rgba(244, 241, 235, 0.85) 100%);
    }

    .branding-overlay {
        padding: 20px;
    }

    .main-title {
        font-size: 2.2rem;
    }
    
    .quote {
        font-size: 1.8rem;
    }

    .right-pane {
        flex: none;
        height: 70vh;
    }
    
    .chat-section {
        height: 100%;
    }
}
