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

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

.sidebar {
    width: 240px;
    background: #1a1a2e;
    color: #fff;
    height: 100vh;
    position: fixed;
    top: 0; left: 0;
    display: flex;
    flex-direction: column;
    padding: 24px 0;
}

.sidebar .logo {
    text-align: center;
    padding: 0 16px 24px;
    font-size: 20px;
    font-weight: bold;
    border-bottom: 1px solid #333;
}

.sidebar nav a {
    display: block;
    padding: 14px 24px;
    color: #ccc;
    text-decoration: none;
    transition: background .2s;
}

.sidebar nav a:hover,
.sidebar nav a.active {
    background: #16213e;
    color: #fff;
}

.main {
    margin-left: 240px;
    padding: 32px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.topbar h1 { font-size: 22px; }

.card {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    margin-bottom: 24px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    text-align: center;
}

.stat-card .valor {
    font-size: 32px;
    font-weight: bold;
    color: #e63946;
}

.stat-card .label {
    color: #888;
    font-size: 14px;
    margin-top: 4px;
}

table { width: 100%; border-collapse: collapse; }
table th, table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #eee; }
table th { font-weight: 600; color: #555; background: #fafafa; }

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
}

.btn-primary { background: #e63946; color: #fff; }
.btn-primary:hover { background: #c1121f; }
.btn-secondary { background: #eee; color: #333; }

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success { background: #d4edda; color: #155724; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-danger  { background: #f8d7da; color: #721c24; }
