:root {
    font-family: "Segoe UI", Arial, sans-serif;
    color-scheme: light;
}

body {
    margin: 0;
    padding: 0;
    background: #f4f6fc;
    color: #1f2933;
}

header {
    background: #1d4ed8;
    color: #f9fafb;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
}

main {
    max-width: 960px;
    margin: 2rem auto;
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}

ul {
    line-height: 1.8;
}

.menu-principal {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.menu-principal form {
    margin: 0;
}

.saudacao {
    font-weight: 600;
}

.pagina-autenticacao {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
}

.cartao-autenticacao {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.25);
}

.cartao-autenticacao h1 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #1d4ed8;
}

.cartao-autenticacao form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cartao-autenticacao label {
    font-weight: 600;
    color: #1f2937;
}

.cartao-autenticacao input {
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    font-size: 1rem;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.cartao-autenticacao input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.cartao-autenticacao button {
    padding: 0.85rem;
    border: none;
    border-radius: 10px;
    background: #1d4ed8;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.cartao-autenticacao button:hover {
    background: #1e40af;
}

.cartao-autenticacao button:active {
    transform: translateY(1px);
}

.alerta {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.alerta-erro {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.alerta-sucesso {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.nota {
    margin-top: 1.5rem;
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
}

.botao-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    background: #2563eb;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

.botao-perigo {
    background: #dc2626;
}

.botao-perigo:hover {
    background: #b91c1c;
}

.tabela-container {
    overflow-x: auto;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
}

.tabela-listagem {
    width: 100%;
    border-collapse: collapse;
}

.tabela-listagem thead {
    background: #1d4ed8;
    color: #f9fafb;
}

.tabela-listagem th,
.tabela-listagem td {
    padding: 0.9rem 1.1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.tabela-listagem tbody tr:nth-child(even) {
    background: #f8fafc;
}

.formulario-padrao {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.formulario-padrao .campo {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.formulario-padrao textarea {
    resize: vertical;
    min-height: 140px;
}

.acoes-formulario {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.grupo-checkbox {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.grupo-checkbox label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.85rem;
    border-radius: 10px;
    background: #e0e7ff;
    color: #1e3a8a;
    cursor: pointer;
    user-select: none;
}

.grupo-checkbox input {
    accent-color: #1d4ed8;
}

.grupo-permissoes {
    border: 1px solid #e0e7ff;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.grupo-permissoes legend {
    font-weight: 700;
    color: #1d4ed8;
    padding: 0 0.5rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.dashboard-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.dashboard-card h2 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.lista-status {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lista-status li {
    padding: 0.4rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.lista-status li:last-child {
    border-bottom: none;
}

.dashboard-full {
    grid-column: 1 / -1;
}

