/**
 * Estilos para shortcode de notificações no frontend
 */

.tvc-notifications-manager {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.tvc-notifications-manager h2 {
    margin-top: 0;
    color: #2c3e50;
}

.tvc-notifications-manager .tvc-notifications-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.tvc-notifications-manager .tvc-notifications-section:last-child {
    border-bottom: none;
}

.tvc-notifications-manager .tvc-notifications-form-group {
    margin-bottom: 20px;
}

.tvc-notifications-manager label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.tvc-notifications-manager select,
.tvc-notifications-manager input[type="email"],
.tvc-notifications-manager input[type="text"] {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.tvc-notifications-manager .tvc-notifications-button {
    display: inline-block;
    padding: 10px 20px;
    background: #3498db;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.3s;
}

.tvc-notifications-manager .tvc-notifications-button:hover {
    background: #2980b9;
}

.tvc-notifications-manager .tvc-notifications-button-secondary {
    background: #95a5a6;
}

.tvc-notifications-manager .tvc-notifications-button-secondary:hover {
    background: #7f8c8d;
}

.tvc-notifications-manager .tvc-notifications-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tvc-notifications-manager .tvc-notifications-list-item {
    padding: 12px;
    margin-bottom: 8px;
    background: #f9f9f9;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tvc-notifications-manager .tvc-notifications-list-item strong {
    color: #2c3e50;
}

.tvc-notifications-manager .tvc-notifications-message {
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.tvc-notifications-manager .tvc-notifications-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.tvc-notifications-manager .tvc-notifications-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.tvc-notifications-manager .tvc-notifications-loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

/* ============================================================================
   FASE 0.5: Push Notifications Section
   ============================================================================ */

.tvc-push-notifications-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    border: 1px solid #e9ecef !important;
}

.tvc-push-notifications-section h3 {
    margin-top: 0;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tvc-push-description {
    color: #666;
    margin: 10px 0 20px;
    font-size: 14px;
    line-height: 1.5;
}

.tvc-push-status {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.tvc-push-status.loading {
    background: #f8f9fa;
    border-color: #dee2e6;
    animation: tvc-pulse 1.5s ease-in-out infinite;
}

.tvc-push-status.active {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.tvc-push-status.inactive {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.tvc-push-status.error {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.tvc-push-status-icon {
    font-size: 32px;
    line-height: 1;
}

.tvc-push-status-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.6;
}

.tvc-push-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

#tvc-push-enable {
    background: #4caf50;
    flex: 1;
}

#tvc-push-enable:hover {
    background: #45a049;
}

#tvc-push-disable {
    background: #f44336;
    color: #fff;
    flex: 1;
}

#tvc-push-disable:hover {
    background: #da190b;
    color: #fff;
}

.tvc-push-help {
    background: #fff3cd;
    border: 1px solid #ffc107;
    padding: 12px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1.6;
}

.tvc-push-help strong {
    color: #856404;
}

@keyframes tvc-pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 1;
    }
}

/* ============================================================================
   Sync Status Indicators
   ============================================================================ */

.tvc-sync-status {
    display: block;
    margin-top: 15px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tvc-sync-status-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.tvc-sync-status-message {
    flex: 1;
    color: #333;
}

.tvc-sync-status.syncing {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    color: #1565c0;
}

.tvc-sync-status.synced {
    background: #e8f5e9;
    border: 1px solid #81c784;
    color: #2e7d32;
}

.tvc-sync-status.failed {
    background: #ffebee;
    border: 1px solid #ef5350;
    color: #c62828;
}

.tvc-sync-status.pending {
    background: #fff3e0;
    border: 1px solid #ffb74d;
    color: #e65100;
}

/* Syncing spinner animation */
.tvc-sync-status.syncing .tvc-sync-status-icon {
    animation: tvc-spin 1s linear infinite;
}

@keyframes tvc-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Success checkmark animation */
.tvc-sync-status.synced {
    animation: tvc-fade-in 0.5s ease-in;
}

.tvc-sync-status.synced .tvc-sync-status-icon {
    animation: tvc-scale-in 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes tvc-fade-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes tvc-scale-in {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

/* Error shake animation */
.tvc-sync-status.failed {
    animation: tvc-shake 0.5s ease-in-out;
}

@keyframes tvc-shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Retry button styles */
.tvc-sync-retry-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    background: #ff9800;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tvc-sync-retry-btn:hover:not(:disabled) {
    background: #f57c00;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255,152,0,0.3);
}

.tvc-sync-retry-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Pending sync warning */
.tvc-sync-warning {
    margin-top: 10px;
    padding: 10px;
    background: #fff9c4;
    border-left: 4px solid #fbc02d;
    font-size: 13px;
    color: #f57f17;
    line-height: 1.4;
}

.tvc-sync-warning a {
    color: #e65100;
    text-decoration: underline;
    font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .tvc-sync-status {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .tvc-sync-retry-btn {
        width: 100%;
        text-align: center;
    }
}

