* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Segoe UI', sans-serif;
    background: #f4f5f7;
    color: #333;
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #1a1a2e;
    color: white;
    padding: 0.8rem 2rem;
}

.nav-brand {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-menu a {
    color: #ccc;
    text-decoration: none;
    margin: 0 1rem;
    font-size: 0.95rem;
}

.nav-menu a:hover { color: white; }

.nav-user {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-user .ruolo {
    background: #e94560;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.nav-user a {
    color: #ccc;
    text-decoration: none;
}

.nav-user a:hover { color: white; }

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

footer {
    text-align: center;
    padding: 1.5rem;
    color: #888;
    font-size: 0.85rem;
    margin-top: 3rem;
    border-top: 1px solid #ddd;
}

.card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
}

.card h2 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: #1a1a2e;
    border-bottom: 2px solid #e94560;
    padding-bottom: 0.5rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

th {
    background: #1a1a2e;
    color: white;
    padding: 0.7rem 1rem;
    text-align: left;
    font-weight: 500;
}

td {
    padding: 0.7rem 1rem;
    border-bottom: 1px solid #eee;
}

tr:hover td { background: #f9f9f9; }

.btn {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: none;
}

.btn-primary { background: #e94560; color: white; }
.btn-primary:hover { background: #c73652; }
.btn-secondary { background: #1a1a2e; color: white; }
.btn-secondary:hover { background: #2d2d4e; }

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #e94560;
}

.alert {
    padding: 0.8rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert-error { background: #fde8ec; color: #c73652; border-left: 4px solid #e94560; }
.alert-success { background: #e8f5e9; color: #2e7d32; border-left: 4px solid #4caf50; }

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center;
}

.stat-card .number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #e94560;
}

.stat-card .label {
    font-size: 0.9rem;
    color: #888;
    margin-top: 0.3rem;
}
.banner-sistema {
    background: #fff3cd;
    color: #856404;
    border-bottom: 2px solid #ffc107;
    padding: 0.75rem 1.5rem;
    text-align: center;
    font-weight: 500;
}
