.chatbot-container {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 1000;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.chatbot-button {
    background: linear-gradient(135deg, #0790db, #1ea0e8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.chatbot-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.chatbot-button:active {
    transform: scale(0.98);
}

.chatbot-button::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    top: -10px;
    left: -10px;
    opacity: 0;
    transition: all 0.5s ease;
}

.chatbot-button:active::after {
    transform: scale(20);
    opacity: 0.3;
    transition: 0s;
}

.chatbot-modal {
    display: none;
    position: fixed;
    bottom: 100px;
    left: 20px;
    width: 380px;
    height: 600px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    flex-direction: column;
    z-index: 1001;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.chatbot-modal.active {
    transform: translateY(0);
    opacity: 1;
}

.chatbot-header {
    background: #0790db;
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.chatbot-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-avatar {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.chatbot-header-text h3 {
    margin: 0 0 2px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.chatbot-header-text p {
    margin: 0;
    font-size: 13px;
    opacity: 0.9;
    font-weight: 400;
    line-height: 1.3;
    color: var(--color-white);
}

.chatbot-header h3::before {
    content: '•';
    color: #fff;
    font-size: 24px;
    animation: pulse 1.5s infinite;
}

.chatbot-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    margin-left: 8px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.chatbot-close svg {
    width: 16px;
    height: 16px;
}

.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
    scroll-behavior: smooth;
}

.message {
    margin: 10px 0;
    padding: 12px 18px;
    border-radius: 18px;
    max-width: 85%;
    word-wrap: break-word;
    line-height: 1.4;
    position: relative;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.3s ease forwards;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bot-message {
    background: white;
    margin-right: auto;
    border-top-left-radius: 4px;
    color: #333;
    border: 1px solid #e9ecef;
}

.user-message {
    background: linear-gradient(135deg, #0790db, #1ea0e8);
    color: white;
    margin-left: auto;
    border-top-right-radius: 4px;
    box-shadow: 0 2px 5px rgba(76, 175, 80, 0.2);
}

.typing-indicator {
    display: flex;
    padding: 12px 16px;
    background: white;
    border-radius: 18px;
    margin: 10px 0;
    width: fit-content;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.typing-dot {
    width: 8px;
    height: 8px;
    background-color: #6c757d;
    border-radius: 50%;
    margin: 0 2px;
    opacity: 0.4;
    animation: typingAnimation 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) {
    animation-delay: 0s;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingAnimation {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    30% {
        transform: translateY(-5px);
        opacity: 1;
    }
}

.chatbot-input-container {
    padding: 15px 25px;
    background: white;
    border-top: 1px solid #e9ecef;
    display: flex;
    align-items: center;
    position: relative;
}

textarea#user-input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    outline: none;
    font-size: 14px;
    transition: all 0.3s ease;
    resize: none;
    min-height: 48px;
    max-height: 150px;
    overflow-y: auto;
    font-family: inherit;
    line-height: 1.4;
    height: auto;
}

textarea#user-input:focus {
    border-color: #0790db;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.chatbot-send {
    background: #0790db;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chatbot-send:hover {
    background: #1ea0e8;
    transform: scale(1.05);
}

.chatbot-send:active {
    transform: scale(0.95);
}

.faq-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    padding: 0 5px;
}

.faq-option {
    background: #e9f4f8;
    border: 1px solid #c8dfe6;
    border-radius: 18px;
    padding: 8px 16px;
    margin: 4px 0;
    cursor: pointer;
    font-size: 13px;
    color: #0790db;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.faq-option:hover {
    background: #0790db;
    color: #e9f4f8;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.faq-option:active {
    transform: translateY(0);
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}