/* public/chatbot.css */

/* Floating Button */
#chatToggleBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981, #3b82f6);
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

#chatToggleBtn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Chat Window */
#chatWindow {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: rgba(15, 23, 42, 0.95);
    /* Deep Slate */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 9999;

    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: opacity 0.3s ease, height 0.3s ease;
    opacity: 1;
    transform: translateY(0);
}

#chatWindow.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

#chatWindow.minimized {
    height: 60px !important;
    overflow: hidden;
    cursor: pointer;
}

#chatWindow.minimized .chat-messages,
#chatWindow.minimized .chat-input-area {
    display: none;
}

/* Header */
.chat-header {
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

/* Messages Area */
.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Message Bubbles */
.message {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.95rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.message.bot {
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e1;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.message.user {
    background: #3b82f6;
    /* Blue */
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

/* Input Area */
.chat-input-area {
    padding: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    /* Moved from original .chat-input-area */
}

/* --- ACTION CHIPS (Smart Suggestions) --- */
.chat-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    padding-left: 10px;
    padding-bottom: 5px;
}

.chat-chip {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.4);
    color: #93c5fd;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.chat-chip:hover {
    background: rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.chat-input-container {
    /* New container to wrap input and button */
    display: flex;
    padding: 10px;
    /* Moved from original .chat-input-area */
    gap: 8px;
    /* Moved from original .chat-input-area */
}

.chat-input-area input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 10px;
    border-radius: 6px;
    outline: none;
}

.chat-input-area input:focus {
    border-color: #3b82f6;
}

.chat-input-area button {
    background: #10b981;
    border: none;
    color: white;
    width: 40px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.2rem;
}

.chat-input-area button:hover {
    background: #059669;
}