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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #292828;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 20px;
}

.chat-container {
    width: 100%;
    max-width: 672px;
    height: 100%;
    max-height: 800px;
    display: flex;
    flex-direction: column;
    background: #292828;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.chat-header {
    background-color: #292828;
    color: white;
    padding: 1rem 1.5rem;
}

.chat-header h1 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.chat-header p {
    font-size: 0.875rem;
    color: #bfdbfe;
}

.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    display: flex;
    gap: 0.3rem;
}

.message.user {
    justify-content: flex-end;
}

.message.bot {
    justify-content: flex-start;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.avatar.bot {
    background-color: #2563eb;
}

.avatar.user {
    background-color: #9ca3af;
}

.avatar svg {
    width: 20px;
    height: 20px;
    color: white;
}

.message-bubble {
    max-width: 30%;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    overflow-wrap: break-word;
}

.message.user .message-bubble {
    background-color: #c4b50a;
    color: black;
}

.message.bot .message-bubble {
    background-color: #c4b50a;
    color: black;
}

.message-text {
    font-size: 0.875rem;
    line-height: 1.5;
}

.message-time {
    font-size: 0.75rem;
    opacity: 0.7;
    margin-top: 0.25rem;
    display: block;
}

.typing-indicator {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.typing-bubble {
    background-color: #c4b50a;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    display: flex;
    gap: 0.25rem;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background-color: #6b7280;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
}

.input-area {
    border-top: 1px solid #e5e7eb;
    padding: 1rem 1.5rem;
}

.input-container {
    display: flex;
    gap: 0.5rem;
    position: relative;
}

.input-field {
    flex: 1;
    padding-right: 50px;
    padding-left: 15px;
    border: 1px solid #d1d5db;
    border-radius: 30px;
    font-size: 1rem;
    outline: none;
    height: 44px;
}

.input-field:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.send-button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background-color: transparent;
    color: grey;
    border: none;
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.send-button:disabled {
    cursor: not-allowed;
}

.send-button svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .input-field {
        height: 48px;
        padding-right: 52px;
        font-size: 16px;
    }
    
    .send-button {
        width: 44px;
        height: 44px;
        right: 6px;
    }
    
    .send-button svg {
        width: 22px;
        height: 22px;
    }
    
    .message-bubble {
        max-width: 85% !important;
    }
}