:root {
    --navbar-blue: #0a2e5c;
    --page-bg: #f0f2f5;
    --text-light: #f8f9fa;
    --text-dark: #343a40;
    --breadcrumb-link: #c82333; /* Vermelho para o link ativo do breadcrumb */
}

body {
    background-color: var(--page-bg);
}

/* --- Barra de Navegação Superior --- */
.navbar-custom {
    background-color: var(--navbar-blue);
    padding: 0.75rem 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-custom .navbar-brand img {
    max-height: 40px;
}

.user-info {
    color: var(--text-light);
    margin-right: 1rem;
}

.btn-logout {
    border-color: var(--text-light);
    color: var(--text-light);
    font-weight: 500;
}

.btn-logout:hover {
    background-color: var(--text-light);
    color: var(--navbar-blue);
}

/* --- (NOVO) Estilos para Breadcrumbs --- */
.breadcrumb-bar {
    padding: 1rem 2rem;
    background-color: #e9ecef; /* Cinza um pouco mais escuro que o fundo */
    border-bottom: 1px solid #dee2e6;
}

.breadcrumb-bar a {
    color: var(--breadcrumb-link);
    text-decoration: none;
    font-weight: 600;
}

.breadcrumb-bar a:hover {
    text-decoration: underline;
}

.breadcrumb-bar .separator {
    margin: 0 0.5rem;
    color: #6c757d;
}

.breadcrumb-bar .current-page {
    color: #6c757d;
    font-weight: 500;
}


/* --- Painel de Conteúdo Principal --- */
.content-panel {
    background-color: white;
    margin: 2rem auto;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    max-width: 1200px;
}

/* --- Grid dos Módulos --- */
.modules-grid {
    display: grid;
    /* Ajustado para criar botões mais quadrados */
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.module-box {
    background-color: var(--navbar-blue);
    color: white;
    text-align: center;
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    /* --- CORREÇÃO DEFINITIVA PARA O FORMATO QUADRADO --- */
    width: 200px;
    height: 200px;

    padding: 1rem;
}

.module-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
    color: white;
}

.module-box i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.module-box p {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

.module-icon-wrapper {
    /* Define uma caixa de tamanho fixo para o ícone */
    width: 60px;
    height: 60px;

    /* Centraliza o ícone dentro da caixa */
    display: flex;
    justify-content: center;
    align-items: center;

    /* Garante que o ícone em si não afete o tamanho */
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Sobrescreve o estilo padrão do ícone para que ele se ajuste ao wrapper */
.module-icon-wrapper i {
    font-size: inherit; /* Herda o font-size do wrapper */
    margin-bottom: 0;   /* Remove a margem interna do ícone */
}