/* Reset básico e fontes */
html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    height: 100%;
    margin: 0;
    background-color: #f8f9fa;
}

/* Layout Principal */
.page {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Menu Lateral (Sidebar) */
.sidebar {
    background-image: linear-gradient(180deg, #052c65 0%, #3a0647 70%);
    color: white;
}

/* Em telas grandes, o sidebar fica na esquerda */
@media (min-width: 641px) {
    .page {
        flex-direction: row;
    }

    .sidebar {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .content {
        flex: 1;
        overflow-y: auto; /* Permite rolar o conteúdo principal */
        padding: 2rem;
    }
}

/* Links do Menu */
.nav-item {
    font-size: 0.9rem;
    padding-bottom: 0.5rem;
}

    .nav-item:first-of-type {
        padding-top: 1rem;
    }

    .nav-item a {
        color: #d7d7d7;
        border-radius: 4px;
        height: 3rem;
        display: flex;
        align-items: center;
        line-height: 3rem;
        text-decoration: none;
    }

        .nav-item a.active {
            background-color: rgba(255,255,255,0.37);
            color: white;
        }

        .nav-item a:hover {
            background-color: rgba(255,255,255,0.1);
            color: white;
        }

/* Estilos de Cartões e Tabelas */
.card {
    border-radius: 0.5rem;
    border: none;
}

.btn {
    border-radius: 0.25rem;
}

/* Cores utilitárias que usamos no código */
.bg-primary {
    background-color: #0d6efd !important;
}

.bg-success {
    background-color: #198754 !important;
}

.bg-danger {
    background-color: #dc3545 !important;
}

.bg-warning {
    background-color: #ffc107 !important;
}

.bg-info {
    background-color: #0dcaf0 !important;
}

/* Status da conexão Blazor */
#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
