/* Floating Chat Button */
.floating-chat-button {
    position:fixed;
bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #0084ff, #0063d1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 132, 255, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    animation: pulse 2s infinite;
}

.floating-chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 132, 255, 0.4);
}

..active {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    animation: none;
}

@keyframes pulse {
    0% {
        box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    }
    50% {
        box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6),
            0 0 0 0 rgba(99, 102, 241, 0.4);
    }
    100% {
        box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
    }
}

.chat-icon {
    width: 24px;
    height: 24px;
    fill: white;
    transition: transform 0.3s ease;
}

.close-icon {
    width: 24px;
    height: 24px;
    fill: white;
    display: none;
    transition: transform 0.3s ease;
}

.floating-chat-button.active .chat-icon {
    display: none;
}

.floating-chat-button.active .close-icon {
    display: block;
}

/* Book Now Button */
.book-now-button {
    position: absolute;
    bottom: 20px;
    right: 90px;
    background: #194666;
    color: #fff;
    padding: 10px 22px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}

.book-now-button:hover {
    transform: scale(1.05);
}

/* Chat Window */
.chatbot-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    width: 380px;
    height: 600px;
    overflow-y: scroll;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    transform: translateY(20px) scale(0.9);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.chatbot-container.active {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

.chatbot-header {
    background: linear-gradient(135deg, #0084ff, #0063d1);
    color: white;
    padding: 20px;
    text-align: center;
    position: relative;
}

.chatbot-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.1) 50%,
        transparent 70%
    );
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.chatbot-header h2 {
    font-size: 1.3rem;
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
}

.chatbot-header p {
    font-size: 0.85rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: rgba(248, 250, 252, 0.8);
}

.message {
    margin-bottom: 15px;
    animation: fadeInUp 0.3s ease-out;
}

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

.message.bot {
    text-align: left;
}

.message.user {
    text-align: right;
}

.message-content {
    display: inline-block;
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 0.85rem;
    line-height: 1.4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.message.bot .message-content {
    background: linear-gradient(135deg, #0084ff, #0063d1);
    color: white;
    border-bottom-left-radius: 6px;
}

.message.user .message-content {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    border-bottom-right-radius: 6px;
}

.chat-actions {
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.whatsapp-button {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    justify-content: center;
    margin-bottom: 10px;
}

.whatsapp-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.quick-questions h3 {
    font-size: 0.85rem;
    margin-bottom: 10px;
    color: #374151;
    font-weight: 600;
}

.question-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.question-btn {
    background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
    border: 1px solid rgba(156, 163, 175, 0.3);
    color: #374151;
    padding: 6px 10px;
    border-radius: 16px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.question-btn:hover {
    background: linear-gradient(135deg, #0084ff, #0063d1);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.typing-indicator {
    display: none;
    padding: 10px 0;
}

.typing-dots {
    display: inline-block;
    width: 40px;
    height: 10px;
    background: #ffffff;
    border-radius: 5px;
    position: relative;
    animation: pulse-dots 1.5s infinite;
}

@keyframes pulse-dots {
    0%,
    100% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
}

.typing-dots::before,
.typing-dots::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 8px;
    background: #f5f5f5;
    border-radius: 50%;
    top: 1px;
    animation: typing 1.5s infinite;
}

.typing-dots::before {
    left: -15px;
    animation-delay: 0.1s;
}

.typing-dots::after {
    right: -15px;
    animation-delay: 0.2s;
}

@keyframes typing {
    0%,
    60%,
    100% {
        opacity: 0.3;
    }
    30% {
        opacity: 1;
    }
}

.chat-messages::-webkit-scrollbar {
    width: 4px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.5);
    border-radius: 10px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.8);
}

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .chatbot-container {
        width: calc(100vw - 40px);
        height: 70vh;
        bottom: 90px;
        right: 20px;
        left: 20px;
    }

    .floating-chat-button {
        bottom: 10px;
        right: 20px;
        width: 55px;
        height: 55px;
    }

    .question-btn {
        font-size: 0.7rem;
        padding: 5px 8px;
    }
}
