/* Skeleton Loading Styles */
.skeleton {
    animation: skeleton-loading 1s linear infinite alternate;
}

@keyframes skeleton-loading {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

.skeleton-header {
    height: 24px;
    background: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 16px;
    width: 70%;
}

.skeleton-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.skeleton-stats::before,
.skeleton-stats::after {
    content: '';
    flex: 1;
    height: 60px;
    background: #e0e0e0;
    border-radius: 8px;
}

.skeleton-chart {
    height: 120px;
    background: #e0e0e0;
    border-radius: 8px;
}

.site-card.skeleton {
    pointer-events: none;
}

.site-card.skeleton .favorite-btn {
    display: none;
}

/* ========== Step Loader ========== */
.dashboard-loader {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 32px;
}

.loader-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e8eaed;
    border-top-color: #4285f4;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.loader-steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 260px;
}

.loader-step {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #bcc1c8;
    font-size: 14px;
    transition: color 0.3s, transform 0.3s;
}

.loader-step .step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #dadce0;
    flex-shrink: 0;
    transition: background 0.3s, box-shadow 0.3s;
}

.loader-step.active {
    color: #202124;
    transform: translateX(4px);
}

.loader-step.active .step-dot {
    background: #4285f4;
    box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.2);
}

.loader-step.completed {
    color: #5f6368;
}

.loader-step.completed .step-dot {
    background: #34a853;
}

.loader-step.completed .step-text::after {
    content: ' ✓';
    color: #34a853;
    font-weight: 600;
}

/* ========== Fade-in ========== */
.fade-in-content {
    animation: fadeInGrid 0.45s ease-out both;
}

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