:root {
    --brand-navy: #12235c;
    --brand-red: #c8102e;
    --brand-gold: #d4af37;
    --sidebar-width: 260px;
}

body {
    background-color: #f4f6fb;
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
}

/* ---------- Topbar & Brand ---------- */
.brand-banner {
    background: linear-gradient(135deg, var(--brand-navy), var(--brand-red));
    border-radius: 12px;
    padding: 14px 18px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}
.brand-banner .shield {
    width: 46px; height: 46px; border-radius: 50%;
    background: #fff; display: flex; align-items: center; justify-content: center;
    font-weight: 700; color: var(--brand-navy); font-size: 18px;
}
.brand-banner .title { font-weight: 700; font-size: 15px; line-height: 1.3; }
.brand-banner .subtitle { font-size: 11px; opacity: .85; letter-spacing: .5px; }

.topbar {
    background: #fff;
    border-bottom: 1px solid #e7eaf3;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1030;
}

/* ---------- Sidebar ---------- */
.sidebar {
    width: var(--sidebar-width);
    min-height: 100vh;
    background: #fff;
    border-right: 1px solid #e7eaf3;
    padding: 18px 14px;
}
.sidebar .nav-link {
    color: #33395c;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 3px;
    font-size: 14.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.sidebar .nav-link.active, .sidebar .nav-link:hover {
    background: #eaf2ff;
    color: var(--brand-navy);
    font-weight: 600;
}
.sidebar .sub-link {
    font-size: 13.5px;
    padding: 8px 12px 8px 34px;
    color: #55598a;
    border-left: 2px solid #e7eaf3;
    margin-left: 20px;
}
.sidebar .sub-link.active { color: var(--brand-red); font-weight: 600; border-left-color: var(--brand-red); }

.help-card {
    background: linear-gradient(135deg, #cfe4ff, #d9d3ff);
    border-radius: 14px;
    padding: 18px;
    margin-top: 20px;
}

/* ---------- Stat Cards ---------- */
.stat-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 2px 10px rgba(20,30,70,.04);
    height: 100%;
}
.stat-card .icon-box {
    width: 46px; height: 46px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: #fff; flex-shrink: 0;
}
.stat-card .value { font-size: 26px; font-weight: 700; color: #1a1f3d; }
.stat-card .label { font-size: 13px; color: #6a6f8c; }
.badge-soft { background:#eef7f1; color:#1c9b5e; font-size: 11px; padding: 2px 8px; border-radius: 20px;}

.card-panel {
    background: #fff;
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 2px 10px rgba(20,30,70,.04);
}

.form-section-title {
    font-weight: 600;
    color: var(--brand-navy);
    margin-bottom: 12px;
    font-size: 15px;
}

.barcode-tag {
    font-family: 'Courier New', monospace;
    background: #12235c10;
    border: 1px dashed var(--brand-navy);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12.5px;
    color: var(--brand-navy);
}

.status-pill { font-size: 11.5px; padding: 3px 10px; border-radius: 20px; font-weight: 600; }
.status-in_stock { background:#e7f6ec; color:#1c9b5e; }
.status-out { background:#fff3cd; color:#8a6d00; }
.status-disposed { background:#f1e6ff; color:#6c2bd9; }
.status-seized { background:#fde8e8; color:#c8102e; }
.status-released { background:#e7f6ec; color:#1c9b5e; }

@media print {
    .no-print { display: none !important; }
    .sidebar, .topbar { display: none !important; }
}

.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #12235c, #c8102e);
}
.login-card {
    background: #fff;
    border-radius: 18px;
    padding: 36px 34px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
