.app-content-header {
  padding: 0.85rem 0;
}

.app-content {
  padding: 0.75rem 0 1.25rem;
}

.app-content-header h3 {
  font-weight: 600;
  letter-spacing: 0.2px;
}

.card {
  border-radius: 14px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03), 0 10px 26px rgba(0, 0, 0, 0.06);
}

.modal-content {
  border-radius: 14px;
}

.modal-header {
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

.modal-footer {
  border-bottom-left-radius: 14px;
  border-bottom-right-radius: 14px;
}

.alert {
  border-radius: 14px;
}

.card-header {
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.table > :not(caption) > * > * {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.table thead th {
  font-weight: 600;
}

.badge.text-bg-light.border {
  border-color: rgba(0, 0, 0, 0.12) !important;
}

.badge.text-bg-light.border > i {
  opacity: 0.85;
}

.app-header {
  backdrop-filter: saturate(140%) blur(8px);
}

:root[data-bs-theme="dark"] .card {
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.035), 0 10px 26px rgba(0, 0, 0, 0.42);
}

:root[data-bs-theme="dark"] .badge.text-bg-light.border {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: var(--bs-body-color) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
}

:root[data-bs-theme="dark"] .btn-outline-dark {
  --bs-btn-color: var(--bs-body-color);
  --bs-btn-border-color: rgba(255, 255, 255, 0.22);
  --bs-btn-hover-color: #0b1020;
  --bs-btn-hover-bg: rgba(255, 255, 255, 0.9);
  --bs-btn-hover-border-color: rgba(255, 255, 255, 0.9);
  --bs-btn-active-color: #0b1020;
  --bs-btn-active-bg: rgba(255, 255, 255, 0.78);
  --bs-btn-active-border-color: rgba(255, 255, 255, 0.78);
  --bs-btn-focus-shadow-rgb: 255, 255, 255;
}

.info-box {
  border-radius: 14px;
  overflow: hidden;
}

.info-box-icon {
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
}

.info-box {
  min-height: 82px;
}

.info-box-icon {
  width: 64px;
  font-size: 1.4rem;
}

.info-box-content {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.info-box-text {
  font-size: 0.9rem;
}

.info-box-number {
  font-size: 1.45rem;
  line-height: 1.1;
}

.info-box .btn.btn-sm {
  --bs-btn-padding-y: 0.2rem;
  --bs-btn-padding-x: 0.6rem;
}

.font-monospace {
  font-variant-ligatures: none;
}

.log-box {
  background: #0b1020;
  color: #d7e1ff;
  border-radius: 8px;
  padding: 12px;
  min-height: 120px;
  max-height: 420px;
  overflow: auto;
  font-size: 12px;
  line-height: 1.35;
  white-space: pre-wrap;
}

.cf-setting-switch {
  min-height: 1.8rem;
  padding-top: 0.15rem;
}

.cf-setting-switch .form-check-input {
  cursor: pointer;
}

.cf-setting-switch .form-check-label {
  cursor: pointer;
  user-select: none;
}

/* Domains list: keep checkbox/actions columns away from table edges */
.domains-table > :not(caption) > * > th:first-child,
.domains-table > :not(caption) > * > td:first-child {
  padding-left: 0.75rem;
}

.domains-table > :not(caption) > * > th:last-child,
.domains-table > :not(caption) > * > td:last-child {
  padding-right: 0.75rem;
}
