:root {
  --simba-primary: #2452b0;
  --simba-primary-dark: #1a3c8a;
  --simba-bg: #f4f6fb;
  --simba-sidebar-w: 250px;
}

body {
  background: var(--simba-bg);
  font-family: 'Segoe UI', Roboto, -apple-system, sans-serif;
}

/* ---------- Login page ---------- */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--simba-primary) 0%, #12296b 100%);
}
.login-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.login-card .brand-icon {
  width: 64px; height: 64px;
  border-radius: 16px;
  background: var(--simba-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin: 0 auto 1rem;
}

/* ---------- App shell ---------- */
.app-sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--simba-sidebar-w);
  background: #16213e;
  color: #cbd5e1;
  z-index: 1030;
  overflow-y: auto;
  transition: transform .25s ease;
}
.app-sidebar .brand {
  padding: 1.25rem 1.25rem;
  display: flex; align-items: center; gap: .6rem;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.app-sidebar .brand i { color: #4f8dfd; }
.app-sidebar .nav-link {
  color: #cbd5e1;
  padding: .65rem 1.25rem;
  border-left: 3px solid transparent;
  font-size: .93rem;
}
.app-sidebar .nav-link i { width: 20px; margin-right: 8px; }
.app-sidebar .nav-link:hover {
  background: rgba(255,255,255,.06);
  color: #fff;
}
.app-sidebar .nav-link.active {
  background: rgba(79,141,253,.15);
  border-left-color: #4f8dfd;
  color: #fff;
  font-weight: 500;
}
.app-sidebar .nav-section {
  text-transform: uppercase;
  font-size: .7rem;
  letter-spacing: .05em;
  color: #64748b;
  padding: 1rem 1.25rem .35rem;
}

.app-main {
  margin-left: var(--simba-sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.app-topbar {
  background: #fff;
  border-bottom: 1px solid #e5e9f2;
  padding: .75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1020;
}
.app-content {
  padding: 1.5rem;
  flex: 1;
}
.sidebar-toggle-btn { display: none; }

@media (max-width: 991.98px) {
  .app-sidebar { transform: translateX(-100%); }
  .app-sidebar.show { transform: translateX(0); }
  .app-main { margin-left: 0; }
  .sidebar-toggle-btn { display: inline-flex; }
}

/* ---------- Cards / widgets ---------- */
.stat-card {
  border: none;
  border-radius: 14px;
  padding: 1.25rem;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}
.stat-card .stat-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: .75rem;
}
.stat-card.bg-1 { background: linear-gradient(135deg,#2452b0,#4f8dfd); }
.stat-card.bg-2 { background: linear-gradient(135deg,#0f9d58,#34c37b); }
.stat-card.bg-3 { background: linear-gradient(135deg,#f5730a,#ffab40); }
.stat-card.bg-4 { background: linear-gradient(135deg,#8e24aa,#c158dc); }

.card { border: none; border-radius: 14px; box-shadow: 0 4px 14px rgba(0,0,0,.05); }
.card-header { background: #fff; border-bottom: 1px solid #eef1f6; font-weight: 600; border-radius: 14px 14px 0 0 !important; }

.table-file .file-icon { font-size: 1.4rem; width: 34px; text-align: center; }
.badge-cat { background: #eef2ff; color: #2452b0; font-weight: 500; }

.btn-primary { background: var(--simba-primary); border-color: var(--simba-primary); }
.btn-primary:hover { background: var(--simba-primary-dark); border-color: var(--simba-primary-dark); }

.dropzone {
  border: 2px dashed #c7d2e6;
  border-radius: 14px;
  padding: 2.5rem 1rem;
  text-align: center;
  background: #f8faff;
  cursor: pointer;
  transition: .2s;
}
.dropzone.dragover { background: #eaf1ff; border-color: var(--simba-primary); }

.avatar-circle {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--simba-primary);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 600;
  font-size: .9rem;
}
