/* WhatsApp Super Plugin - Ultimate Styles */
.wsp-super-container {
    position: fixed;
    z-index: 999999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Super Button Styles */
.wsp-super-button {
    position: relative;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    border: 3px solid white;
}

.wsp-super-button:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
}

/* Size Variations */
.wsp-size-small .wsp-super-button { width: 55px; height: 55px; }
.wsp-size-medium .wsp-super-button { width: 65px; height: 65px; }
.wsp-size-large .wsp-super-button { width: 75px; height: 75px; }

.wsp-size-small .wsp-super-button i { font-size: 26px; }
.wsp-size-medium .wsp-super-button i { font-size: 30px; }
.wsp-size-large .wsp-super-button i { font-size: 34px; }

/* Position Variations */
.wsp-position-bottom-right { bottom: 30px; right: 30px; }
.wsp-position-bottom-left { bottom: 30px; left: 30px; }
.wsp-position-top-right { top: 30px; right: 30px; }
.wsp-position-top-left { top: 30px; left: 30px; }

/* Super Options Panel */
.wsp-super-options {
    position: absolute;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    padding: 20px;
    min-width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.wsp-super-options.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

/* Position options based on main button */
.wsp-position-bottom-right .wsp-super-options {
    bottom: 90px;
    right: 0;
}

.wsp-position-bottom-right .wsp-super-options:after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 25px;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid white;
}

/* Option Items */
.wsp-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.wsp-option:hover {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-color: #25D366;
    transform: translateX(5px);
}

.wsp-option i {
    font-size: 24px;
    margin-right: 15px;
    width: 30px;
    text-align: center;
    transition: transform 0.2s ease;
}

.wsp-option:hover i {
    transform: scale(1.2);
}

.wsp-chat-option i { color: #25D366; }
.wsp-call-option i { color: #128C7E; }
.wsp-video-option i { color: #DC3545; }
.wsp-share-option i { color: #6F42C1; }
.wsp-location-option i { color: #FD7E14; }

.wsp-option-text {
    flex: 1;
}

.wsp-option-title {
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
}

.wsp-option-desc {
    font-size: 12px;
    color: #718096;
    margin-top: 2px;
}

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

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

/* Super Animations */
.wsp-animation-bounce .wsp-super-button {
    animation: wsp-super-bounce 3s infinite;
}

@keyframes wsp-super-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(0); }
    40% { transform: translateY(-15px) rotate(5deg); }
    60% { transform: translateY(-7px) rotate(-5deg); }
}

.wsp-animation-pulse .wsp-super-button {
    animation: wsp-super-pulse 2s infinite;
}

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

/* Chat Widget */
.wsp-chat-widget {
    position: fixed;
    bottom: 120px;
    right: 30px;
    width: 350px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    z-index: 999998;
    display: none;
}

.wsp-chat-header {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    padding: 20px;
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    gap: 15px;
}

.wsp-chat-body {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.wsp-typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 10px 0;
}

.wsp-typing-dot {
    width: 8px;
    height: 8px;
    background: #25D366;
    border-radius: 50%;
    animation: wsp-typing 1.4s infinite;
}

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

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

/* QR Code Display */
.wsp-qr-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000000;
}

.wsp-qr-container {
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    max-width: 90%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wsp-super-button {
        width: 60px !important;
        height: 60px !important;
    }
    
    .wsp-super-button i {
        font-size: 28px !important;
    }
    
    .wsp-position-bottom-right,
    .wsp-position-bottom-left {
        bottom: 20px;
    }
    
    .wsp-position-top-right,
    .wsp-position-top-left {
        top: 20px;
    }
    
    .wsp-super-options {
        min-width: 220px;
        right: -20px;
    }
    
    .wsp-chat-widget {
        width: calc(100% - 40px);
        right: 20px;
        left: 20px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .wsp-super-options {
        background: #2d3748;
        color: white;
    }
    
    .wsp-option-title {
        color: #e2e8f0;
    }
    
    .wsp-option-desc {
        color: #a0aec0;
    }
    
    .wsp-option:hover {
        background: #4a5568;
    }
}

/* High Contrast Support */
@media (prefers-contrast: high) {
    .wsp-super-button {
        border: 3px solid #000;
    }
    
    .wsp-super-options {
        border: 2px solid #000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .wsp-super-button,
    .wsp-option,
    .wsp-super-options {
        transition: none;
        animation: none;
    }
}