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

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

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

.sidebar .logo {
    padding: 24px 20px;
    font-size: 16px;
    font-weight: 700;
    background: #1e293b;
    letter-spacing: .5px;
}

.sidebar .logo span { color: #38bdf8; }

.sidebar nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: all .2s;
    border-left: 3px solid transparent;
}

.sidebar nav a:hover,
.sidebar nav a.active {
    background: #1e293b;
    color: #fff;
    border-left-color: #38bdf8;
}

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

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

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

.topbar .admin-tag {
    background: #0f172a;
    color: #38bdf8;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

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

.stat-card {
    background: #fff;
    border-radius: 10px;
    padding: 22px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.stat-card .valor {
    font-size: 34px;
    font-weight: 700;
    color: #0f172a;
}

.stat-card .label {
    color: #64748b;
    font-size: 13px;
    margin-top: 4px;
}

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

table { width: 100%; border-collapse: collapse; }
table th, table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #f1f5f9; }
table th { font-size: 13px; font-weight: 600; color: #64748b; background: #f8fafc; }

.btn {
    display: inline-block;
    padding: 9px 18px;
    border-radius: 7px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.btn-primary   { background: #0ea5e9; color: #fff; }
.btn-primary:hover { background: #0284c7; }
.btn-danger    { background: #ef4444; color: #fff; }
.btn-secondary { background: #e2e8f0; color: #333; }

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

.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef9c3; color: #854d0e; }
.badge-danger  { background: #fee2e2; color: #991b1b; }
.badge-info    { background: #e0f2fe; color: #075985; }
