/* Support Widget Styles */

/* Floating Button */
.support-widget-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #007bff;
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all 0.3s ease;
    outline: none;
}

.support-widget-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.support-widget-button:active {
    transform: scale(0.95);
}

/* Badge for notifications */
.support-widget-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Bottom Left Position */
.support-widget-button.position-bottom-left {
    left: 20px;
    right: auto;
}

/* Support Panel */
.support-widget-panel {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    max-width: calc(100vw - 40px);
    max-height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.support-widget-panel.position-bottom-left {
    left: 20px;
    right: auto;
}

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

.support-widget-panel.active {
    display: flex;
}

/* Panel Header */
.support-widget-header {
    padding: 20px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.support-widget-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.support-widget-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

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

/* Panel Body */
.support-widget-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Options */
.support-widget-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.support-widget-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: #333;
}

.support-widget-option:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
    transform: translateX(5px);
}

.support-widget-option-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 15px;
    flex-shrink: 0;
}

.support-widget-option-icon.whatsapp {
    background-color: #25D366;
    color: white;
}

.support-widget-option-icon.live-chat {
    background-color: #007bff;
    color: white;
}

.support-widget-option-content {
    flex: 1;
}

.support-widget-option-title {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 16px;
}

.support-widget-option-description {
    font-size: 13px;
    color: #6c757d;
}

/* Loading State */
.support-widget-loading {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

.support-widget-loading i {
    font-size: 32px;
    margin-bottom: 10px;
}

/* Error State */
.support-widget-error {
    text-align: center;
    padding: 40px 20px;
    color: #dc3545;
}

.support-widget-error i {
    font-size: 32px;
    margin-bottom: 10px;
}

.support-widget-error p {
    margin: 10px 0 0 0;
    font-size: 14px;
}

/* Overlay */
.support-widget-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 9997;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.support-widget-overlay.active {
    display: block;
    opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .support-widget-button {
        width: 56px;
        height: 56px;
        bottom: 15px;
        right: 15px;
        font-size: 20px;
    }
    
    .support-widget-panel {
        bottom: 80px;
        right: 15px;
        left: 15px;
        width: auto;
        max-height: 70vh;
    }
    
    .support-widget-panel.position-bottom-left {
        left: 15px;
        right: 15px;
    }
}

/* Dark Mode Support (if site has dark mode) */
@media (prefers-color-scheme: dark) {
    .support-widget-panel {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .support-widget-option {
        border-color: #4a5568;
        color: #e2e8f0;
    }
    
    .support-widget-option:hover {
        background-color: #4a5568;
    }
    
    .support-widget-option-description {
        color: #a0aec0;
    }
}

