/* Custom styles that can't be handled by Tailwind */
.chat-container {
    scrollbar-width: thin;
    scrollbar-color: #3b82f6 #f1f1f1;
}

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

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

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

/* Animation for chat messages */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-message {
    animation: fadeIn 0.3s ease-out;
}

/* Status indicator */
.status-indicator {
    position: relative;
    padding-left: 1.5rem;
}

.status-indicator::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #10b981; /* Green by default */
}

.status-indicator.offline::before {
    background-color: #ef4444; /* Red for offline */
}

.status-indicator.loading::before {
    background-color: #f59e0b; /* Yellow for loading */
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}