/* assets/css/chatbot.css */
.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    font-family: 'Inter', sans-serif;
}

.chatbot-trigger {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color, #00e5ff);
    color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chatbot-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.8);
}

.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: var(--bg-card, rgba(20, 20, 25, 0.95));
    backdrop-filter: blur(15px);
    border: 1px solid var(--border-color, rgba(255,255,255,0.1));
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform-origin: bottom right;
    transform: scale(0);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    pointer-events: none;
}

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

.chatbot-header {
    background: rgba(0, 229, 255, 0.1);
    border-bottom: 1px solid rgba(0, 229, 255, 0.2);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main, #fff);
}

.chatbot-header-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.chatbot-header-title i {
    color: var(--primary-color, #00e5ff);
}

.chatbot-close {
    cursor: pointer;
    background: none;
    border: none;
    color: var(--text-muted, #aaa);
    font-size: 20px;
    transition: color 0.3s ease;
}
.chatbot-close:hover {
    color: var(--danger, #ff4757);
}

.chatbot-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-msg {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
    animation: fadeIn 0.3s ease;
}

.chat-msg.bot {
    align-self: flex-start;
    background: rgba(255,255,255,0.05);
    color: var(--text-main, #fff);
    border-bottom-left-radius: 2px;
    border: 1px solid rgba(255,255,255,0.1);
}

.chat-msg.user {
    align-self: flex-end;
    background: var(--primary-color, #00e5ff);
    color: #000;
    border-bottom-right-radius: 2px;
}

.chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
    animation: fadeIn 0.4s ease;
}

.chat-option-btn {
    background: transparent;
    border: 1px solid var(--primary-color, #00e5ff);
    color: var(--primary-color, #00e5ff);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat-option-btn:hover {
    background: var(--primary-color, #00e5ff);
    color: #000;
}

.chatbot-input {
    border-top: 1px solid var(--border-color, rgba(255,255,255,0.1));
    padding: 10px;
    display: flex;
    gap: 10px;
    background: rgba(0,0,0,0.2);
}

.chatbot-input input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px 15px;
    border-radius: 20px;
    color: var(--text-main, #fff);
    outline: none;
}
.chatbot-input input:focus {
    border-color: var(--primary-color, #00e5ff);
}

.chatbot-input button {
    background: var(--primary-color, #00e5ff);
    color: #000;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s;
}
.chatbot-input button:hover {
    transform: scale(1.1);
}

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

@media (max-width: 480px) {
    .chatbot-window {
        position: fixed;
        bottom: 0;
        right: 0;
        width: 100vw;
        height: 100vh;
        border-radius: 0;
        bottom: 0;
    }
    .chatbot-trigger {
        bottom: 15px;
        right: 15px;
    }
}
