.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-filter-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.55rem 0.65rem;
}

.domains-filter-form .form-label {
  margin-bottom: 0.28rem;
  font-size: 0.92rem;
}

.domains-filter-item {
  flex: 0 0 auto;
  width: 170px;
}

.domains-filter-item--search {
  width: 320px;
}

.domains-filter-item--xs {
  width: 130px;
}

.domains-filter-item--sm {
  width: 190px;
}

.domains-filter-item--account {
  width: 300px;
}

.domains-filter-item--date {
  width: 170px;
}

.domains-filter-item--per-page {
  width: 120px;
}

.domains-filter-actions {
  margin-left: auto;
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
}

.domains-filter-submit {
  min-width: 46px;
}

.domains-filter-reset {
  white-space: nowrap;
}

.domains-filter-meta {
  flex: 1 1 100%;
}

/* 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;
}

.proxy-check-col {
  min-width: 260px;
}

.proxy-check-status {
  max-width: 360px;
}

.proxy-check-status .text-danger.small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.proxy-actions {
  white-space: nowrap;
}

.bp-params-grid {
  --bs-gutter-y: 0.65rem;
}

.bp-params-body .form-label {
  margin-bottom: 0.3rem;
}

.bp-params-body .form-text {
  margin-top: 0.2rem;
}

.bp-params-divider hr {
  margin: 0.55rem 0 0.4rem;
  opacity: 0.2;
}

.bp-params-divider .fw-semibold {
  margin-bottom: 0.1rem;
}

@media (max-width: 1199.98px) {
  .domains-filter-item--search {
    width: 280px;
  }

  .domains-filter-item--account {
    width: 250px;
  }
}

@media (max-width: 991.98px) {
  .domains-filter-actions {
    margin-left: 0;
  }
}

@media (max-width: 767.98px) {
  .domains-filter-item,
  .domains-filter-item--search,
  .domains-filter-item--xs,
  .domains-filter-item--sm,
  .domains-filter-item--account,
  .domains-filter-item--date,
  .domains-filter-item--per-page {
    width: 100%;
  }

  .domains-filter-actions {
    flex: 1 1 100%;
  }

  .domains-filter-submit,
  .domains-filter-reset {
    flex: 0 0 auto;
  }
}

.abuydom-global-loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 14, 26, 0.22);
  backdrop-filter: blur(1px);
}

.abuydom-global-loader.d-none {
  display: none !important;
}

.abuydom-global-loader__panel {
  min-width: 170px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 18, 34, 0.88);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.32);
  display: flex;
  align-items: center;
  gap: 10px;
}

:root[data-bs-theme="light"] .abuydom-global-loader {
  background: rgba(245, 247, 252, 0.42);
}

:root[data-bs-theme="light"] .abuydom-global-loader__panel {
  border-color: rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.94);
}
