/* Estilos para QR Code */
.qr-container {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

.qr-instructions {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    max-width: 400px;
    margin: 0 auto;
}

.qr-instructions h4 {
    color: #25D366;
    margin-bottom: 15px;
    font-size: 18px;
}

.qr-image-container {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px dashed #25D366;
}

.qr-image-container img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.qr-steps {
    text-align: left;
    margin-top: 15px;
}

.qr-steps p {
    margin: 8px 0;
    color: #666;
    font-size: 14px;
}

.qr-steps p:before {
    content: "📱 ";
    margin-right: 5px;
}

/* Estado de conexión */
.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-dot.online {
    background-color: #25D366;
    animation: pulse 2s infinite;
}

.status-dot.offline {
    background-color: #dc3545;
}

.status-dot.connecting {
    background-color: #ffc107;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Contenedor de WhatsApp */
.whatsapp-status-section {
    margin: 20px 0;
}

.status-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.status-header {
    background: #25D366;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-header h3 {
    margin: 0;
    font-size: 16px;
}

.status-indicator {
    display: flex;
    align-items: center;
    font-size: 14px;
}

.status-content {
    padding: 20px;
}

.connected-info {
    text-align: center;
    padding: 20px;
}

.success-icon {
    font-size: 48px;
    color: #25D366;
    margin-bottom: 15px;
}

.connected-info h4 {
    color: #25D366;
    margin-bottom: 10px;
}

.connected-info p {
    margin: 5px 0;
    color: #666;
}

.status-actions {
    margin-top: 15px;
    text-align: center;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-success {
    background-color: #25D366;
    color: white;
}

.btn-success:hover {
    background-color: #1ea952;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-primary:hover {
    background-color: #0056b3;
}

/* Loading */
.loading-spinner {
    text-align: center;
    padding: 20px;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #25D366;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Notificaciones */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 4px;
    color: #1a1a1a;
    background: white;
    font-weight: 500;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #17a2b8;
}

.notification.show {
    transform: translateX(0);
}

.notification span {
    color: #1a1a1a;
}

.notification-success {
    background-color: white;
    border-left-color: #25D366;
}

.notification-success i {
    color: #25D366;
}

.notification-error {
    background-color: white;
    border-left-color: #dc3545;
}

.notification-error i {
    color: #dc3545;
}

.notification-info {
    background-color: white;
    border-left-color: #17a2b8;
}

.notification-info i {
    color: #17a2b8;
}

