/* web/css/chat.css */

div.chat-header {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    background-color: #419fd9;
    color: white;
    font-weight: bold;
}

div.chat-container {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.chat-view {
    max-width: 1200px;
    margin: 0 auto;
}

.chat-view h1 {
    margin: 0;
}

div.topics-nav {
    margin-bottom: 15px;
}

div.chat-index {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow-x: hidden;
    overflow-y: auto;
    background: #fff;
}

div.chat-index h1 {
    text-align: center;
    font-weight: bold;
    border-bottom: #dc3545 2px solid;
}

button.load-chat {
    width: 100%;
    text-align: left;
    padding: 10px 15px;
    border: none;
    background: none;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

button.load-chat.active {
    background-color: #e9ecef;
}

.messages-container {
    scroll-behavior: smooth;
    height: 500px;
    overflow-y: auto;
    padding: 15px;
    background: #e5ddd5;
}

.messages-container::-webkit-scrollbar {
    width: 8px;
}

.messages-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.messages-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.messages-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.message {
    animation: slideIn 0.3s ease-out;
    margin-bottom: 10px;
    display: flex;
}

div.message-input-container {
    border-top: 1px solid #ddd;
    padding: 15px;
    background: #f0f0f0;
}

#status-message {
    margin-top: 5px;
    font-size: 0.9em;
}

button.send-button {
    border-radius: 10px;
    padding: 10px 25px;
    background-color: #419fd9;
}

button.send-button:hover {
    background-color: #357ebd;
}

#message-text {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 20px;
    resize: none;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#message-text:focus {
    outline: none;
    border-color: #075e54;
}

#send-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.status-sending {
    color: #007bff;
}

.status-success {
    color: #28a745;
}

.status-error {
    color: #dc3545;
}