/* Sections / cards */

.admin-section {
  display: none;
  animation: fadeIn 0.16s ease-out;
}

.admin-section.active {
  display: block;
}

.card {
  font-size: 15px;
  background: var(--tg-bg-soft);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--tg-border-soft);
  max-width: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.theme-light .card {
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.card:hover {
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(151, 185, 211, 0.2);
}

.card + .card {
  margin-top: 16px;
}

.card-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--tg-text);
}

.card-subtitle {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--tg-text-soft);
  margin-bottom: 12px;
}



.section-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.section-toolbar--top {
  margin-top: 12px;
}

.section-toolbar--spaced {
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-toolbar--end {
  justify-content: flex-end;
}

.section-toolbar--compact {
  margin-top: 4px;
}

.section-toolbar__group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
}

.section-toolbar__group--end {
  margin-left: auto;
  justify-content: flex-end;
}

.section-toolbar__field {
  min-width: 180px;
}

.section-toolbar__field--compact {
  min-width: 150px;
}

.section-toolbar__field--grow {
  flex: 1 1 220px;
}

.section-toolbar__label {
  margin-bottom: 6px;
  font-size: 12px;
}

.table-wrap {
  margin-top: 16px;
  overflow-x: auto;
  border: 1px solid var(--tg-border-soft);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.table-loading {
  text-align: center;
  padding: 20px;
  opacity: 0.72;
}

.status-pill {
  color: var(--tg-text);
  background: rgba(61, 214, 198, 0.08);
  border: 1px solid rgba(61, 214, 198, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.status-pill__dot {
  box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.12);
}

.bulk-actions {
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--tg-border-soft);
}

.bulk-actions__count {
  color: var(--tg-text-soft);
  white-space: nowrap;
}

.settings-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.settings-card {
  width: 100%;
  min-height: 112px;
  border-radius: 16px;
  justify-content: flex-start;
  text-align: left;
  padding: 18px 18px 16px;
}

.settings-card__content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.settings-card__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--tg-text);
}

.settings-card__text {
  font-size: 12px;
  line-height: 1.45;
  color: var(--tg-text-soft);
}

@media (max-width: 760px) {
  .section-toolbar__group--end {
    margin-left: 0;
    width: 100%;
    justify-content: stretch;
  }

  .section-toolbar__group--end > * {
    flex: 1 1 auto;
  }

  .section-toolbar__field,
  .section-toolbar__field--compact,
  .section-toolbar__field--grow {
    min-width: 100%;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }
}
