.chat-container {
    height: 500px;
    overflow-y: auto;
    background-color: #f8f9fa;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 15px;
    margin: 5px 0;
    word-wrap: break-word;
    position: relative;
}

.user-message {
    align-self: flex-end;
    background-color: #007bff;
    color: white;
}

.agent-message {
    align-self: flex-start;
    background-color: white;
    color: #212529;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    background-color: white;
    border-radius: 15px;
    width: fit-content;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.typing-dot {
    width: 8px;
    height: 8px;
    background-color: #6c757d;
    border-radius: 50%;
    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% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

input:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
}

.card {
    border: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.card-header {
    border-bottom: none;
    background-color: #4a90e2 !important;
}

.form-control:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
}

.btn-primary {
    background-color: #4a90e2;
    border-color: #4a90e2;
}

.btn-primary:hover {
    background-color: #357abd;
    border-color: #357abd;
}