/* ═══════════════════════════════════════════════════════════
   SEO Automation — Custom CSS
   (TailwindCSS CDN handles utility classes; this file is for
    animations, transitions, and app-specific overrides.)
   ═══════════════════════════════════════════════════════════ */

/* ── Fade-in animation for page content ── */
.fade-in {
    animation: fadeIn 0.35s ease-out;
}

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

/* ── Slide-in for sidebar ── */
.slide-in-left {
    animation: slideInLeft 0.3s ease-out;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-16px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ── Pulse animation for loading indicators ── */
.pulse-dot {
    animation: pulseDot 1.4s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 0.4; transform: scale(0.8); }
    50%      { opacity: 1;   transform: scale(1); }
}

/* ── Spinner ── */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: currentColor;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 0.7s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ── Smooth tab transitions ── */
.tab-content {
    animation: fadeIn 0.25s ease-out;
}

/* ── Table row hover effect ── */
.table-row-hover:hover {
    background-color: rgba(241, 245, 249, 0.7);
}

/* ── Status badge common ── */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 10px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.25rem;
}

/* ── Toast notification ── */
.toast {
    animation: toastIn 0.3s ease-out, toastOut 0.3s ease-in 4.7s forwards;
}

@keyframes toastIn {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes toastOut {
    from { opacity: 1; transform: translateY(0); }
    to   { opacity: 0; transform: translateY(-12px); }
}
