/* Frontend Styles for WhatsApp Flotante */

/* Botón flotante */
.wf-floating-button {
    position: fixed;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 9998;
}

.wf-position-bottom-right {
    /* Posicionamiento controlado por estilos en línea */
}

.wf-position-bottom-left {
    /* Posicionamiento controlado por estilos en línea */
}

.wf-floating-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.wf-floating-button:active {
    transform: scale(0.95);
}

.wf-floating-button .wf-icon {
    width: 35px;
    height: 35px;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

/* Animación de pulso */
.wf-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.4);
    animation: wf-pulse-animation 2s infinite;
    z-index: 1;
}

@keyframes wf-pulse-animation {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Modal */
.wf-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wf-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: wf-fade-in 0.3s ease;
}

.wf-modal-content {
    position: relative;
    background: #fff;
    border-radius: 16px;
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: wf-slide-up 0.3s ease;
}

@keyframes wf-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes wf-slide-up {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Header del modal */
.wf-modal-header {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.wf-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.wf-modal-close {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.wf-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Body del modal */
.wf-modal-body {
    padding: 20px;
    max-height: calc(80vh - 80px);
    overflow-y: auto;
}

.wf-modal-subtitle {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
}

/* Lista de cuentas */
.wf-accounts-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wf-account-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.wf-account-item:hover {
    background: #e9f7ef;
    border-color: #25D366;
    transform: translateX(4px);
}

.wf-account-icon {
    width: 40px;
    height: 40px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.wf-account-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wf-account-label {
    font-weight: 600;
    font-size: 15px;
    color: #333;
}

.wf-account-status {
    font-size: 12px;
    color: #25D366;
}

.wf-account-arrow {
    color: #999;
    flex-shrink: 0;
}

/* Disclaimer */
.wf-disclaimer {
    margin-top: 20px;
    padding: 12px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    font-size: 12px;
    color: #856404;
    line-height: 1.5;
}

.wf-disclaimer p {
    margin: 0;
}

/* Scrollbar personalizado */
.wf-modal-body::-webkit-scrollbar {
    width: 6px;
}

.wf-modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.wf-modal-body::-webkit-scrollbar-thumb {
    background: #25D366;
    border-radius: 10px;
}

.wf-modal-body::-webkit-scrollbar-thumb:hover {
    background: #128C7E;
}

/* Responsive */
@media (max-width: 480px) {
    .wf-floating-button {
        width: 55px;
        height: 55px;
    }

    .wf-floating-button .wf-icon {
        width: 30px;
        height: 30px;
    }

    .wf-modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .wf-modal-header {
        padding: 16px;
    }

    .wf-modal-header h3 {
        font-size: 18px;
    }

    .wf-modal-body {
        padding: 16px;
    }
}

/* Accesibilidad */
.wf-floating-button:focus {
    outline: 3px solid #25D366;
    outline-offset: 2px;
}

.wf-modal-close:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.wf-account-item:focus {
    outline: 2px solid #25D366;
    outline-offset: 2px;
}