@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");

:root {
  --background: #101317;
  --sidebar: #14181d;
  --surface: #191e24;
  --surface-hover: #20262e;
  --border: #292f37;

  --text-primary: #f0f2f4;
  --text-secondary: #929ba6;
  --text-muted: #68727e;

  --accent: #b6f36b;
  --accent-hover: #c8ff82;

  --positive: #a9e86c;
  --negative: #f07878;

  --radius: 10px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--background);
  color: var(--text-primary);
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  min-height: 100vh;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
}

svg {
  display: block;
}

.app-layout {
  min-height: 100vh;
}

.sidebar {
  width: 245px;
  height: 100vh;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  background: var(--sidebar);
  border-right: 1px solid var(--border);
  padding: 26px 18px 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: "Manrope", sans-serif;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.8px;
  margin: 0 0 49px 4px;
}

.brand-icon {
  width: 31px;
  height: 31px;
  border-radius: 8px;
  background: var(--accent);
  color: #18210f;
  display: grid;
  place-items: center;
}

.brand-icon svg {
  width: 19px;
  height: 19px;
}

.sidebar-section {
  margin-bottom: 33px;
}

.sidebar-label,
.eyebrow {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.15px;
}

.sidebar-label {
  display: block;
  padding-left: 11px;
  margin-bottom: 13px;
}

.navigation {
  display: grid;
  gap: 5px;
}

.nav-link {
  min-height: 42px;
  padding: 0 11px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  transition:
    background 0.2s,
    color 0.2s;
}

.nav-link svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.8;
}

.nav-link:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
}

.nav-link.active {
  background: #242b30;
  color: var(--accent);
}

.sidebar-bottom {
  margin-top: auto;
}

.account-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 5px 3px;
  border-top: 1px solid var(--border);
}

.account-avatar,
.profile-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #313c35;
  color: var(--accent);
  font-weight: 700;
}

.account-info {
  display: grid;
  gap: 3px;
  flex: 1;
}

.account-info strong {
  font-size: 12px;
}

.account-info span {
  color: var(--text-muted);
  font-size: 11px;
}

.account-card > svg {
  width: 15px;
  color: var(--text-muted);
}

.main-content {
  margin-left: 245px;
  min-height: 100vh;
}

.topbar {
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 42px;
  border-bottom: 1px solid var(--border);
  background: rgba(16, 19, 23, 0.94);
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 19px;
}

.breadcrumb {
  color: var(--text-secondary);
  font-size: 12px;
}

.breadcrumb span {
  color: var(--text-muted);
  padding: 0 7px;
}

.topbar-right {
  gap: 22px;
}

.account-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 11px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.icon-button {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
}

.icon-button:hover {
  background: var(--surface-hover);
  color: white;
}

.icon-button svg {
  width: 18px;
  height: 18px;
}

.profile-avatar {
  width: 32px;
  height: 32px;
  font-size: 12px;
}

.menu-toggle {
  display: none;
}

/* FAST PAGE TRANSITIONS */

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: page-fade-out 80ms ease-out both;
}

::view-transition-new(root) {
  animation: page-fade-in 120ms ease-out both;
}

@keyframes page-fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes page-fade-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
}

/* MOBILE SCROLLBAR */

* {
  scrollbar-width: thin;
  scrollbar-color: #414a43 #14181d;
}

/* Chrome, Edge and Safari */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #14181d;
}

::-webkit-scrollbar-thumb {
  background: #414a43;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #b6f36b;
}

/* Mobile refinement */
@media (max-width: 760px) {
  * {
    scrollbar-width: thin;
  }

  ::-webkit-scrollbar {
    width: 4px;
    height: 4px;
  }

  ::-webkit-scrollbar-thumb {
    background: #536047;
  }
}
