/* =========================================================
   SISTEMAVS — ADMIN UI (SEM TAILWIND / SEM NPM)
   ======================================================= */

:root {
    --bg: #f4f6f9;
    --sidebar: #0d2f52;
    --primary: #1e5aa8;
    --primary-light: #e8f0fe;
    --text: #1f2937;
    --muted: #6b7280;
    --card: #ffffff;
    --border: #e5e7eb;
    --success: #16a34a;
    --warning: #f59e0b;
    --danger: #dc2626;
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: Inter, Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
}

/* =========================
   LAYOUT BASE
   ========================= */

.app-shell {
    display: flex;
    min-height: 100vh;
}

/* =========================
   SIDEBAR
   ========================= */

.sidebar {
    width: 260px;
    background: var(--sidebar);
    color: #fff;
    display: flex;
    flex-direction: column;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.brand__logo {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #fff;
    color: var(--sidebar);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand__name {
    font-weight: 700;
    font-size: 15px;
}

.brand__role {
    font-size: 12px;
    opacity: .7;
}

.nav-title {
    padding: 16px 20px 6px;
    font-size: 11px;
    letter-spacing: .08em;
    opacity: .6;
}

.nav {
    display: flex;
    flex-direction: column;
    padding: 0 10px;
}

.nav__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 4px;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: background .2s;
}

.nav__link:hover {
    background: rgba(255,255,255,0.1);
}

.nav__link.is-active {
    background: var(--primary);
}

.nav__icon {
    font-size: 18px;
}

.sidebar-footer {
    margin-top: auto;
    padding: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* =========================
   CONTENT
   ========================= */

.content {
    flex: 1;
    padding: 28px;
}

/* =========================
   CARDS
   ========================= */

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.04);
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.card-subtitle {
    font-size: 13px;
    color: var(--muted);
}

/* =========================
   GRID
   ========================= */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

/* =========================
   STATS
   ========================= */

.stat {
    font-size: 34px;
    font-weight: 800;
    margin-top: 10px;
}

.stat-label {
    font-size: 13px;
    color: var(--muted);
}

/* =========================
   BUTTONS
   ========================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn--ghost {
    background: transparent;
    color: #fff;
}

.btn--ghost:hover {
    background: rgba(255,255,255,0.1);
}

/* =========================
   FOOTER INFO
   ========================= */

.last-access {
    font-size: 12px;
    color: var(--muted);
    margin-top: 16px;
}

