/* assets/css/chatbot.css */
:root {
    --chat-primary: #007bff;
    --chat-bg: #ffffff;
    --chat-text: #333333;
    --chat-border: #eeeeee;
    --chat-user-msg: #007bff;
    --chat-user-text: #ffffff;
    --chat-bot-msg: #f1f1f1;
    --chat-bot-text: #333333;
}

#chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}

#chat-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--chat-primary);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    transition: transform 0.3s ease;
}

#chat-toggle-btn:hover {
    transform: scale(1.1);
}

#chat-window {
    display: none;
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background-color: var(--chat-bg);
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
    overflow: hidden;
    flex-direction: column;
}

#chat-window.active {
    display: flex;
    animation: slideUp 0.3s ease;
}

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

.chat-header {
    background-color: var(--chat-primary);
    color: white;
    padding: 15px;
    text-align: center;
    font-weight: bold;
    position: relative;
}

.chat-close {
    position: absolute;
    right: 15px;
    top: 15px;
    cursor: pointer;
    font-size: 18px;
}

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

/* Forms and Buttons */
.chat-form-group {
    margin-bottom: 12px;
}

.chat-form-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--chat-border);
    border-radius: 5px;
    box-sizing: border-box;
}

.chat-btn {
    width: 100%;
    padding: 10px;
    background-color: var(--chat-primary);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

.chat-btn-outline {
    background-color: transparent;
    color: var(--chat-primary);
    border: 1px solid var(--chat-primary);
    margin-top: 10px;
}

/* Chat Messages */
.chat-message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    line-height: 1.4;
    font-size: 14px;
}

.chat-message.user {
    align-self: flex-end;
    background-color: var(--chat-user-msg);
    color: var(--chat-user-text);
    border-bottom-right-radius: 2px;
}

.chat-message.bot {
    align-self: flex-start;
    background-color: var(--chat-bot-msg);
    color: var(--chat-bot-text);
    border-bottom-left-radius: 2px;
}

/* Input Area */
.chat-input-area {
    display: none;
    padding: 10px;
    border-top: 1px solid var(--chat-border);
    background: #fff;
}

.chat-input-area input {
    width: calc(100% - 60px);
    padding: 10px;
    border: 1px solid var(--chat-border);
    border-radius: 20px;
    outline: none;
}

.chat-input-area button {
    width: 50px;
    padding: 10px;
    border: none;
    background: var(--chat-primary);
    color: white;
    border-radius: 20px;
    cursor: pointer;
    margin-left: 5px;
}

/* FAQ Item */
.faq-item {
    background: #f9f9f9;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    border: 1px solid var(--chat-border);
}
.faq-question {
    font-weight: bold;
    font-size: 14px;
    color: var(--chat-primary);
}
.faq-answer {
    display: none;
    margin-top: 5px;
    font-size: 13px;
    color: #555;
}
.faq-item.active .faq-answer {
    display: block;
}

/* Utility */
.d-none { display: none !important; }
