:root {
  --d2h-primary: #ff6b35;
  --d2h-dark: #1e2530;
  --d2h-sidebar-w: 240px;
}

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

.d2h-wrapper {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.d2h-sidebar {
  width: var(--d2h-sidebar-w);
  background: var(--d2h-dark);
  color: #fff;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  overflow-y: auto;
  z-index: 1030;
  transition: transform 0.25s ease;
}
.d2h-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.d2h-brand i { color: var(--d2h-primary); font-size: 1.4rem; }

.d2h-nav { padding: 10px 0; }
.d2h-nav .nav-link {
  color: rgba(255,255,255,0.75);
  padding: 11px 20px;
  font-size: 0.92rem;
  border-left: 3px solid transparent;
  display: flex;
  align-items: center;
  gap: 10px;
}
.d2h-nav .nav-link i { font-size: 1.05rem; width: 20px; }
.d2h-nav .nav-link:hover { background: rgba(255,255,255,0.06); color: #fff; }
.d2h-nav .nav-link.active {
  background: rgba(255,107,53,0.12);
  color: var(--d2h-primary);
  border-left-color: var(--d2h-primary);
  font-weight: 600;
}

/* Main */
.d2h-main {
  margin-left: var(--d2h-sidebar-w);
  flex: 1;
  min-width: 0;
}
.d2h-topbar { padding: 10px 20px; }

@media (max-width: 991.98px) {
  .d2h-sidebar { transform: translateX(-100%); }
  .d2h-sidebar.show { transform: translateX(0); }
  .d2h-main { margin-left: 0; }
}

/* Dashboard cards */
.stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  height: 100%;
}
.stat-card .stat-icon {
  width: 46px; height: 46px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 10px;
}
.stat-card .stat-value { font-size: 1.6rem; font-weight: 700; }
.stat-card .stat-label { color: #6c757d; font-size: 0.85rem; }

.card { border: none; border-radius: 12px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.table thead th { font-size: 0.8rem; text-transform: uppercase; color: #6c757d; border-top: none; }

.login-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1e2530 0%, #2d3748 100%);
}
.login-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.login-card .brand-icon {
  width: 60px; height: 60px;
  background: var(--d2h-primary);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.6rem;
  margin: 0 auto 15px;
}

.thumb-sm { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; }
.thumb-md { width: 90px; height: 90px; object-fit: cover; border-radius: 10px; }
