.app-shell {
  display: grid;
  grid-template-columns: 270px 1fr;
  min-height: 100vh;
}

.main-content {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #f9fafb;
}

.content-container {
  flex: 1;
  padding: 26px 28px 40px;
  min-width: 0;
}

.page-section {
  width: 100%;
}

.sidebar {
  height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 22px 18px;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 10px 6px;
  text-align: center;
}

.brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  box-shadow: 0 6px 18px rgba(17,24,39,0.08);
  display: block;
}

/* Option to hide the icon if desired */
.brand.no-mark .brand-mark {
  display: none;
}

.brand-title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.05;
}

.brand-sub {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.nav-tabs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.nav-btn {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  text-align: left;
  font-weight: 700;
  color: #374151;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.nav-btn.active {
  background: linear-gradient(135deg, rgba(37, 244, 238, 0.15), rgba(254, 44, 85, 0.12));
  border-color: rgba(254, 44, 85, 0.25);
  color: #111827;
}

.current-user-box {
  margin-top: 18px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f9fafb;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.muted-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 0;
}

.user-action-btn {
  flex: 1;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: #111827;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-align: center;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.user-action-btn:hover:not(:disabled) {
  background: #f3f4f6;
  border-color: rgba(254, 44, 85, 0.3);
}

.user-action-btn:active:not(:disabled) {
  background: #e5e7eb;
  border-color: rgba(254, 44, 85, 0.5);
}

.user-action-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.user-action-btn.logout {
  background: linear-gradient(135deg, rgba(254, 44, 85, 0.08), rgba(37, 244, 238, 0.08));
  border-color: rgba(254, 44, 85, 0.2);
  color: #d32f2f;
}

.user-action-btn.logout:hover:not(:disabled) {
  background: linear-gradient(135deg, rgba(254, 44, 85, 0.15), rgba(37, 244, 238, 0.08));
  border-color: rgba(254, 44, 85, 0.4);
}

.main {
  padding: 26px 28px 40px;
  min-width: 0;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.page-header {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.page-header h1 {
  margin: 0 0 4px;
  font-size: 28px;
}

.page-header p {
  margin: 0;
  color: var(--muted);
  max-width: 780px;
}

.grid {
  display: grid;
  gap: 18px;
}

.two-col {
  grid-template-columns: 1fr 1fr;
}