﻿/* =====================================================
   MODERN CHAT WIDGET - PROFESSIONAL DESIGN
   Choose your preferred style by uncommenting the @import
   ===================================================== */

/* Default: Gradient Style (Purple/Blue) */

/* =====================================================
   BASE STYLES (Required for all themes)
   ===================================================== */

.chat-widget-container {
    position: fixed;
    bottom: 39px;
    right: 85px;
    z-index: 10000;
}

#chatFloatingButton {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
}

/* Chat Icon SVG */
.chat-icon {
    width: 28px;
    height: 28px;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

/* Hover Effects */
#chatFloatingButton:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

    #chatFloatingButton:hover .chat-icon {
        transform: scale(1.1);
    }

#chatFloatingButton:active {
    transform: scale(0.95);
}

/* Tooltip */
.chat-tooltip {
    position: absolute;
    right: 75px;
    background: #333;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateX(10px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

    .chat-tooltip::after {
        content: '';
        position: absolute;
        right: -6px;
        top: 50%;
        transform: translateY(-50%);
        width: 0;
        height: 0;
        border-left: 6px solid #333;
        border-top: 6px solid transparent;
        border-bottom: 6px solid transparent;
    }

#chatFloatingButton:hover .chat-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* Online Indicator Dot */
.online-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 14px;
    height: 14px;
    background: #00ff88;
    border: 3px solid white;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
    z-index: 3;
}

@keyframes pulse-dot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Pulse Ring Animation */
.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    pointer-events: none;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Notification Badge (Optional) */
.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ff4444;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 12px;
    border: 2px solid white;
    z-index: 3;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

/* =====================================================
   STYLE 1: GRADIENT (Default - Purple to Blue)
   ===================================================== */

#chatFloatingButton {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.pulse-ring {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* =====================================================
   STYLE 2: SOLID PROFESSIONAL (Uncomment to use)
   ===================================================== */

/*
#chatFloatingButton {
    background: #0066ff;
    color: white;
}

.pulse-ring {
    background: #0066ff;
}

#chatFloatingButton:hover {
    background: #0052cc;
}
*/

/* =====================================================
   STYLE 3: MODERN GREEN (Uncomment to use)
   ===================================================== */

/*
#chatFloatingButton {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.pulse-ring {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}
*/

/* =====================================================
   STYLE 4: DARK MODE (Uncomment to use)
   ===================================================== */

/*
#chatFloatingButton {
    background: #1a1a1a;
    color: white;
    border: 2px solid #333;
}

.pulse-ring {
    background: #1a1a1a;
}

#chatFloatingButton:hover {
    background: #2a2a2a;
    border-color: #444;
}

.chat-tooltip {
    background: #2a2a2a;
}

.chat-tooltip::after {
    border-left-color: #2a2a2a;
}
*/

/* =====================================================
   STYLE 5: MINIMAL WHITE (Uncomment to use)
   ===================================================== */

/*
#chatFloatingButton {
    background: white;
    color: #333;
    border: 1px solid #e0e0e0;
}

.pulse-ring {
    background: #f5f5f5;
}

.chat-icon {
    color: #667eea;
}

#chatFloatingButton:hover {
    background: #f9f9f9;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}
*/

/* =====================================================
   STYLE 6: ORANGE/RED GRADIENT (Uncomment to use)
   ===================================================== */

/*
#chatFloatingButton {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.pulse-ring {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}
*/

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */

@media (max-width: 768px) {
    .chat-widget-container {
        bottom: 20px;
        right: 20px;
    }

    #chatFloatingButton {
        width: 56px;
        height: 56px;
    }

    .chat-icon {
        width: 26px;
        height: 26px;
    }

    .chat-tooltip {
        display: none; /* Hide tooltip on mobile */
    }
}

/* =====================================================
   ALTERNATIVE ICON STYLES (Replace SVG with these)
   ===================================================== */

/* If you want a simpler icon, use these classes instead of SVG */

/*
.chat-icon-simple {
    width: 28px;
    height: 28px;
    border: 3px solid currentColor;
    border-radius: 6px;
    position: relative;
}

.chat-icon-simple::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 20%;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid currentColor;
}
*/

/* =====================================================
   ACCESSIBILITY
   ===================================================== */

#chatFloatingButton:focus {
    outline: 3px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
}

    #chatFloatingButton:focus:not(:focus-visible) {
        outline: none;
    }

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    #chatFloatingButton,
    .chat-icon,
    .chat-tooltip,
    .pulse-ring,
    .online-dot,
    .notification-badge {
        animation: none !important;
        transition: none !important;
    }
}
