* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f3f4f6;
    color: #111827;
}

body.body-login {
    background: #f4f6fb;
}

.wrap-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.card-login,
.card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
}

.card-login {
    width: 100%;
    max-width: 420px;
    padding: 28px;
}

.card {
    padding: 24px;
}

h1 {
    margin: 0 0 10px;
    font-size: 28px;
}

p.desc {
    margin: 0 0 24px;
    color: #6b7280;
}

.msg,
.erro {
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 14px;
}

.msg {
    background: #ecfdf5;
    color: #065f46;
}

.erro {
    background: #fef2f2;
    color: #991b1b;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
}

input[type="email"],
input[type="password"] {
    width: 100%;
    height: 46px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 0 14px;
    margin-bottom: 16px;
    outline: none;
    font-size: 15px;
    background: #ffffff;
    color: #111827;
}

input[type="email"]:focus,
input[type="password"]:focus {
    border-color: #2563eb;
}

button,
a.btn {
    display: inline-block;
    border: 0;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}

button {
    width: 100%;
    height: 48px;
    background: #2563eb;
    color: #ffffff;
    font-size: 16px;
}

button:hover {
    background: #1d4ed8;
}

.topbar {
    background: #111827;
    color: #ffffff;
    padding: 18px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.topbar-left {
    font-size: 20px;
    font-weight: 700;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 20px;
}

a.btn-danger {
    padding: 10px 14px;
    background: #ef4444;
    color: #ffffff;
}

a.btn-danger:hover {
    background: #dc2626;
}

.text-muted {
    color: #6b7280;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.nav-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.06);
    text-decoration: none;
    color: #111827;
    border: 1px solid #e5e7eb;
}

.nav-card:hover {
    border-color: #2563eb;
    transform: translateY(-2px);
    transition: all 0.2s ease;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    background: #ffffff;
}

.table th,
.table td {
    padding: 12px 14px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    font-size: 14px;
}

.table th {
    background: #f8fafc;
    font-weight: 700;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
}

.col-12 { grid-column: span 12; }
.col-6 { grid-column: span 6; }
.col-4 { grid-column: span 4; }
.col-3 { grid-column: span 3; }

input[type="text"],
input[type="date"],
input[type="number"],
select,
textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 10px 14px;
    outline: none;
    font-size: 15px;
    background: #ffffff;
    color: #111827;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #2563eb;
}

.section-title {
    margin: 0 0 18px;
    font-size: 24px;
    font-weight: 700;
}

.actions-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.btn-secondary {
    padding: 10px 14px;
    background: #0f172a;
    color: #ffffff;
}

.btn-secondary:hover {
    background: #1e293b;
}

.badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: #eef2ff;
    color: #3730a3;
}

@media (max-width: 768px) {
    .col-6,
    .col-4,
    .col-3 {
        grid-column: span 12;
    }
}