/* =================================================================
   AI CHATBOT WIDGET STYLES
   ================================================================= */
.chatbot-widget-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.chat-trigger-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #06b6d4, #a855f7);
    border: 2px solid #fff;
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.chat-trigger-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.8);
}

.chat-window {
    width: 360px;
    height: 520px;
    background: rgba(10, 10, 20, 0.95);
    border: 1px solid rgba(6, 182, 212, 0.5);
    border-radius: 16px;
    margin-bottom: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.chat-header {
    background: linear-gradient(90deg, rgba(6, 182, 212, 0.2), rgba(168, 85, 247, 0.2));
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-title {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    color: #06b6d4;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Chat Header Controls (Lang + Voice + Close) */
.chat-header-controls {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(6, 182, 212, 0.3);
    gap: 8px;
}

.chat-lang-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    cursor: pointer;
    transition: color 0.2s;
}
.chat-lang-btn:hover { color: #f59e0b; }

.chat-divider {
    width: 1px;
    height: 16px;
    background: rgba(6, 182, 212, 0.3);
}

.chat-voice-btn {
    background: transparent;
    border: none;
    color: #a855f7;
    font-size: 1.15rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
}
.chat-voice-btn:hover, .chat-voice-btn.active {
    color: #06b6d4;
    transform: scale(1.15);
    text-shadow: 0 0 10px #06b6d4;
}

.chat-close-btn {
    background: transparent;
    border: none;
    color: #9ca3af;
    font-size: 1.4rem;
    cursor: pointer;
    margin-left: 5px;
    transition: color 0.2s;
}
.chat-close-btn:hover { color: #f43f5e; }

.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-body::-webkit-scrollbar { width: 4px; }
.chat-body::-webkit-scrollbar-thumb { background: #a855f7; border-radius: 4px; }

.chat-message {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
    line-height: 1.5;
}

.bot-msg {
    background: rgba(6, 182, 212, 0.15);
    border-left: 2px solid #06b6d4;
    color: #e5e7eb;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.user-msg {
    background: rgba(168, 85, 247, 0.2);
    border-right: 2px solid #a855f7;
    color: #fff;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-input-area {
    padding: 12px;
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    gap: 8px;
    align-items: center;
}

#chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 10px 15px;
    color: #fff;
    font-size: 0.85rem;
    outline: none;
}
#chat-input:focus { border-color: #06b6d4; }

.chat-action-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    transition: all 0.2s;
}

.chat-action-btn.send { background: #06b6d4; font-size: 1rem; }
.chat-action-btn.send:hover { background: #a855f7; }

/* Mobile View Adjustments */
@media (max-width: 768px) {
    .chatbot-widget-container { bottom: 20px; right: 20px; }
    .chat-window { width: 90vw; height: 65vh; right: 0; }
}
