/* ============================================================
   SISTEMA DE GESTÃO DE DISCÍPULOS
   Estilos Gerais
   ============================================================ */

/* Geral */
body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.95rem;
}

/* Navbar */
.navbar-brand {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

/* Cards */
.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
}

.card-header {
    border-radius: 10px 10px 0 0 !important;
    font-weight: 600;
}

/* Tabelas */
.table thead th {
    background-color: #343a40;
    color: #fff;
    font-weight: 500;
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table tbody tr:hover {
    background-color: #f1f3f5;
}

/* Badges */
.badge {
    font-size: 0.78rem;
    padding: 0.4em 0.7em;
}

/* Botões */
.btn {
    border-radius: 6px;
    font-size: 0.88rem;
}

.btn-sm {
    font-size: 0.80rem;
}

/* Formulários */
.form-label {
    font-weight: 500;
    font-size: 0.88rem;
    margin-bottom: 0.3rem;
}

.form-control, .form-select {
    border-radius: 6px;
    font-size: 0.90rem;
}

.form-control:focus, .form-select:focus {
    border-color: #495057;
    box-shadow: 0 0 0 0.2rem rgba(73, 80, 87, 0.15);
}

/* Alertas */
.alert {
    border-radius: 8px;
    font-size: 0.90rem;
}

/* Footer */
.footer {
    font-size: 0.82rem;
}

/* Títulos de página */
.page-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 1.5rem;
}

/* Métricas / Cards de resumo */
.card-metrica {
    text-align: center;
    padding: 1rem;
}

.card-metrica .numero {
    font-size: 2rem;
    font-weight: 700;
    color: #343a40;
}

.card-metrica .label {
    font-size: 0.85rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-metrica .kpi-detalhe {
    color: #495057;
}

.card-metrica .kpi-detalhe .text-muted {
    color: #6c757d !important;
}

/* ── Filtro fixo na Visão Geral (agora vive no slot do header) ── */
#slot-filtro-fixo {
    position: sticky;
    top: 56px;
    z-index: 1029;
    background-color: #f8f9fa;
}

/* Garante que o dropdown da navbar fique acima do filtro fixo */
.navbar .dropdown-menu {
    z-index: 1031;
}

#slot-filtro-fixo .filtro-fixo-conteudo {
    padding: 0.4rem 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    border-bottom: 1px solid #dee2e6;
}