:root {
    --sidebar-width: 280px;
    --brand: #198754;
    --soft-bg: #f6f8fb;
}
body { background: var(--soft-bg); color: #1f2937; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar-width); background: #102018; color: #fff; position: fixed; top: 0; bottom: 0; left: 0; overflow-y: auto; padding: 18px; }
.brand-box { display: flex; gap: 12px; align-items: center; padding: 8px 6px 20px; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 14px; }
.brand-logo { width: 44px; height: 44px; display: grid; place-items: center; background: var(--brand); border-radius: 14px; font-size: 22px; }
.brand-title { font-weight: 700; font-size: 18px; line-height: 1.1; }
.brand-subtitle { color: #a7c7b3; font-size: 12px; }
.sidebar-nav .nav-link { color: #d6e6dc; border-radius: 12px; padding: 10px 12px; display: flex; gap: 10px; align-items: center; margin-bottom: 3px; }
.sidebar-nav .nav-link:hover, .sidebar-nav .nav-link.active { background: rgba(25,135,84,.22); color: #fff; }
.sidebar-nav .nav-link.active { border-left: 3px solid #49d48a; }
.main-content { margin-left: var(--sidebar-width); width: calc(100% - var(--sidebar-width)); min-height: 100vh; }
.topbar { height: 86px; display: flex; align-items: center; gap: 16px; padding: 0 28px; background: #fff; border-bottom: 1px solid #e5e7eb; position: sticky; top: 0; z-index: 100; }
.topbar h1 { font-size: 24px; margin: 0; font-weight: 700; }
.card { border-radius: 18px; }
.card-header { border-radius: 18px 18px 0 0 !important; }
.stat-card { border-radius: 18px; padding: 20px; color: #fff; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 10px 26px rgba(16,32,24,.08); }
.stat-card span { display: block; opacity: .9; font-size: 13px; }
.stat-card strong { display: block; font-size: 27px; margin-top: 4px; }
.stat-card i { font-size: 34px; opacity: .85; }
.stat-primary { background: linear-gradient(135deg, #198754, #0f5132); }
.stat-info { background: linear-gradient(135deg, #0dcaf0, #0d6efd); }
.stat-warning { background: linear-gradient(135deg, #ffc107, #fd7e14); }
.stat-danger { background: linear-gradient(135deg, #dc3545, #842029); }
.stat-secondary { background: linear-gradient(135deg, #6c757d, #343a40); }
.table thead th { white-space: nowrap; color: #526070; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; }
.table td { vertical-align: middle; }
.form-label { font-weight: 600; color: #374151; }
.required:after { content: ' *'; color: #dc3545; }
.login-page { min-height: 100vh; display: flex; align-items: center; background: linear-gradient(135deg, #102018, #198754); }
.login-card { max-width: 430px; margin: auto; border-radius: 22px; overflow: hidden; }
.animal-photo { width: 58px; height: 58px; object-fit: cover; border-radius: 14px; background: #edf2f7; }
.detail-photo { max-width: 260px; border-radius: 18px; border: 1px solid #e5e7eb; }
.search-bar { background: #fff; border-radius: 18px; padding: 16px; box-shadow: 0 10px 22px rgba(16,32,24,.04); }
@media (max-width: 991px) {
    .sidebar { display: none; }
    .main-content { margin-left: 0; width: 100%; }
    .topbar { padding: 0 16px; }
}
@media print {
    .sidebar, .topbar, .btn, .offcanvas { display: none !important; }
    .main-content { margin-left: 0; width: 100%; }
    body { background: #fff; }
    .card { box-shadow: none !important; border: 1px solid #ddd !important; }
}
