/* Chatbot Styles — Compatible with Tailwind Luminous Design */

.chatbot-fab {
    position: fixed; bottom: 32px; right: 32px;
    width: 60px; height: 60px;
    background: linear-gradient(135deg, #0ea5e9, #4f46e5); /* Sky-500 to Indigo-600 */
    color: white;
    border-radius: 50%; border: none;
    font-size: 1.5rem; cursor: pointer;
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.4);
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
    display: flex; align-items: center; justify-content: center;
}

.chatbot-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 35px rgba(79, 70, 229, 0.6);
}

.chatbot-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    width: 380px; height: 600px;
    max-height: 80vh;
    position: fixed; bottom: 100px; right: 32px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    display: flex; flex-direction: column;
    z-index: 999;
    border: 1px solid rgba(255, 255, 255, 0.5);
    opacity: 0; pointer-events: none; transform: translateY(20px); transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.chatbot-panel.open {
    opacity: 1; pointer-events: all; transform: translateY(0);
}

/* Chat Header */
.chat-header {
    padding: 1.25rem;
    background: white;
    border-bottom: 1px solid #f1f5f9;
    border-radius: 24px 24px 0 0;
    display: flex; justify-content: space-between; align-items: center;
}
.chat-title { font-weight: 700; color: #0f172a; font-size: 1.1rem; }
.chat-close { background: none; border: none; font-size: 1.5rem; color: #94a3b8; cursor: pointer; }

/* Chat Messages Area */
.chat-messages {
    flex-grow: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex; flex-direction: column; gap: 1rem;
    background: #f8fafc;
}

/* Message Bubbles */
.message {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, #0ea5e9, #4f46e5);
    color: white;
    border-radius: 16px 16px 4px 16px;
}

.message.bot {
    align-self: flex-start;
    background: white;
    color: #334155;
    border: 1px solid #e2e8f0;
    border-radius: 16px 16px 16px 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

/* Input Area */
.chat-input-area {
    padding: 1rem;
    background: white;
    border-top: 1px solid #f1f5f9;
    display: flex; gap: 0.5rem;
    border-radius: 0 0 24px 24px;
}

.chat-input-area input {
    flex-grow: 1;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 99px;
    outline: none;
    font-family: inherit;
    transition: 0.2s;
}
.chat-input-area input:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.chat-send-btn {
    background: #0f172a;
    color: white;
    width: 42px; height: 42px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: 0.2s;
}
.chat-send-btn:hover { background: #0ea5e9; transform: scale(1.05); }

/* Typing Indicator */
.typing-indicator { font-size: 0.75rem; color: #94a3b8; margin-left: 1rem; margin-bottom: 0.5rem; display: none; }
.typing-indicator.active { display: block; }

/* Scrollbar */
.chat-messages::-webkit-scrollbar { width: 6px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

/* Toast Notifications */
#toastContainer {
    position: fixed; top: 20px; right: 20px; z-index: 2000;
    display: flex; flex-direction: column; gap: 10px;
}
.toast {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: flex; align-items: center; gap: 12px;
    min-width: 300px;
    border-left: 4px solid #3b82f6; /* Default Blue */
    animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 0.95rem; color: #1e293b;
}
.toast-icon { font-size: 1.25rem; }
.toast.success { border-left-color: #22c55e; }
.toast.error { border-left-color: #ef4444; }

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
