/**
 * Chat Conversation Styles
 * Styles for text-based conversation interface
 * Note: chat-bubbles.css must be loaded before this file
 */

.chat-container {
    min-height: 500px;
    max-height: 600px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    background: #f9fafb;
}

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

.chat-input {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.75rem;
    resize: none;
}

.chat-controls {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

/* Mobile: Fixed input at bottom with scrollable chat */
#chat-input-area {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    border-top: 1px solid #dee2e6;
}

#chat-wrapper {
    padding-bottom: 250px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overflow-y: scroll !important;
}

/* Timer sticky on mobile */
#chat-wrapper .position-sticky {
    z-index: 5;
}

/* Desktop: Normal flow layout */
@media (min-width: 1400px) {
    #chat-input-area {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        border-top: none;
    }
    
    #chat-wrapper {
        padding-bottom: 0;
    }
}

/* Typing Indicator Animation */
.typing-indicator .message-content {
    padding: 0.75rem 1rem;
}

.typing-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #9ca3af;
    margin: 0 2px;
    animation: typing 1.4s infinite;
}

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

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

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}
