/* ============================================================
   Sistema de Presenças — Estilos globais
   ============================================================ */

   :root {
    --brand-primary: #4a90e2;
    --brand-primary-dark: #2c6fb7;
    --brand-primary-light: #eaf3fc;
    --brand-primary-soft: #d4e7f7;
    --brand-accent: #0d3b66;
    --brand-success: #198754;
    --brand-warning: #f0ad4e;
    --brand-danger: #dc3545;
    --brand-info: #0dcaf0;
    --brand-gray: #6c757d;
}

body {
    background: #f4f6f9;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ============================================================
   NAVBAR
   ============================================================ */

.navbar-brand-app {
    background: linear-gradient(135deg, #6bb3f2 0%, #4a90e2 100%);
    box-shadow: 0 2px 8px rgba(74, 144, 226, .25);
    padding: .6rem 1rem;
}

.navbar-brand-app .navbar-brand {
    font-weight: 700;
    letter-spacing: .3px;
    font-size: 1.15rem;
}

.navbar-brand-app .nav-link {
    color: rgba(255, 255, 255, .92) !important;
    font-weight: 500;
    padding: .5rem .9rem !important;
    border-radius: 6px;
    transition: all .15s ease;
    margin: 0 .1rem;
}

.navbar-brand-app .nav-link:hover {
    background: rgba(255, 255, 255, .15);
    color: #fff !important;
}

.navbar-brand-app .nav-link.active {
    background: rgba(255, 255, 255, .25);
    color: #fff !important;
    font-weight: 600;
}

.navbar-brand-app .navbar-text {
    color: rgba(255, 255, 255, .9) !important;
}

.navbar-brand-app .btn-outline-light {
    border-color: rgba(255, 255, 255, .5);
    color: #fff;
}

.navbar-brand-app .btn-outline-light:hover {
    background: rgba(255, 255, 255, .2);
    border-color: #fff;
}

/* ============================================================
   CARDS
   ============================================================ */

.card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
}

.card-header {
    background: #fff;
    border-bottom: 1px solid #eef1f5;
    font-weight: 600;
    border-radius: 10px 10px 0 0 !important;
}

/* Cards coloridos (dashboard) */
.card.border-primary { border-left: 4px solid var(--brand-primary) !important; }
.card.border-success { border-left: 4px solid var(--brand-success) !important; }
.card.border-info    { border-left: 4px solid var(--brand-info) !important; }
.card.border-warning { border-left: 4px solid var(--brand-warning) !important; }
.card.border-danger  { border-left: 4px solid var(--brand-danger) !important; }
.card.border-secondary { border-left: 4px solid var(--brand-gray) !important; }

/* ============================================================
   STAT CARDS (dashboard)
   ============================================================ */

.stat-card {
    transition: transform .15s ease, box-shadow .15s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .1);
}

.stat-card .stat-icon {
    font-size: 1.6rem;
    opacity: .85;
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
}

.stat-card .stat-label {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: #6c757d;
    font-weight: 600;
}

/* ============================================================
   FILTROS / FORMULÁRIOS
   ============================================================ */

.filter-card .form-label {
    font-size: .82rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: .3rem;
}

.form-label {
    font-weight: 600;
    color: #495057;
    font-size: .9rem;
}

.btn {
    border-radius: 7px;
    font-weight: 500;
    transition: all .15s ease;
}

.btn-primary {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
}

.btn-primary:hover {
    background: var(--brand-primary-dark);
    border-color: var(--brand-primary-dark);
}

/* ============================================================
   TABELAS
   ============================================================ */

.table {
    font-size: .92rem;
}

.table > thead > tr > th {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .4px;
    font-weight: 700;
    color: #495057;
    background: #f8fafc !important;
    border-bottom: 2px solid #e9ecef;
}

.table-hover > tbody > tr:hover > * {
    background: #f8fbff;
}

.table td {
    vertical-align: middle;
}

/* ============================================================
   BADGES
   ============================================================ */

.badge {
    font-weight: 600;
    padding: .35em .6em;
    border-radius: 5px;
}

.badge-geo-escritorio { background: var(--brand-success); color: #fff; }
.badge-geo-externo    { background: var(--brand-info); color: #003; }
.badge-geo-semgps     { background: var(--brand-gray); color: #fff; }

.distancia-tag {
    font-size: .72rem;
    margin-top: .15rem;
}

/* ============================================================
   HIGHLIGHT (funcionário individual)
   ============================================================ */

.func-highlight {
    background: linear-gradient(90deg, #eaf3fc 0%, #f8fafc 100%);
    border-left: 5px solid var(--brand-accent);
}

.func-highlight .nome {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--brand-accent);
}

.func-highlight .info {
    color: #555;
    font-size: .9rem;
}

.func-highlight .badge-tipo {
    font-size: .75rem;
    padding: .35em .7em;
    vertical-align: middle;
}

/* Links com nome (preto, sublinha no hover) */
a.nome-link {
    color: #000;
    text-decoration: none;
    font-weight: inherit;
}

a.nome-link:hover {
    color: #000;
    text-decoration: underline;
    text-decoration-color: var(--brand-accent);
    text-decoration-thickness: 2px;
}

/* ============================================================
   BOTÕES COM ÍCONES (labels)
   ============================================================ */

.btn-icon-label {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

/* ============================================================
   FORMULÁRIOS EM LINHA
   ============================================================ */

.form-control, .form-select {
    border-radius: 7px;
    border-color: #dee2e6;
}

.form-control:focus, .form-select:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 .2rem rgba(74, 144, 226, .15);
}

/* ============================================================
   ALERTAS E PEQUENOS DETALHES
   ============================================================ */

.alert {
    border-radius: 8px;
    border: none;
}

h1 {
    font-weight: 700;
    color: #212529;
    font-size: 1.6rem;
}

h1 .page-icon {
    margin-right: .4rem;
}
