/* WhatsApp Chat Widget Styles */
.whatsapp-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
}

.whatsapp-btn {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.whatsapp-btn svg {
    width: 35px;
    height: 35px;
    fill: white;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Chat Modal Styles */
.chat-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.chat-modal.active {
    pointer-events: auto;
}

.chat-modal.active {
    opacity: 1;
    visibility: visible;
}

.chat-modal-content {
    background: white;
    border-radius: 15px;
    width: 320px;
    max-width: 320px;
    max-height: 500px;
    position: fixed;
    bottom: 90px;
    right: 20px;
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 0;
    display: flex;
    flex-direction: column;
}

.chat-modal.active .chat-modal-content {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Dubai Drifters Header */
.dubai-drifters-header {
    background: linear-gradient(135deg, #1a7a5c 0%, #25d366 100%);
    padding: 15px;
    text-align: center;
    color: white;
    position: relative;
}

.dubai-drifters-logo {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid #C89B52;
}

.dubai-drifters-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.dubai-drifters-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 3px;
    letter-spacing: 0.5px;
}

.dubai-drifters-subtitle {
    font-size: 12px;
    opacity: 0.9;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Chat Content */
.chat-content {
    padding: 12px;
    background: #f8f9fa;
    overflow-y: auto;
    flex: 1;
    max-height: 350px;
}

/* Welcome Message */
.welcome-message {
    background: white;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.support-title {
    color: #25d366;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 6px;
}

.support-greeting {
    font-weight: bold;
    color: #333;
    margin-bottom: 6px;
    font-size: 14px;
}

.support-description {
    color: #666;
    font-size: 12px;
    line-height: 1.4;
}

/* Support Options */
.support-options {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.support-btn {
    flex: 1;
    padding: 8px 12px;
    border: 2px solid #25d366;
    border-radius: 20px;
    background: white;
    color: #25d366;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 12px;
}

.support-btn:hover,
.support-btn.active {
    background: #25d366;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* Category Options */
.category-options {
    display: none;
    margin-top: 10px;
}

.category-options.active {
    display: block;
}

.category-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    margin-bottom: 6px;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.category-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.category-radio {
    width: 16px;
    height: 16px;
    border: 2px solid #ddd;
    border-radius: 50%;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.category-item.selected .category-radio {
    border-color: #25d366;
    background: #25d366;
}

.category-item.selected .category-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.category-text {
    color: #333;
    font-weight: 500;
    font-size: 13px;
    line-height: 1.3;
}

/* Start Chat Button */
.start-chat-btn {
    width: 100%;
    background: linear-gradient(135deg, #25d366 0%, #20b358 100%);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s ease;
    margin-top: 12px;
    opacity: 0.5;
    pointer-events: none;
}

.start-chat-btn.enabled {
    opacity: 1;
    pointer-events: auto;
}

.start-chat-btn.enabled:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.start-chat-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Dubai Drifters Branding */
.dubai-drifters-branding {
    text-align: center;
    padding: 8px;
    background: white;
    font-size: 10px;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex-shrink: 0;
}

.dubai-drifters-branding .star {
    color: #C89B52;
    font-weight: bold;
}

.dubai-drifters-branding .dubai-drifters-link {
    color: #C89B52;
    text-decoration: none;
    font-weight: 600;
}

.dubai-drifters-branding .dubai-drifters-link:hover {
    text-decoration: underline;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .chat-modal-content {
        width: calc(100% - 30px);
        max-width: 280px;
        max-height: 400px;
        right: 15px;
        bottom: 80px;
    }
    
    .chat-content {
        padding: 10px;
        max-height: 280px;
    }
    
    .support-options {
        flex-direction: column;
        gap: 10px;
    }
    
    .whatsapp-widget {
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-btn {
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-btn svg {
        width: 30px;
        height: 30px;
    }
}

/* Tablet and smaller desktop screens */
@media (max-width: 1024px) and (min-width: 769px) {
    .chat-modal-content {
        width: 300px;
        max-width: 300px;
    }
}

/* Animation for smooth transitions */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

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