/* Page layout components - general page structure and layout */

/* Page containers */
.page {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 65px - 4rem);
  max-width: 50rem;
  margin: 0 auto;
  min-height: 0;
  overflow: hidden;
}

/* Page headers */
.page__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-1);
}

.page__header h1 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--font-1);
  margin: 0;
}

/* Page content areas */
.page__content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  margin-bottom: 2rem;
  min-height: 0;
  padding: 0 2rem;
}

/* Page cards */
.page__card {
  background: var(--bg-3);
  border: 1px solid var(--border-1);
  border-radius: 8px;
  padding: 1rem;
}

/* Page lists */
.page__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

/* Page section headers */
.page__section-header {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--font-1);
  margin: 1.5rem 0 0.5rem 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border-1);
}

.page__section-header:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* Page empty state */
.page__empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--font-2);
  font-size: 1.1rem;
}
