/* Prova AI Chatbot Widget Styles */
.chatbot-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1040;
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Space Grotesk', system-ui, sans-serif;
}

/* AI Assistant Toggle Button */
.chatbot-toggle {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 50%, #dc2626 100%);
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    box-shadow: 
        0 12px 40px rgba(220, 38, 38, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px);
}

.chatbot-toggle:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 16px 50px rgba(220, 38, 38, 0.6),
        0 0 0 1px rgba(220, 38, 38, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(220, 38, 38, 0.3);
}

.chatbot-toggle::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.chatbot-toggle:hover::before {
    opacity: 1;
}

.chatbot-toggle i {
    font-size: 28px;
    color: #ffffff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    z-index: 1;
    position: relative;
}

.chatbot-toggle-icon {
    color: white;
    font-size: 24px;
    z-index: 2;
    position: relative;
}

.chatbot-toggle.active .chatbot-toggle-icon {
    transform: rotate(45deg);
}

/* AI Assistant Notification Badge */
.chatbot-notification {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    border-radius: 8px;
    border: 2px solid #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 11px;
    font-weight: 700;
    box-shadow: 
        0 4px 12px rgba(220, 38, 38, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: aiPulse 2s infinite;
}

@keyframes aiPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 6px 16px rgba(220, 38, 38, 0.6);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* AI Assistant Container */
.chatbot-container {
    position: absolute;
    bottom: 85px;
    right: 0;
    width: 350px;
    height: 450px;
    background: #000000;
    backdrop-filter: blur(30px);
    border-radius: 24px;
    box-shadow: 
        0 30px 60px rgba(220, 38, 38, 0.15),
        0 0 0 1px rgba(220, 38, 38, 0.1),
        inset 0 1px 0 rgba(220, 38, 38, 0.8);
    border: 2px solid #dc2626;
    display: none;
    flex-direction: column;
    overflow: hidden;
    color: white;
    z-index: 1030;
}

.chatbot-container.active {
    display: flex;
    animation: slideUp 0.3s ease-out;
}

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

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

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

/* AI Assistant Header */
.chatbot-header {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    border-bottom: 1px solid rgba(220, 38, 38, 0.2);
}

.chatbot-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #dc2626, #10b981, #dc2626);
    border-radius: 24px 24px 0 0;
}

.chatbot-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
    margin-right: 14px;
    box-shadow: 
        0 4px 12px rgba(220, 38, 38, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.chatbot-title {
    flex: 1;
}

.chatbot-title h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.chatbot-title p {
    margin: 2px 0 0 0;
    font-size: 13px;
    opacity: 0.8;
    font-weight: 500;
    color: #cccccc;
}

.chatbot-close {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Chat Messages */
.chatbot-messages {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(255, 255, 255, 0.6) 100%);
    backdrop-filter: blur(10px);
}

.chatbot-message {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
}

.chatbot-message.user {
    justify-content: flex-end;
}

.chatbot-message.bot {
    justify-content: flex-start;
}

.message-content {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.4;
}

.chatbot-message.bot .message-content {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-bottom-left-radius: 8px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.chatbot-message.user .message-content {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
    border-bottom-right-radius: 8px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

/* Quick Replies */
.quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    padding: 0 20px;
}

.quick-reply-btn {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.8) 100%);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #1f2937;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.1);
    backdrop-filter: blur(10px);
}

.quick-reply-btn:hover {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.4);
}

/* Chat Input */
.chatbot-input-container {
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(220, 38, 38, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-input {
    flex: 1;
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 20px;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 500;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    color: #1f2937;
}

.chatbot-input:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.2);
    background: rgba(255, 255, 255, 0.95);
}

.chatbot-input::placeholder {
    color: #6b7280;
}

.chatbot-send {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    border: none;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.chatbot-send:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
}

.chatbot-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Booking Link */
.booking-link {
    display: inline-block;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white !important;
    padding: 12px 24px;
    border-radius: 28px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    margin-top: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.booking-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    color: white !important;
    text-decoration: none;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.typing-dots {
    display: flex;
    gap: 4px;
    padding: 14px 18px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(220, 38, 38, 0.1);
    border-radius: 20px;
    border-bottom-left-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.typing-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dc2626 0%, #dc2626 100%);
    animation: typingBounce 1.4s ease-in-out infinite both;
}

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

@keyframes typingBounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

/* Mobile Responsiveness */
@media (max-width: 480px) {
    .chatbot-container {
        width: 320px;
        height: 450px;
        bottom: 80px;
        right: 10px;
    }
    
    .chatbot-widget {
        bottom: 15px;
        right: 15px;
    }
}

/* Scrollbar Styling */
.chatbot-messages::-webkit-scrollbar {
    width: 4px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: #999;
}