:root {
    --primary-color: #0c4ad0;
    --primary-light: #e0eaff;
    --bg-color: #f5f7fb;
    --text-color: #2e3a59;
    --assistant-msg-bg: #ffffff;
    --user-msg-bg: #0c4ad0;
    --user-msg-text: #ffffff;
    --border-radius: 20px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-container {
    width: 100%;
    max-width: 500px;
    height: 90vh;
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

header {
    padding: 24px;
    background: #ffffff;
    border-bottom: 1px solid #edf1f7;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 24px;
    background: var(--primary-light);
    width: 44px;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
}

.logo-text h1 {
    font-size: 18px;
    font-weight: 700;
}

.logo-text p {
    font-size: 12px;
    color: #8f9bb3;
}

.model-badge {
    font-size: 11px;
    font-weight: 600;
    background: #e4f9f1;
    color: #28a745;
    padding: 4px 10px;
    border-radius: 100px;
}

.chat-container {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    scroll-behavior: smooth;
}

.chat-container::-webkit-scrollbar {
    width: 6px;
}

.chat-container::-webkit-scrollbar-thumb {
    background: #e4e9f2;
    border-radius: 10px;
}

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

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

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

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

.avatar {
    width: 36px;
    height: 36px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    flex-shrink: 0;
}

.message.user .avatar {
    background: #f0f0f0;
}

.text-content {
    padding: 14px 18px;
    border-radius: var(--border-radius);
    line-height: 1.5;
    font-size: 14px;
}

.message.assistant .text-content {
    background: #f1f5f9;
    color: var(--text-color);
    border-bottom-left-radius: 4px;
}

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

.disclaimer-text {
    font-size: 11px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0,0,0,0.05);
    color: #64748b;
    font-style: italic;
}

.input-section {
    padding: 24px;
    background: #ffffff;
    border-top: 1px solid #edf1f7;
}

.disclaimer-banner {
    background: #fff9e6;
    color: #856404;
    font-size: 11px;
    padding: 8px 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    text-align: center;
}

.chat-form {
    display: flex;
    gap: 12px;
    background: #f8fafc;
    padding: 8px;
    border-radius: 100px;
    border: 1px solid #e2e8f0;
}

.chat-form input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 10px 16px;
    font-size: 15px;
    font-family: inherit;
}

.chat-form button {
    width: 44px;
    height: 44px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s;
}

.chat-form button:hover {
    transform: scale(1.05);
}

.chat-form button:active {
    transform: scale(0.95);
}

.typing-indicator {
    font-size: 12px;
    color: #8f9bb3;
    padding: 4px 12px;
    font-style: italic;
    display: none;
}
