﻿body {
  font-family: "Public Sans", "Segoe UI Variable", "Trebuchet MS", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top right, #d6efec 0%, #f4f6f8 42%);
  overflow-x: hidden;
}

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

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 272px;
  background: linear-gradient(180deg, #0f172a 0%, #1f2937 100%);
  color: #e5edf3;
  padding: 1.2rem;
  overflow-y: auto;
  z-index: 10;
}

.brand {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.brand-logo {
  width: 48px;
  height: 48px;
}

.brand-title {
  font-size: 1rem;
  font-weight: 700;
}

.brand-subtitle {
  color: #9fb2c4;
  font-size: 0.8rem;
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.menu-link {
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  color: #d9e5ef;
}

.menu-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.menu-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  margin: 0.7rem 0;
}

.app-main {
  margin-left: 272px;
  min-height: 100vh;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px);
  padding: 1rem 1.6rem;
}

.topbar-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.user-pill {
  background: var(--surface);
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.user-pill small {
  color: var(--muted);
}

.page-content {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

@media (max-width: 900px) {
  .sidebar {
    position: static;
    width: auto;
    max-height: none;
  }

  .app-main {
    margin-left: 0;
  }
}
