/* Oh Yes Events Chatbot Styles */

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

/* Chat Button */
.chat-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f7693c, #c74e45, #7d3785, #582d9f);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(247, 105, 60, 0.3);
    transition: all 0.3s ease;
    color: white;
    font-size: 25px;
    position: relative;
    overflow: hidden;
}

.chat-button:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 35px rgba(247, 105, 60, 0.4);
}

.chat-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f7693c, #c74e45, #7d3785, #582d9f);
    border-radius: 50%;
    animation: pulse-ring 2s infinite;
    opacity: 0.5;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.2;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.chat-button i {
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.chat-button.active i.fa-comments {
    transform: rotate(180deg) scale(0);
}

.chat-button.active i.fa-times {
    transform: rotate(0deg) scale(1);
}

.chat-button i.fa-times {
    transform: rotate(-180deg) scale(0);
    position: absolute;
}

/* Chat Widget */
.chat-widget {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border: 1px solid rgba(247, 105, 60, 0.1);
}

.chat-widget.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

/* Chat Header */
.chat-header {
    background: linear-gradient(135deg, #f7693c, #c74e45, #7d3785, #582d9f);
    padding: 20px;
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.chat-info h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.chat-info p {
    margin: 0;
    font-size: 12px;
    opacity: 0.9;
}

.chat-status {
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    margin-left: auto;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

/* Chat Messages */
.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 15px;
    scrollbar-width: thin;
    scrollbar-color: rgba(247, 105, 60, 0.3) transparent;
}

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

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

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(247, 105, 60, 0.3);
    border-radius: 2px;
}

/* Message Bubble */
.message {
    display: flex;
    margin-bottom: 15px;
    animation: messageSlide 0.3s ease-out;
}

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

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

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

.message.bot .message-bubble {
    background: white;
    border: 1px solid #e9ecef;
    border-bottom-left-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.message.user .message-bubble {
    background: linear-gradient(135deg, #f7693c, #c74e45);
    color: white;
    border-bottom-right-radius: 4px;
}

.message-time {
    font-size: 10px;
    opacity: 0.6;
    margin-top: 4px;
    text-align: right;
}

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

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 12px 16px;
    border-radius: 18px;
    border-bottom-left-radius: 4px;
    max-width: 80px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: #6c757d;
    border-radius: 50%;
    animation: typing 1.4s ease-in-out infinite;
}

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

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

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

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

.quick-reply {
    background: rgba(247, 105, 60, 0.1);
    border: 1px solid rgba(247, 105, 60, 0.3);
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #f7693c;
}

.quick-reply:hover {
    background: #f7693c;
    color: white;
    transform: translateY(-1px);
}

/* Chat Input */
.chat-input {
    padding: 20px;
    background: white;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 10px;
    align-items: center;
}

.input-container {
    flex: 1;
    position: relative;
}

.chat-input input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e9ecef;
    border-radius: 25px;
    outline: none;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #f8f9fa;
}

.chat-input input:focus {
    border-color: #f7693c;
    background: white;
    box-shadow: 0 0 0 3px rgba(247, 105, 60, 0.1);
}

.send-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f7693c, #c74e45);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 16px;
}

.send-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(247, 105, 60, 0.3);
}

.send-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Welcome Message */
.welcome-message {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-size: 14px;
    border-bottom: 1px solid #e9ecef;
}

.welcome-message h5 {
    color: #f7693c;
    margin-bottom: 8px;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .chatbot-container {
        bottom: 15px;
        right: 20px;
    }
    
    .chat-widget {
        width: 300px;
        height: 450px;
        bottom: 70px;
        right: -10px;
    }
    
    .chat-button {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .chatbot-container {
        bottom: 10px;
        right: 15px;
    }
    
    .chat-widget {
        width: 280px;
        height: 400px;
        right: -20px;
    }
    
    .chat-messages {
        padding: 15px;
    }
    
    .chat-input {
        padding: 15px;
    }
}

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

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

/* Minimized state */
.chat-widget.minimized {
    height: 60px;
    overflow: hidden;
}

.chat-widget.minimized .chat-messages,
.chat-widget.minimized .chat-input {
    display: none;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .chat-widget {
        background: #2d3748;
        border-color: rgba(247, 105, 60, 0.2);
    }
    
    .chat-messages {
        background: #4a5568;
    }
    
    .message.bot .message-bubble {
        background: #374151;
        border-color: #4a5568;
        color: #f3f4f6;
    }
    
    .chat-input {
        background: #374151;
        border-color: #4a5568;
    }
    
    .chat-input input {
        background: #4a5568;
        border-color: #6b7280;
        color: #f3f4f6;
    }
    
    .chat-input input:focus {
        background: #374151;
    }
}

/* Contact-specific quick reply buttons */
.quick-reply[onclick*="📞"] {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #16a34a;
}

.quick-reply[onclick*="📞"]:hover {
    background: #16a34a;
    color: white;
}

.quick-reply[onclick*="💬"] {
    background: rgba(37, 211, 102, 0.1);
    border-color: rgba(37, 211, 102, 0.3);
    color: #25d366;
}

.quick-reply[onclick*="💬"]:hover {
    background: #25d366;
    color: white;
}

.quick-reply[onclick*="✉️"] {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: #3b82f6;
}

.quick-reply[onclick*="✉️"]:hover {
    background: #3b82f6;
    color: white;
}

.quick-reply[onclick*="💾"] {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.3);
    color: #a855f7;
}

.quick-reply[onclick*="💾"]:hover {
    background: #a855f7;
    color: white;
}

.quick-reply[onclick*="📍"] {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.quick-reply[onclick*="📍"]:hover {
    background: #ef4444;
    color: white;
}

/* Enhanced contact information styling */
.message-bubble a {
    color: #f7693c;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s ease;
}

.message-bubble a:hover {
    color: #c74e45;
    text-decoration: underline;
}

/* Contact details emphasis */
.message-bubble strong {
    font-weight: 600;
    color: #2d3748;
}

/* Contact section dividers */
.message-bubble br + strong {
    display: inline-block;
    margin-top: 8px;
}
