*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #f4f4f5;
  --panel: #ffffff;
  --panel-soft: #fafafa;
  --text: #18181b;
  --muted: #71717a;
  --border: #e4e4e7;
  --accent: #f97316;
  --accent-soft: rgba(249, 115, 22, 0.12);
  --shadow-soft: 0 12px 40px rgba(24, 24, 27, 0.06);
  --shadow-card: 0 10px 30px rgba(24, 24, 27, 0.05);
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  overflow-x: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 292px 1fr;
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.09), transparent 24%),
    linear-gradient(to bottom, #fafafa, #f4f4f5);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
}

.sidebar__inner {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 26px 20px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}

.brand__mark {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background: #111827;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.16);
}

.brand__name {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.brand__sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav__item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  border: 1px solid transparent;
  border-radius: 18px;
  padding: 0 14px;
  color: #3f3f46;
  transition: 0.2s ease;
}

.nav__item:hover {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.8);
}

.nav__item--active {
  border-color: #fed7aa;
  background: linear-gradient(to bottom, rgba(255,255,255,0.98), rgba(255,247,237,0.94));
  color: #9a3412;
  box-shadow: 0 10px 25px rgba(249, 115, 22, 0.10);
}

.nav__icon {
  width: 22px;
  text-align: center;
  font-size: 16px;
  opacity: 0.85;
}

.nav__label {
  font-size: 15px;
  font-weight: 600;
}

.sidebar__bottom {
  margin-top: auto;
  padding-top: 20px;
}

.user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
}

.user-card__avatar {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  background: #18181b;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.user-card__name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.user-card__role {
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
}

.sidebar__actions {
  display: grid;
  gap: 10px;
}

.sidebar__button {
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #ffffff;
  color: #27272a;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s ease;
}

.sidebar__button:hover {
  background: #fafafa;
}

.sidebar__button--ghost {
  background: #fafafa;
  color: #52525b;
}

.page {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: space-between;
  min-height: 88px;
  padding: 22px 32px;
  border-bottom: 1px solid rgba(228, 228, 231, 0.75);
  background: rgba(244, 244, 245, 0.82);
  backdrop-filter: blur(16px);
}

.topbar__eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.topbar__title {
  margin: 4px 0 0;
  font-size: 30px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.topbar__right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar__pill {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  background: rgba(255, 247, 237, 0.9);
  color: #c2410c;
  font-size: 13px;
  font-weight: 600;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #ffffff;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  box-shadow: var(--shadow-card);
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: #27272a;
}

.content {
  padding: 30px 32px 36px;
}

.hero-card {
  margin-bottom: 24px;
  border: 1px solid var(--border);
  border-radius: 32px;
  background:
    radial-gradient(circle at top left, rgba(249, 115, 22, 0.12), transparent 36%),
    linear-gradient(to bottom right, rgba(255,255,255,0.98), rgba(255,250,245,0.96));
  box-shadow: var(--shadow-soft);
}

.hero-card__content {
  padding: 28px;
}

.hero-card__badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: #ffedd5;
  color: #c2410c;
  font-size: 12px;
  font-weight: 700;
}

.hero-card__title {
  margin: 16px 0 0;
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.hero-card__text {
  max-width: 820px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.workspace {
  min-height: calc(100vh - 270px);
  border: 1px dashed #d4d4d8;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-card);
}

.workspace__placeholder {
  min-height: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 48px 24px;
  text-align: center;
}

.workspace__icon {
  width: 72px;
  height: 72px;
  border: 1px solid #fed7aa;
  border-radius: 24px;
  background: rgba(255, 237, 213, 0.62);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  box-shadow: 0 18px 30px rgba(249, 115, 22, 0.09);
}

.workspace__title {
  margin: 18px 0 0;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.workspace__text {
  max-width: 520px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.mobile-overlay {
  display: none;
}

@media (max-width: 1024px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 292px;
    z-index: 40;
    transition: left 0.25s ease;
    box-shadow: 0 20px 60px rgba(24, 24, 27, 0.18);
  }

  body.menu-open .sidebar {
    left: 0;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 30;
    background: rgba(24, 24, 27, 0.32);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  body.menu-open .mobile-overlay {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  .topbar {
    padding: 18px 20px;
  }

  .content {
    padding: 20px;
  }

  .topbar__title {
    font-size: 26px;
  }

  .hero-card__content {
    padding: 22px;
  }

  .hero-card__title {
    font-size: 26px;
  }
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .topbar__right {
    width: 100%;
  }

  .topbar__pill {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero-card__title {
    font-size: 24px;
  }

  .workspace {
    min-height: calc(100vh - 310px);
  }

  .workspace__icon {
    width: 64px;
    height: 64px;
    border-radius: 22px;
    font-size: 30px;
  }

  .workspace__title {
    font-size: 22px;
  }
}


