/* ============================================
   CHATBOT TẾT - STYLES
   ============================================ */

.chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10001;
    font-family: 'Quicksand', sans-serif;
}

/* Chatbot Button */
.chatbot-button {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dc2626 0%, #f97316 100%);
    border: none;
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    animation: chatbotPulse 2s ease-in-out infinite;
}

.chatbot-button:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(220, 38, 38, 0.7);
}

.chatbot-button.active {
    transform: scale(0.9);
}

.chatbot-button i {
    font-size: 1.8rem;
    color: white;
}

.chatbot-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #fbbf24;
    color: #7f1d1d;
    font-size: 0.7rem;
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

@keyframes chatbotPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Chatbot Window */
.chatbot-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 380px;
    height: 550px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.chatbot-window.active {
    display: flex;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header */
.chatbot-header {
    background: linear-gradient(135deg, #dc2626 0%, #f97316 100%);
    color: white;
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-header-content i {
    font-size: 2rem;
}

.chatbot-header h3 {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0;
}

.chatbot-header p {
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.9;
}

.chatbot-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

/* Messages */
.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: linear-gradient(180deg, #fef3c7 0%, #fed7aa 100%);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(220, 38, 38, 0.3);
    border-radius: 10px;
}

.message {
    display: flex;
    gap: 10px;
    animation: messageSlide 0.3s ease;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.message-content {
    max-width: 75%;
    background: white;
    padding: 12px 15px;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.bot-message .message-content {
    border-bottom-left-radius: 5px;
}

.user-message {
    flex-direction: row-reverse;
}

.user-message .message-content {
    background: linear-gradient(135deg, #dc2626 0%, #f97316 100%);
    color: white;
    border-bottom-right-radius: 5px;
}

.message-content p {
    margin: 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

.message-time {
    font-size: 0.7rem;
    opacity: 0.6;
    margin-top: 5px;
}

/* Typing Indicator */
.typing-indicator .message-content {
    padding: 15px;
}

.typing-dots {
    display: flex;
    gap: 5px;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: #dc2626;
    border-radius: 50%;
    animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-10px);
    }
}

/* Suggestions */
.chatbot-suggestions {
    padding: 12px 15px;
    background: white;
    border-top: 1px solid rgba(220, 38, 38, 0.1);
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.chatbot-suggestions::-webkit-scrollbar {
    height: 4px;
}

.chatbot-suggestions::-webkit-scrollbar-thumb {
    background: rgba(220, 38, 38, 0.3);
    border-radius: 10px;
}

.chatbot-suggestions button {
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%);
    border: 2px solid #fbbf24;
    color: #7f1d1d;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}

.chatbot-suggestions button:hover {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

/* Input */
.chatbot-input {
    padding: 15px;
    background: white;
    border-top: 1px solid rgba(220, 38, 38, 0.1);
    display: flex;
    gap: 10px;
}

.chatbot-input input {
    flex: 1;
    border: 2px solid #fbbf24;
    border-radius: 25px;
    padding: 12px 18px;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s;
}

.chatbot-input input:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.chatbot-input button {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dc2626 0%, #f97316 100%);
    border: none;
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.chatbot-input button:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(220, 38, 38, 0.4);
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .chatbot-container {
        bottom: 10px;
        right: 10px;
    }

    .chatbot-window {
        width: calc(100vw - 20px);
        height: calc(100vh - 100px);
        bottom: 70px;
        right: -10px;
    }

    .chatbot-button {
        width: 55px;
        height: 55px;
    }

    .chatbot-button i {
        font-size: 1.5rem;
    }

    .chatbot-header {
        padding: 15px;
    }

    .chatbot-header h3 {
        font-size: 1.1rem;
    }

    .chatbot-header p {
        font-size: 0.8rem;
    }

    .chatbot-messages {
        padding: 15px 10px;
    }

    .message-content {
        max-width: 80%;
    }

    .message-content p {
        font-size: 0.9rem;
    }

    .chatbot-suggestions {
        padding: 10px;
        gap: 6px;
    }

    .chatbot-suggestions button {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .chatbot-input {
        padding: 10px;
    }

    .chatbot-input input {
        font-size: 0.9rem;
        padding: 10px 15px;
    }

    .chatbot-input button {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}
