:root {
  --page-bg: #f7f8f9;
  --sidebar-bg: #f2f4f5;
  --card-bg: #ffffff;
  --text-900: #2d343f;
  --text-600: #646d7a;
  --accent: #005d93;
  --accent-blue: #3b82f6;
  --accent-green: #16a34a;
  --accent-orange: #005d93;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-card: 0 18px 46px rgba(17, 24, 39, 0.08);
  --shadow-soft: 0 10px 28px rgba(17, 24, 39, 0.06);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--text-900);
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  display: block;
}

p {
  margin: 0;
}

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

.shell.is-collapsed .sidebar {
  transform: translateX(-280px);
  flex-basis: 0;
  width: 0;
  padding: 32px 0;
}

.shell.is-collapsed .sidebar__footer,
.shell.is-collapsed .brand,
.shell.is-collapsed .menu {
  opacity: 0;
  visibility: hidden;
}

.shell.is-collapsed .sidebar__toggle-wrapper {
  left: 16px;
  opacity: 1;
  pointer-events: auto;
}

.shell.is-collapsed .content {
  padding: 48px 64px;
}

.sidebar {
  width: 240px;
  flex: 0 0 240px;
  background: var(--sidebar-bg);
  border-right: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 18px 0 40px rgba(15, 23, 42, 0.06);
  padding: 32px 26px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  transition: transform 0.25s ease, width 0.25s ease, padding 0.25s ease;
  z-index: 10;
}

.sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.brand__mark {
  width: 32px;
  height: auto;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
}

.brand__text--single {
  justify-content: center;
  gap: 0;
}

.brand__logo {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.brand__subtitle {
  font-size: 9px;
  color: var(--text-600);
}

.sidebar__toggle {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.18s ease;
}

.sidebar__toggle:hover {
  transform: translateY(-2px);
}

.sidebar__toggle svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar__divider {
  height: 1px;
  background: rgba(100, 109, 122, 0.25);
  margin: 6px 0;
  border-radius: 999px;
}

.sidebar__toggle-wrapper {
  position: fixed;
  top: 32px;
  left: 240px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, left 0.2s ease;
  z-index: 11;
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 22px;
  flex: 1;
}

.menu__section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menu__title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: rgba(100, 109, 122, 0.55);
}

.menu__item {
  font-size: 14px;
  font-weight: 600;
  padding: 6px 0;
  color: var(--text-600);
  transition: color 0.18s ease;
}

.menu__item.is-active {
  color: var(--text-900);
}

.menu__item:hover {
  color: var(--accent);
}

.menu__item--logout {
  color: #d72626;
}

.sidebar__footer {
  margin-top: auto;
}

.content {
  flex: 1;
  padding: 48px 64px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.content__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}

.content__header h1 {
  margin: 0 0 6px;
  font-size: 30px;
  font-weight: 700;
}

.content__header p {
  margin: 0;
  color: var(--text-600);
  font-size: 14px;
}

.panel-blank {
  min-height: 100vh;
  background: var(--page-bg);
}

.placeholder-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(15, 23, 42, 0.04);
  padding: 32px;
  color: var(--text-600);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-md);
  padding: 11px 18px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-900);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 26px rgba(0, 93, 147, 0.28);
}

.btn--ghost {
  border-color: rgba(15, 23, 42, 0.12);
}

.btn:hover {
  transform: translateY(-1px);
}

@media (max-width: 960px) {
  .shell {
    flex-direction: column;
  }

  .sidebar {
    position: relative;
    height: auto;
    flex: 0 0 auto;
    width: 100%;
  }

  .content {
    padding: 36px 26px;
  }
}
