/* Prevent light flash on navigation when dark mode is active */
html.dark {
    background-color: #020617;
    color-scheme: dark;
}

html.light {
    background-color: #f8fafc;
    color-scheme: light;
}

html.dark body {
    background-color: #020617;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2.5rem 1.5rem;
    border: 1px dashed #cbd5e1;
    border-radius: 1rem;
    background: rgba(248, 250, 252, 0.6);
}

html.dark .empty-state {
    border-color: #334155;
    background: rgba(15, 23, 42, 0.4);
}

.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.skeleton {
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: skeleton-shine 1.2s ease-in-out infinite;
    border-radius: 0.5rem;
}

html.dark .skeleton {
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
    background-size: 200% 100%;
}

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