@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700&display=swap");

:root {
  --drstk-ui-font: "Manrope", "Segoe UI", sans-serif;
  --drstk-ui-bg: #f5f7fb;
  --drstk-ui-card: #ffffff;
  --drstk-ui-soft: #e7f4f4;
  --drstk-ui-soft-border: #bfdedf;
  --drstk-ui-text: #16233b;
  --drstk-ui-muted: #5b6b87;
  --drstk-ui-accent: #005a5b;
  --drstk-ui-accent-2: #007a7b;
  --drstk-ui-border: #dbe5f1;
  --drstk-ui-border-strong: #b7d2d2;
  --drstk-ui-danger: #dc2626;
  --drstk-ui-success: #15803d;
  --drstk-ui-radius: 14px;
  --drstk-ui-radius-sm: 10px;
  --drstk-ui-shadow: 0 18px 38px -30px rgba(0, 90, 91, 0.38);
}

.drstk-modern-app,
.drstk-wp-admin-app,
.drstk-settings-content {
  font-family: var(--drstk-ui-font);
}

.drstk-split-layout {
  position: relative;
}

.drstk-split-layout::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 5% 5%,
      rgba(0, 90, 91, 0.09),
      transparent 30%
    ),
    radial-gradient(circle at 95% 15%, rgba(0, 122, 123, 0.08), transparent 28%);
  pointer-events: none;
}

.drstk-settings-content {
  gap: 20px;
}

.drstk-settings-card.components-card {
  border-radius: var(--drstk-ui-radius);
  border: 1px solid var(--drstk-ui-border);
  box-shadow: var(--drstk-ui-shadow);
  overflow: hidden;
}

.drstk-settings-card .components-card__header {
  background: linear-gradient(180deg, #ffffff 0%, #f4fbfb 100%);
  border-bottom: 1px solid #dceeed;
}

.drstk-settings-card .components-card__body {
  background: var(--drstk-ui-card);
}

.drstk-accordion-toggle {
  cursor: pointer;
  user-select: none;
}

.drstk-accordion-title {
  display: flex;
  align-items: center;
  width: 100%;
}

.drstk-accordion-chevron {
  margin-left: auto;
  font-size: 16px;
  color: var(--drstk-ui-muted);
}

.drstk-inline-icon {
  margin-right: 6px;
  color: var(--drstk-ui-muted);
}

.drstk-heading-icon-accent {
  color: var(--drstk-ui-accent);
}

.drstk-info-box--soft {
  margin: 0 0 12px;
  padding: 12px 14px;
  background: var(--drstk-ui-soft);
  border-left: 4px solid var(--drstk-ui-accent-2);
  border-radius: var(--drstk-ui-radius-sm);
}

.drstk-info-inline {
  margin: 0;
  font-size: 13px;
  color: #0b4f50;
}

.drstk-muted-copy {
  margin: 0;
  font-size: 12px;
  color: var(--drstk-ui-muted);
}

.drstk-muted-copy.is-tight {
  margin-top: 2px;
  margin-bottom: 6px;
}

.drstk-active-list {
  margin-top: 16px;
}

.drstk-section-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--drstk-ui-muted);
  letter-spacing: 0.01em;
}

.drstk-active-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drstk-active-card {
  border: 1px solid var(--drstk-ui-border);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.drstk-active-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #fff;
  cursor: pointer;
}

.drstk-active-card.is-expanded .drstk-active-card__header {
  background: #f8fbff;
}

.drstk-sort-handle {
  cursor: grab;
  color: #98a4bb;
  font-size: 14px;
}

.drstk-active-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
}

.drstk-active-label {
  flex: 1;
  font-weight: 600;
  color: var(--drstk-ui-text);
}

.drstk-plain-icon-btn {
  border: 0;
  background: transparent;
  color: #6b7a96;
  cursor: pointer;
  padding: 6px 8px;
}

.drstk-danger-icon-btn {
  border: 0;
  border-radius: 8px;
  background: var(--drstk-ui-danger);
  color: #fff;
  cursor: pointer;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.drstk-active-card__body {
  padding: 16px;
  border-top: 1px solid #e6edf7;
  background: #fbfdff;
}

.drstk-field-stack {
  display: grid;
  gap: 12px;
}

.drstk-inactive-list {
  margin-top: 20px;
}

.drstk-inactive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}

.drstk-inactive-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #f9fbff;
  border: 1px dashed var(--drstk-ui-border-strong);
  border-radius: 10px;
  cursor: pointer;
  transition: 0.2s ease;
}

.drstk-inactive-btn:hover {
  transform: translateY(-1px);
  border-color: #96b9eb;
}

.drstk-inactive-btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.drstk-inactive-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 11px;
}

.drstk-inactive-label {
  font-size: 12px;
  color: var(--drstk-ui-muted);
}

.drstk-counter-bar {
  margin-top: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(120deg, #1f6feb, #0ea5e9);
}

.drstk-counter-text {
  color: #fff;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.drstk-counter-pill {
  background: #fff;
  color: #1f6feb;
  padding: 4px 12px;
  border-radius: 99px;
  font-weight: 700;
  font-size: 13px;
}

.drstk-counter-pill.is-full {
  color: var(--drstk-ui-danger);
}

.drstk-settings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.drstk-section-split {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.drstk-popup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.drstk-popup-tile {
  border: 1px solid var(--drstk-ui-border);
  border-radius: 12px;
  background: #fff;
  min-height: 120px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 8px 24px -28px rgba(15, 35, 75, 0.75);
}

.drstk-popup-tile__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.drstk-popup-title {
  font-size: 14px;
  color: var(--drstk-ui-text);
}

.drstk-popup-remove-btn {
  border: 0;
  background: transparent;
  color: #99a4b9;
  cursor: pointer;
  padding: 0;
  font-size: 13px;
  line-height: 1;
}

.drstk-popup-status {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.drstk-popup-status__label {
  font-size: 12px;
  font-weight: 700;
}

.drstk-popup-status__label.is-active {
  color: var(--drstk-ui-success);
}

.drstk-popup-status__label.is-inactive {
  color: #98a4bb;
}

.drstk-inline-actions {
  margin-top: 14px;
}

.drstk-callout {
  margin-top: 16px;
  padding: 14px 16px;
  background: linear-gradient(140deg, #eef7ff 0%, #e1f0ff 100%);
  border-radius: 10px;
  border: 1px solid #bbdfff;
}

.drstk-callout p {
  margin: 0;
  font-size: 13px;
  color: #0a588c;
  line-height: 1.5;
}

.drstk-api-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.drstk-api-field {
  flex: 1;
}

.drstk-btn-sm-bottom {
  margin-bottom: 2px;
}

.drstk-mt-8 {
  margin-top: 8px;
}

.drstk-mt-10 {
  margin-top: 10px;
}

.drstk-mt-4 {
  margin-top: 4px;
}

.drstk-help-inline {
  font-size: 11px;
  color: #9aa5b8;
  margin-top: 6px;
}

.drstk-progress-color {
  margin-top: 8px;
}

.drstk-advanced-section--last {
  border-bottom: none;
  padding-bottom: 0;
}

@media (max-width: 1024px) {
  .drstk-settings-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 782px) {
  .drstk-settings-grid,
  .drstk-popup-grid {
    grid-template-columns: 1fr;
  }
}
