.layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 60px;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.nav-brand h1 {
  margin: 0;
  font-size: 20px;
  color: var(--color-primary);
}

.nav-main {
  display: flex;
  gap: 8px;
  flex: 1;
  margin-left: 40px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: block;
  padding: 10px 16px;
  color: var(--color-text);
  text-decoration: none;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.nav-link:hover {
  background: #f1f5f9;
}

.has-dropdown:hover > .dropdown-menu,
.has-dropdown:focus-within > .dropdown-menu {
  display: block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  z-index: 50;
  padding: 8px 0;
}

.dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--color-text);
  text-decoration: none;
}

.dropdown-menu a:hover {
  background: #f1f5f9;
}

.dropdown-item {
  display: block;
}

.has-flyout {
  position: relative;
}

.dropdown-flyout-trigger {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--color-text);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
}

.dropdown-flyout-trigger:hover,
.has-flyout.is-open > .dropdown-flyout-trigger,
.has-flyout:focus-within > .dropdown-flyout-trigger {
  background: #f1f5f9;
}

.flyout-caret {
  color: #64748b;
  font-size: 12px;
}

.dropdown-flyout {
  display: none;
  position: absolute;
  top: -8px;
  left: calc(100% + 6px);
  min-width: 190px;
  z-index: 60;
}

.has-flyout:hover > .dropdown-flyout,
.has-flyout:focus-within > .dropdown-flyout,
.has-flyout.is-open > .dropdown-flyout {
  display: block;
}

.dropdown-right {
  left: auto;
  right: 0;
}

.dropdown-divider {
  height: 1px;
  background: var(--color-border);
  margin: 8px 0;
}

.nav-user {
  margin-left: auto;
}

.user-menu {
  position: relative;
  cursor: pointer;
}

.user-greeting {
  display: block;
  padding: 10px 16px;
  color: var(--color-text);
  font-weight: 500;
}

.user-greeting:hover {
  background: #f1f5f9;
  border-radius: var(--radius-sm);
}

.main-content {
  flex: 1;
  padding: 32px;
  overflow-y: auto;
}

.page-header {
  margin-bottom: 24px;
}

.page-header h1 {
  margin: 0;
  font-size: 24px;
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  padding: 24px;
}
