/* FAQ Chatbot Styles - Professional Light Theme */

.chatbot-widget-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.chatbot-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #00e5ff;
    color: #0b1120;
    border: none;
    box-shadow: 0 8px 24px rgba(0, 229, 255, 0.3);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.chatbot-toggle-btn:hover {
    transform: scale(1.05);
    background: #00b8cc;
    box-shadow: 0 10px 28px rgba(0, 229, 255, 0.4);
}

.chatbot-toggle-btn svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 360px;
    height: 520px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chatbot-window.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.chatbot-header {
    background: #ffffff;
    border-bottom: 1px solid #f3f4f6;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-avatar {
    width: 38px;
    height: 38px;
    background: #00e5ff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #0b1120;
    font-weight: bold;
    font-size: 1.1rem;
}

.chatbot-title {
    color: #1f2937;
    font-weight: 600;
    font-size: 1.05rem;
    margin: 0;
    line-height: 1.2;
}

.chatbot-subtitle {
    color: #6b7280;
    font-size: 0.75rem;
    margin: 4px 0 0 0;
    font-weight: 500;
}

.chatbot-close-btn {
    background: transparent;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    transition: color 0.2s;
    padding: 4px;
    border-radius: 4px;
}

.chatbot-close-btn:hover {
    color: #4b5563;
    background: #f3f4f6;
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #f9fafb;
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.chat-msg {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 0.92rem;
    line-height: 1.5;
    animation: fadeInMsg 0.3s ease forwards;
    word-wrap: break-word;
}

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

.chat-msg.bot {
    align-self: flex-start;
    background: #ffffff;
    color: #374151;
    border-bottom-left-radius: 4px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.chat-msg.user {
    align-self: flex-end;
    background: #00e5ff;
    color: #0b1120;
    border-bottom-right-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 229, 255, 0.2);
}

.chat-options-container {
    padding: 15px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #f9fafb;
}

.chat-option-btn {
    background: #ffffff;
    border: 1px solid #d1d5db;
    color: #0099ab;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 0.88rem;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.chat-option-btn:hover {
    background: #e6ffff;
    border-color: #00b8cc;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 229, 255, 0.1);
}

.chat-typing {
    display: flex;
    gap: 4px;
    padding: 16px;
    background: #ffffff;
    border-radius: 14px;
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    width: fit-content;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #9ca3af;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

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

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0.6); opacity: 0.6; }
    40% { transform: scale(1); opacity: 1; }
}

@media (max-width: 480px) {
    .chatbot-window {
        width: calc(100vw - 40px);
        right: -10px;
        bottom: 70px;
    }
}
