:root {
    --primary: #4361ee;
    --bg-light: #f3f5f9;
    --sidebar-width: 260px;
}
body { font-family: 'Poppins', sans-serif; background-color: var(--bg-light); font-size: 0.85rem; overflow-x: hidden; }

/* Sidebar */
#sidebar { width: var(--sidebar-width); height: 100vh; position: fixed; background: white; z-index: 1000; padding-top: 20px; border-right: 1px solid #eee; transition: 0.3s; }
.brand-logo { font-size: 1.4rem; font-weight: 700; color: var(--primary); padding: 0 25px 30px; display: flex; align-items: center; }
.nav-link { color: #6c757d; padding: 12px 25px; font-weight: 500; transition: 0.3s; cursor: pointer; display: block; text-decoration: none; }
.nav-link:hover, .nav-link.active { color: var(--primary); background: #f0f4ff; border-right: 3px solid var(--primary); }

/* Content */
#content { margin-left: var(--sidebar-width); padding: 30px; transition: 0.3s; }

/* Cards & Components */
.card-stat { background: white; border: none; border-radius: 12px; padding: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.02); margin-bottom: 20px; transition: transform 0.2s; }
.card-stat:hover { transform: translateY(-3px); }
.icon-shape { width: 45px; height: 45px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-right: 15px; }

.filter-section { background: white; border-radius: 12px; padding: 20px; border: 1px solid #eef0f7; margin-bottom: 20px; }
.table-card { background: white; border-radius: 12px; padding: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.02); }

/* Table Tweaks */
thead th { background-color: #f8f9fa !important; color: #555; text-transform: uppercase; font-size: 0.75rem; padding: 12px 10px; border-bottom: 2px solid #eee; }
.badge-cat { background-color: #e3f2fd; color: #0d47a1; padding: 4px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: 600; }
.badge-plat { background-color: #f3e5f5; color: #7b1fa2; padding: 4px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: 600; }

/* Loader */
#loader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255,255,255,0.8); z-index: 9999; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(2px); }
.spinner { width: 40px; height: 40px; border: 4px solid #f3f3f3; border-top: 4px solid var(--primary); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }