.chat-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.chat-box {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.5rem;
    background: var(--background-color);
}

#result {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    margin-bottom: 1.5rem;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
    line-height: 1.6;
    border: 1px solid var(--border-color);
}
.input-container {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

#message-input {
    flex: 1;
    padding: 0.75rem 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
    background: var(--card-bg);
    color: var(--text-color);
}

#message-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.message {
    margin-bottom: 1.25rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    max-width: 85%;
    line-height: 1.6;
    position: relative;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.user-message {
    background: var(--primary-color);
    color: #000;
    margin-left: auto;
    margin-right: 0.75rem;
    border-radius: 1rem 0.25rem 0.25rem 1rem;
    font-weight: 500;
}

.user-message:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(45, 213, 7, 0.2);
}

.bot-message {
    background: var(--card-bg);
    color: var(--text-color);
    margin-right: auto;
    margin-left: 0.75rem;
    border-radius: 0.25rem 1rem 1rem 0.25rem;
    border-left: 3px solid var(--primary-color);
}

.bot-message:hover {
    background: rgba(255, 255, 255, 0.03);
}

.typing-indicator {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--card-bg);
    border-radius: 1rem;
    width: fit-content;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.4;
    animation: typing 1s infinite;
}

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

@keyframes typing {
    0%, 100% { opacity: 0.4; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-3px); }
}

@media (max-width: 768px) {
    .chat-container {
        height: calc(100vh - 200px);
        border-radius: 0;
    }
    
    .message {
        max-width: 90%;
        font-size: 0.9rem;
    }
    
    .chat-box {
        padding: 1rem;
    }
    
    #result {
        padding: 0.75rem;
    }
}