:root {
  --sidebar-width: 260px;
}

/* Dark / Light Theme via data-theme */
html[data-theme="dark"] {
  color-scheme: dark;
}

html[data-theme="dark"] body {
  background-color: #0b0f19;
  color: #e5e7eb;
}

html[data-theme="dark"] .card {
  background-color: #111827;
  border-color: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .sidebar {
  background-color: #020617;
  border-color: rgba(255, 255, 255, 0.06) !important;
}

/* Avatar */
.avatar-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4f46e5, #ec4899);
  color: #fff;
}

.avatar-circle.small {
  width: 32px;
  height: 32px;
  font-size: 0.8rem;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
}

.sidebar .nav-link {
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  color: #6b7280;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.sidebar .nav-link i {
  font-size: 1rem;
}

.sidebar .nav-link:hover {
  background-color: rgba(79, 70, 229, 0.06);
  color: #4f46e5;
}

.sidebar .nav-link.active {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #ffffff;
}

/* Topbar */
.topbar {
  backdrop-filter: blur(12px);
  background-color: rgba(255, 255, 255, 0.85);
}

html[data-theme="dark"] .topbar {
  background-color: rgba(15, 23, 42, 0.85);
}

/* Activity list */
.activity-list .list-group-item {
  border-left: 0;
  border-right: 0;
}

/* Layout responsiveness */
@media (max-width: 767.98px) {
  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    transform: translateX(-100%);
    transition: transform 0.2s ease-in-out;
    z-index: 1050;
  }

  .sidebar.sidebar-open {
    transform: translateX(0);
  }

  body.sidebar-open {
    overflow: hidden;
  }
}
