/* Voice Chatbot Styles */
.chatbot-toggle-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #00d4ff 0%, #0ea5e9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    border: none;
}

.chatbot-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.6);
}

.chatbot-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 400px;
    max-width: calc(100vw - 40px);
    height: 600px;
    max-height: calc(100vh - 120px);
    background: var(--primary-dark);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    z-index: 999;
    border: 2px solid var(--neon-blue);
    overflow: hidden;
}

.chatbot-container.open {
    display: flex;
}

.chatbot-header {
    background: var(--secondary-dark);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--neon-blue);
}

.chatbot-header h3 {
    color: var(--neon-blue);
    font-family: var(--font-display);
    font-size: 18px;
    margin: 0;
}

.chatbot-controls {
    display: flex;
    gap: 10px;
    align-items: center;
}

.voice-toggle-btn, .close-btn {
    background: transparent;
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.voice-toggle-btn:hover, .close-btn:hover {
    background: var(--neon-blue);
    color: var(--primary-dark);
}

.close-btn {
    font-size: 24px;
    line-height: 1;
}

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: var(--primary-dark);
}

.chatbot-message {
    display: flex;
    animation: slideIn 0.3s ease;
}

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

.chatbot-message.user-message {
    justify-content: flex-end;
}

.chatbot-message.bot-message {
    justify-content: flex-start;
}

.chatbot-message.temporary {
    opacity: 0.6;
    font-style: italic;
}

.message-content {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: 12px;
    word-wrap: break-word;
    line-height: 1.5;
}

.user-message .message-content {
    background: var(--neon-blue);
    color: var(--primary-dark);
    border-bottom-right-radius: 4px;
}

.bot-message .message-content {
    background: var(--secondary-dark);
    color: var(--white);
    border: 1px solid var(--neon-blue);
    border-bottom-left-radius: 4px;
}

.chatbot-input-area {
    display: flex;
    padding: 15px;
    background: var(--secondary-dark);
    border-top: 1px solid var(--neon-blue);
    gap: 10px;
    align-items: center;
}

#chatbot-input {
    flex: 1;
    background: var(--primary-dark);
    border: 1px solid var(--neon-blue);
    color: var(--white);
    padding: 10px 15px;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 14px;
}

#chatbot-input:focus {
    outline: none;
    border-color: var(--neon-blue-light);
    box-shadow: 0 0 0 2px rgba(0, 212, 255, 0.2);
}

.mic-button, .send-button {
    background: var(--neon-blue);
    color: var(--primary-dark);
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
    min-width: 45px;
}

.mic-button:hover, .send-button:hover {
    background: var(--neon-blue-light);
    transform: scale(1.05);
}

.mic-button:active, .send-button:active {
    transform: scale(0.95);
}

/* Scrollbar styling */
.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: var(--primary-dark);
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: var(--neon-blue);
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: var(--neon-blue-light);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .chatbot-container {
        width: calc(100vw - 20px);
        right: 10px;
        bottom: 80px;
        height: calc(100vh - 100px);
    }
    
    .chatbot-toggle-btn {
        bottom: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}
