@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-order-controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.drstk-order-btn {
  width: 24px;
  height: 24px;
  border: 1px solid #d7e0ee;
  background: #f8fbff;
  color: #475569;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.18s ease;
}

.drstk-order-btn:hover:not(:disabled) {
  border-color: var(--drstk-ui-primary);
  color: var(--drstk-ui-primary);
  background: #eef8f8;
}

.drstk-order-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.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-layout-mode-panel {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--drstk-ui-border);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fcfc 100%);
}

.drstk-layout-picker {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.drstk-layout-option {
  border: 1px solid #d8e6f3;
  border-radius: 12px;
  background: #ffffff;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  cursor: pointer;
  transition: 0.18s ease;
}

.drstk-layout-option:hover {
  border-color: #91d0cf;
  box-shadow: 0 8px 20px -18px rgba(0, 90, 91, 0.75);
}

.drstk-layout-option.is-selected {
  border-color: var(--drstk-ui-accent);
  background: #f2fbfa;
  box-shadow: 0 10px 24px -20px rgba(0, 90, 91, 0.95);
}

.drstk-layout-option__icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #eef6ff;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.drstk-layout-option.is-selected .drstk-layout-option__icon {
  background: #ddf2f2;
  color: var(--drstk-ui-accent);
}

.drstk-layout-option__content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.drstk-layout-option__content strong {
  font-size: 13px;
  color: var(--drstk-ui-text);
}

.drstk-layout-option__content small {
  font-size: 11px;
  line-height: 1.45;
  color: var(--drstk-ui-muted);
}

.drstk-layout-option__badge {
  align-self: flex-start;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #0b5f5f;
  background: #dcf6f5;
}

.drstk-layout-status {
  margin-top: 10px;
  border-radius: 10px;
  border: 1px solid #d7e3f4;
  background: #f8fbff;
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #385379;
  font-size: 12px;
  line-height: 1.45;
}

.drstk-layout-status i {
  margin-top: 2px;
}

.drstk-layout-status.is-forced {
  border-color: #bfdedf;
  background: #ecf8f8;
  color: #0b4f50;
}

@media (max-width: 782px) {
  .drstk-layout-picker {
    grid-template-columns: 1fr;
  }
}

.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-ai-system-context-panel {
  margin-top: 2px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #dbe7f5;
  background: linear-gradient(180deg, #f8fbff 0%, #f1f7ff 100%);
}

.drstk-ai-system-context-title {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.drstk-ai-system-context-copy {
  margin: 0 0 12px;
  font-size: 12px;
  color: #475569;
  line-height: 1.55;
}

.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;
  }
}
