/* =========================================
   1. Skeleton Loading Animation
   ========================================= */
.skeleton-loader {
    background: #f0f2f5;
    background: linear-gradient(90deg, #f0f2f5 25%, #e6e8eb 37%, #f0f2f5 63%);
    background-size: 400% 100%;
    animation: skeleton-loading 1.4s ease infinite;
    border-radius: 4px;
    color: transparent !important;
    pointer-events: none;
    user-select: none;
}

.skeleton-text {
    height: 0.8rem;
    margin-bottom: 0.5rem;
    width: 100%;
}

.skeleton-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

@keyframes skeleton-loading {
    0% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0 50%;
    }
}

/* =========================================
   2. Mobile Card Tables (Responsive "Reflow")
   ========================================= */
@media (max-width: 768px) {
    .table-mobile-cards thead {
        display: none;
    }

    .table-mobile-cards tr {
        display: block;
        margin-bottom: 1rem;
        background: var(--card-bg, #fff);
        border: 1px solid var(--border-color, #e2e8f0);
        border-radius: 0.75rem;
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
        padding: 1rem;
    }

    .table-mobile-cards td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border: none;
        border-bottom: 1px dashed #f1f5f9;
        text-align: right;
    }

    .table-mobile-cards td:last-child {
        border-bottom: none;
    }

    /* Add labels using data-label attribute if available */
    .table-mobile-cards td::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 0.75rem;
        text-transform: uppercase;
        color: var(--text-muted, #64748b);
        text-align: left;
        margin-right: 1rem;
    }
}

/* =========================================
   3. Premium Scrollbars
   ========================================= */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* =========================================
   4. Activity Timeline
   ========================================= */
.timeline {
    position: relative;
    padding-left: 2rem;
    border-left: 2px solid #e2e8f0;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.35rem;
    /* Adjust based on border width and padding */
    top: 0.25rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #cbd5e1;
    z-index: 1;
}

.timeline-item.active::before {
    background: var(--primary, #4f46e5);
    border-color: var(--primary, #4f46e5);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.2);
}

.timeline-date {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.timeline-content {
    background: #f8fafc;
    border-radius: 0.5rem;
    padding: 0.75rem;
    border: 1px solid #f1f5f9;
}