/* Chatbot Widget Styles */
.ai-chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    font-family: 'Inter', sans-serif;
}

.chat-toggle-btn {
    width: 60px;
    height: 60px;
    background: var(--accent-color, #66fcf1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 20px rgba(102, 252, 241, 0.4);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chat-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(102, 252, 241, 0.6);
}

.chat-icon {
    font-size: 30px;
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 450px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.chat-window.hidden {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}

.chat-header {
    background: rgba(11, 12, 16, 0.9);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color, rgba(102, 252, 241, 0.15));
}

.chat-header h3 {
    font-size: 1rem;
    margin: 0;
    color: var(--text-primary, #fff);
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary, #c5c6c7);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--accent-color, #66fcf1);
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: rgba(31, 40, 51, 0.3);
}

/* Custom Scrollbar for chat */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}
.chat-messages::-webkit-scrollbar-thumb {
    background: var(--border-color, rgba(102, 252, 241, 0.15));
    border-radius: 3px;
}

.message {
    max-width: 85%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.95rem;
    line-height: 1.4;
    animation: slideIn 0.3s ease;
}

.ai-message {
    align-self: flex-start;
    background: rgba(43, 56, 71, 0.8);
    color: var(--text-primary, #fff);
    border-bottom-left-radius: 2px;
}

.user-message {
    align-self: flex-end;
    background: var(--primary-color, #45a29e);
    color: #fff;
    border-bottom-right-radius: 2px;
}

.chat-input-area {
    display: flex;
    padding: 15px;
    background: rgba(11, 12, 16, 0.9);
    border-top: 1px solid var(--border-color, rgba(102, 252, 241, 0.15));
}

#chat-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary, #fff);
    outline: none;
    font-family: inherit;
    font-size: 0.95rem;
}

#chat-input::placeholder {
    color: var(--text-secondary, #c5c6c7);
}

.send-btn {
    background: transparent;
    border: none;
    color: var(--accent-color, #66fcf1);
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 10px;
    transition: transform 0.2s ease;
}

.send-btn:hover {
    transform: scale(1.1) translateX(2px);
}

.typing-indicator {
    font-size: 0.85rem;
    color: var(--text-secondary, #c5c6c7);
    font-style: italic;
    margin-left: 10px;
    animation: fadeIn 0.3s ease;
}

.typing-dots::after {
    content: '';
    animation: dots 1.5s infinite steps(4, end);
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@media (max-width: 480px) {
    .chat-window {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        bottom: 0;
    }
}
