:root {
  --ui-bg: #f6f7fb;
  --ui-card: #ffffff;
  --ui-border: rgba(15, 23, 42, 0.08);
  --ui-text: #0f172a;
  --ui-muted: rgba(15, 23, 42, 0.65);

  --ui-sidebar-bg: #0b1220;
  --ui-sidebar-border: rgba(255, 255, 255, 0.08);
  --ui-sidebar-text: rgba(0, 0, 0, 0.85);
  --ui-sidebar-muted: rgba(255, 255, 255, 0.65);

  --ui-accent: #3b82f6;
  --ui-accent-soft: rgba(59, 130, 246, 0.14);
}

body.ui-v2 {
  background: var(--ui-bg);
  color: var(--ui-text);
}

body.ui-v2 .side-bar {
  background: var(--ui-sidebar-bg) !important;
  border-inline-end: 1px solid var(--ui-sidebar-border);
}

body.ui-v2 .side-bar > a {
  background: var(--ui-sidebar-bg) !important;
  border-color: var(--ui-sidebar-border) !important;
}

body.ui-v2 .side-bar > a .tw-text-slate-900 {
  color: #007cf8 !important;
}

body.ui-v2 .side-bar > a .tw-text-emerald-600 {
  color: var(--ui-sidebar-muted) !important;
}

body.ui-v2 .sidebar-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #020a13;
  position: relative;
  overflow: hidden;
}

body.ui-v2 .sidebar-brand-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(59, 130, 246, 0.35), transparent 60%);
  opacity: 0.7;
}

body.ui-v2 .sidebar-brand-text {
  position: relative;
  z-index: 1;
  font-weight: 700;
  font-size: 0.95rem;
}

body.ui-v2 .sidebar-menu {
  padding-block: 0.25rem;
}

body.ui-v2 .sidebar-link,
body.ui-v2 .sidebar-sublink {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 12px;
  padding: 0.6rem 0.75rem;
  color: var(--ui-sidebar-text) !important;
  text-decoration: none;
  position: relative;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

body.ui-v2 .sidebar-link:hover,
body.ui-v2 .sidebar-sublink:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #32325d !important;
  transform: translateY(-1px);
}

body.ui-v2 .sidebar-link.active,
body.ui-v2 .sidebar-sublink.active,
body.ui-v2 .sidebar-accordion[open] > summary .sidebar-link {
  background: var(--ui-accent-soft);
  color: #1a1313 !important;
}

body.ui-v2 .sidebar-link.active::before,
body.ui-v2 .sidebar-sublink.active::before {
  content: '';
  position: absolute;
  inset-block: 8px;
  inset-inline-start: -6px;
  width: 4px;
  border-radius: 999px;
  background: var(--ui-accent);
}

body.ui-v2 .sidebar-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #050101 !important;
  flex-shrink: 0;
}

body.ui-v2 .sidebar-nav-icon svg,
body.ui-v2 .sidebar-nav-icon i {
  width: 18px;
  height: 18px;
  font-size: 18px;
  stroke-width: 1.7;
}

body.ui-v2 .sidebar-accordion > summary {
  list-style: none;
}

body.ui-v2 .sidebar-accordion > summary::-webkit-details-marker {
  display: none;
}

body.ui-v2 .sidebar-accordion ul {
  border-color: rgba(255, 255, 255, 0.12) !important;
  margin-inline-start: 0.25rem;
  padding-inline-start: 0.75rem;
}

body.ui-v2 .sidebar-child-bullet {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(10, 1, 1, 0.35);
}

body.ui-v2 .dashboard-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1f2937 100%);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
}

body.ui-v2 .dashboard-hero .date-filter-btn {
  border: 1px solid rgba(255, 255, 255, 0.25);
}

body.ui-v2 .dashboard-grid,
body.ui-v2 .stat-card,
body.ui-v2 .box,
body.ui-v2 .box-solid,
body.ui-v2 .card,
body.ui-v2 .table {
  background: var(--ui-card);
  border: 1px solid var(--ui-border);
  border-radius: 18px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

body.ui-v2 .dashboard-grid {
  padding: 1rem;
}

body.ui-v2 .quick-action {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  transition: transform 180ms ease, background 180ms ease, border 180ms ease;
}

body.ui-v2 .quick-action:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

body.ui-v2 .quick-action__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

body.ui-v2 .quick-action__icon svg {
  width: 22px;
  height: 22px;
}

body.ui-v2 .table {
  border-collapse: separate;
  border-spacing: 0;
}

body.ui-v2 .table thead th {
  color: var(--ui-muted);
  font-weight: 600;
}

body.ui-v2 .table tbody tr {
  transition: background 160ms ease;
}

body.ui-v2 .table tbody tr:hover {
  background: rgba(59, 130, 246, 0.06);
}

body.ui-v2 .box-header,
body.ui-v2 .card-header {
  border-bottom: 1px solid var(--ui-border);
}

body.ui-v2 .box-title,
body.ui-v2 .card-title {
  color: var(--ui-text);
  font-weight: 600;
}

body.ui-v2 .small-box,
body.ui-v2 .info-box {
  border-radius: 18px;
  border: 1px solid var(--ui-border);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

body.ui-v2 .content-wrapper {
  background: transparent;
}
