/* Estilos globais do sistema */

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

main {
    min-height: calc(100vh - 200px);
}

.card {
    border-radius: 10px;
    border: none;
}

.card-header {
    background-color: #fff;
    border-bottom: 2px solid #f0f0f0;
    font-weight: 600;
}

.btn {
    border-radius: 5px;
}

.badge {
    padding: 0.35em 0.65em;
    font-weight: 500;
}

/* Timeline e progress bars */
.progress {
    border-radius: 10px;
}

/* Tables */
.table {
    background-color: #fff;
}

.table thead th {
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: #6c757d;
}

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

/* Forms */
.form-control, .form-select {
    border-radius: 5px;
}

.form-control:focus, .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Navbar */
.navbar-brand {
    font-weight: 600;
    font-size: 1.3rem;
}

/* Footer */
footer {
    margin-top: auto;
}

/* ── Mobile (Galaxy S21 FE e similares — até 767px) ───────────────────────── */
@media (max-width: 767.98px) {
    /* Tipografia */
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.2rem; }

    /* Inputs e selects maiores para toque — evita zoom automático no Android */
    .form-control, .form-select {
        font-size: 16px;
        min-height: 48px;
        padding: 0.6rem 0.75rem;
    }

    /* Labels mais destacadas */
    .form-label { margin-bottom: 0.4rem; font-weight: 600; }

    /* Botões pequenos: touch target mínimo de 44px */
    .btn-sm {
        padding: 0.5rem 0.75rem;
        font-size: 0.875rem;
        min-height: 44px;
        min-width: 44px;
    }

    /* Botões principais maiores */
    .btn-primary, .btn-secondary { min-height: 48px; }

    /* Reduz margem do container em mobile */
    .container.mt-4 { margin-top: 1rem !important; }

    /* Cards com border-radius menor */
    .card { border-radius: 6px; }

    /* Oculta footer para economizar espaço */
    footer { display: none; }
}
