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

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

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

.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: #374560;
    background: rgba(11, 18, 35, 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, #1e2942 25%, #374560 50%, #1e2942 75%);
    background-size: 200% 100%;
}

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

/* Notification badge: keep count readable inside the dot */
.notification-badge {
    position: absolute;
    top: 0.15rem;
    right: 0.15rem;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 0.25rem;
    border-radius: 9999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1.1rem;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
