/* ========================================
   SKELETON LOADER STYLES
   Matching dark theme aesthetic
   ======================================== */

/* Base skeleton class with pulse animation */
.skeleton {
    background: linear-gradient(90deg,
            rgba(30, 30, 45, 0.8) 0%,
            rgba(50, 50, 70, 0.6) 50%,
            rgba(30, 30, 45, 0.8) 100%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes skeleton-pulse {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Skeleton text lines */
.skeleton-text {
    height: 16px;
    width: 100%;
    margin-bottom: 8px;
}

.skeleton-text.sm {
    height: 12px;
    width: 60%;
}

.skeleton-text.lg {
    height: 32px;
    width: 80%;
}

.skeleton-text.xl {
    height: 40px;
    width: 70%;
}

/* Skeleton for balance/value displays */
.skeleton-value {
    height: 36px;
    width: 120px;
    border-radius: 6px;
}

.skeleton-value.lg {
    height: 48px;
    width: 160px;
}

/* Skeleton circles (for logos) */
.skeleton-circle {
    border-radius: 50%;
    flex-shrink: 0;
}

.skeleton-circle.sm {
    width: 22px;
    height: 22px;
}

.skeleton-circle.md {
    width: 32px;
    height: 32px;
}

/* Skeleton for chart area */
.skeleton-chart {
    width: 100%;
    height: 256px;
    border-radius: 12px;
}

@media (min-width: 768px) {
    .skeleton-chart {
        height: 320px;
    }
}

/* Skeleton ticker item */
.skeleton-ticker-item {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.65rem;
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    min-height: 70px;
}

.skeleton-ticker-item .ticker-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

/* Skeleton table row */
.skeleton-table-row {
    display: flex;
    padding: 0.75rem 1rem;
    gap: 1rem;
}

.skeleton-table-row .skeleton-cell {
    flex: 1;
    height: 20px;
    border-radius: 4px;
}

.skeleton-table-row .skeleton-cell:first-child {
    flex: 0.8;
}

.skeleton-table-row .skeleton-cell:last-child {
    flex: 1.2;
}

/* Skeleton for sparkline area */
.skeleton-sparkline {
    width: 60px;
    height: 24px;
    border-radius: 4px;
}

/* Card content skeleton wrapper */
.skeleton-card-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Hide skeleton when content loaded */
.skeleton-hidden {
    display: none !important;
}

/* Fade out transition */
.skeleton-fade-out {
    opacity: 0;
    transition: opacity 0.3s ease-out;
    pointer-events: none;
}

/* Skeleton for sidebar links */
.skeleton-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 4px;
}

.skeleton-sidebar-link .skeleton-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.skeleton-sidebar-link .skeleton-link-text {
    height: 14px;
    width: 80px;
    border-radius: 4px;
}