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

/* Tela de carregamento cobrindo toda a página */
#loading-screen {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 5rem;
    transition: opacity 0.5s ease;
}

/* Quando o Dash estiver pronto, o loading some suavemente */
#loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Skeleton genérico */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e4e4e4 50%, #f0f0f0 75%);
    background-size: 400% 100%;
    animation: skeleton-shimmer 1.5s infinite linear;
    border-radius: 1.5rem;
}

/* =================== HEADER =================== */
.skeleton-header {
    width: 80%;
    height: 10rem;
    margin-bottom: 5rem;
}

/* =================== LAYOUT =================== */
.skeleton-container {
    display: flex;
    width: 90%;
    max-width: 300rem;
    gap: 5rem;
}

/* =================== SIDEBAR =================== */
.skeleton-sidebar {
    width: 20%;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.skeleton-menu {
    width: 100%;
    height: 5rem;
}

/* =================== CONTEÚDO PRINCIPAL =================== */
.skeleton-content-area {
    width: 75%;
    display: flex;
    flex-direction: column;
    gap: 5rem;
}

.skeleton-title {
    width: 60%;
    height: 7rem;
}

/* Simulação de cards */
.skeleton-card {
    width: 100%;
    height: 25rem;
}

/* Simulação de gráficos/tabelas */
.skeleton-chart {
    width: 100%;
    height: 50rem;
}
