/* ======= Layout Geral ======= */
body {
    margin: 0;
    background: #f3f5fb;
    font-family: "Segoe UI", Arial, sans-serif;
}

/* ======= HEADER ======= */
header {
    background: #0a2a66;
    color: white;
    padding: 20px 0;
    text-align: center;
    font-size: 28px;
    font-weight: bold;
}

/* ======= MENU ======= */
nav {
    background: #0a2a66;
    display: flex;
    justify-content: center;
    padding-bottom: 10px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 25px;
    padding: 0;
}

nav a {
    color: white;
    padding: 8px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
}

nav a.ativo {
    border: 2px solid #4fa3ff;
    background: #0f3b85;
}

/* ======= CARD ======= */
.card {
    margin: 50px auto;
    width: 70%;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ======= Título ======= */
.center {
    text-align: center;
}

/* ======= Barra de Pesquisa ======= */
.busca-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

input {
    padding: 10px;
    width: 220px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.btn {
    background: #0a2a66;
    border: none;
    padding: 10px 18px;
    color: white;
    border-radius: 6px;
    cursor: pointer;
}

.btn:hover {
    background: #0d3a88;
}

.btn.secondary {
    background: #777;
}

.btn.secondary:hover {
    background: #555;
}

#btnLimpar {
    text-decoration: none !important;
}
#btnLimpar:hover {
    text-decoration: none !important;
}

/* ======= Avisos ======= */
.aviso-preencher {
    text-align: center;
    color: #444;
    margin-top: 10px;
}

.erro-msg {
    text-align: center;
    color: red;
    font-weight: bold;
    margin-top: 10px;
}

.hidden {
    display: none !important;
}

/* =======================================
        TABELA ORIGINAL (ESTÉTICA ANTIGA)
   ======================================= */
table {
    width: 80%;
    margin: 30px auto;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

th {
    background: #0a2a66;
    color: white;
    padding: 12px;
}

td {
    padding: 11px;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

/* ===== Hover antigo ===== */
tr:hover {
    background: #f7f9ff;
}

/* ======= Botão PAGAR ======= */
.btn-pagar {
    background: #0077ff;
    padding: 6px 12px;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

.btn-pagar:hover {
    background: #005fcc;
}

/* ======= Loading ======= */
.loading {
    text-align: center;
    margin-top: 18px;
}

.spinner {
    border: 4px solid #ddd;
    border-top: 4px solid #0a2a66;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    margin: auto;
    animation: spin 0.9s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}