:root {
    --tblr-primary: #2a5298;
    --tblr-primary-dark: #1e3c72;
}

* { font-family: 'Sarabun', -apple-system, BlinkMacSystemFont, sans-serif !important; }

/* Sidebar gradient */
.navbar-vertical {
    background: linear-gradient(180deg, #1e3c72 0%, #2a5298 100%);
}

/* Stat card */
.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    border-left: 4px solid var(--tblr-primary);
    transition: all .2s;
}
.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,.1);
}
.stat-card .stat-icon {
    width: 48px; height: 48px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    color: #fff;
}
.stat-card .stat-value { font-size: 1.8rem; font-weight: 700; color: #1a1a1a; }
.stat-card .stat-label { font-size: .85rem; color: #6b7280; }

/* Color palette */
.bg-blue   { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.bg-green  { background: linear-gradient(135deg, #22c55e, #15803d); }
.bg-orange { background: linear-gradient(135deg, #f59e0b, #b45309); }
.bg-purple { background: linear-gradient(135deg, #a855f7, #7e22ce); }
.bg-red    { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.bg-cyan   { background: linear-gradient(135deg, #06b6d4, #0e7490); }

/* Table styling */
.table thead th {
    background: #f8f9fc;
    color: #4b5563;
    font-weight: 600;
    text-transform: uppercase;
    font-size: .75rem;
    letter-spacing: .5px;
}

/* Badge purple */
.badge.bg-purple { background: #a855f7 !important; }

/* Member card */
.member-card {
    width: 340px; height: 210px;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    border-radius: 16px; color: #fff;
    padding: 18px; position: relative; overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.member-card::before {
    content: ''; position: absolute; right: -40px; top: -40px;
    width: 180px; height: 180px;
    background: rgba(255,255,255,.08); border-radius: 50%;
}
.member-card::after {
    content: ''; position: absolute; left: -20px; bottom: -30px;
    width: 120px; height: 120px;
    background: rgba(255,255,255,.05); border-radius: 50%;
}

/* Print */
@media print {
    .navbar, .navbar-vertical, .footer, .btn, .no-print { display: none !important; }
    .page-wrapper { margin-left: 0 !important; }
}