/* ================================================
   ASSISTANT PAGE STYLES
   ================================================ */

.assistant-header {
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

.assistant-header h1 {
    font-size: 2rem;
    color: var(--clr-text);
    margin-bottom: 0.5rem;
}

.assistant-header p {
    color: var(--clr-text-muted);
    font-size: 1.1rem;
}

.chat-wrapper {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.chat-container {
    width: 100%;
    max-width: 600px;
    height: 600px;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 24px rgba(14, 165, 233, 0.15);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: var(--clr-bg);
}

.chat-messages::-webkit-scrollbar-thumb {
    background: var(--clr-border);
    border-radius: 3px;
}

.message {
    display: flex;
    gap: 0.75rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message.user {
    justify-content: flex-start;
}

.message.assistant {
    justify-content: flex-end;
}

.message-bubble {
    max-width: 75%;
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius-lg);
    word-wrap: break-word;
    line-height: 1.5;
    font-size: 0.95rem;
}

.message.user .message-bubble {
    background: var(--clr-primary);
    color: white;
    border-bottom-left-radius: 4px;
}

.message.assistant .message-bubble {
    background: var(--clr-bg);
    color: var(--clr-text);
    border: 1px solid var(--clr-border);
    border-bottom-right-radius: 4px;
}

.chat-input {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    border-top: 1px solid var(--clr-border);
    background: var(--clr-surface);
}

.chat-input input {
    flex: 1;
    background: var(--clr-bg);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    color: var(--clr-text);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.chat-input input:focus {
    outline: none;
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.btn-send {
    padding: 0.75rem 1.5rem;
    background: var(--clr-primary);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-primary);
    transition: all var(--transition-fast);
}

.btn-send:hover {
    background: #0284c7;
    transform: translateY(-2px);
}

.btn-send:active {
    transform: translateY(0);
}

.btn-voice {
    padding: 0.75rem 1rem;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 1.2rem;
    transition: all var(--transition-fast);
}

.btn-voice:hover {
    border-color: var(--clr-accent);
}

.loading-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
}

.loading-dots {
    display: flex;
    gap: 3px;
}

.loading-dots span {
    width: 6px;
    height: 6px;
    background: var(--clr-primary);
    border-radius: 50%;
    animation: bounce 1.4s infinite;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 80%, 100% {
        opacity: 0.3;
        transform: translateY(0);
    }
    40% {
        opacity: 1;
        transform: translateY(-8px);
    }
}

.suggestion-chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding: 1rem 0;
}

.chip {
    padding: 0.5rem 1rem;
    background: var(--clr-bg);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.85rem;
}

.chip:hover {
    background: var(--clr-primary);
    border-color: var(--clr-primary);
    color: white;
}

/* ================================================
   RESPONSIVE ADJUSTMENTS
   ================================================ */

@media (max-width: 768px) {
    .assistant-header {
        padding: 1.5rem 0;
    }
    
    .assistant-header h1 {
        font-size: 1.5rem;
    }
    
    .chat-container {
        max-width: 100%;
        height: 500px;
    }
    
    .message-bubble {
        max-width: 90%;
    }
    
    .chat-messages {
        padding: 1rem;
    }
}