/**
 * Admin Animations CSS
 * Pricing Table Multi Payment Gateway Bridge
 */

/* Keyframe Animations */
@keyframes professionalFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
}

@keyframes professionalGlow {
    0% { box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4); }
    100% { box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6); }
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

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

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

@keyframes slideIn {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

/* Loading Animations */
.ptmpgb-loading {
    position: relative;
    overflow: hidden;
}

.ptmpgb-loading::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 1.5s infinite;
}

.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

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

/* Button Animations */
.ptmpgb-btn,
.ptmpgb-save-btn-modern,
.ptmpgb-connect-btn-modern {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.ptmpgb-btn:hover,
.ptmpgb-save-btn-modern:hover,
.ptmpgb-connect-btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.ptmpgb-btn:active,
.ptmpgb-save-btn-modern:active,
.ptmpgb-connect-btn-modern:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Card Animations */
.ptmpgb-card {
    animation: fadeIn 0.6s ease-out;
    transition: all 0.3s ease;
}

.ptmpgb-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Status Animations */
.ptmpgb-connected-dot {
    animation: pulse 2s infinite;
}

.ptmpgb-status.success {
    animation: bounceIn 0.6s ease-out;
}

/* Form Element Animations */
.ptmpgb-checkbox-modern input:checked + .ptmpgb-checkbox-box {
    animation: bounceIn 0.3s ease-out;
}

.ptmpgb-auto-sync-modern-slider {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Notification Animations */
.ptmpgb-modern-alert {
    animation: slideIn 0.5s ease-out;
}

.notice.is-dismissible {
    animation: fadeIn 0.5s ease-out;
}

/* Hover Effects */
.ptmpgb-feature-box:hover,
.ptmpgb-mode-card:hover,
.ptmpgb-premium-feature-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Responsive Animations */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Animations */
.ptmpgb-btn:focus,
.ptmpgb-save-btn-modern:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
    animation: pulse 0.3s ease-out;
}

/* Success State Animations */
.ptmpgb-success-state {
    animation: bounceIn 0.6s ease-out;
}

.ptmpgb-checkmark {
    animation: bounceIn 0.8s ease-out 0.2s both;
}