@charset "UTF-8";
.adminoptim-settings-page {
  color: #1d2327;
}

#adminoptim-header-wrap {
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #f6f8fb 100%);
  border: 1px solid #dcdcde;
  border-radius: 18px;
  margin: 0 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}
#adminoptim-header-wrap h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}
#adminoptim-header-wrap.sticky {
  position: sticky;
  top: 32px;
  z-index: 10;
}

.adminoptim-header-button-group {
  display: flex;
  gap: 10px;
  align-items: center;
}

#adminoptim-submit-btn,
.adminoptim-submit-btn,
.adminoptim-pro-btn {
  display: inline-flex !important;
  align-items: center;
  height: 40px;
  line-height: 40px;
  padding: 10px 20px !important;
  border-radius: 6px !important;
  font-weight: 500;
  font-size: 14px;
}

.adminoptim-submit-btn {
  background-color: #3b82f6 !important;
}

.adminoptim-pro-btn {
  background-color: #7c3aed !important;
  color: #fff !important;
}

.adminoptim-content {
  display: grid;
  grid-template-columns: minmax(220px, 250px) minmax(0, 1fr);
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  border: 1px solid #dcdcde;
  border-radius: 22px;
  gap: 0;
  overflow: hidden;
  box-sizing: border-box;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.05);
}

.adminoptim-pro-strip {
  background: linear-gradient(135deg, #20224b 0%, #1a1d3a 100%);
  border: 0.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 2rem;
}
.adminoptim-pro-strip .badge {
  display: inline-block;
  background: rgba(249, 199, 79, 0.2);
  color: #F9C74F;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 4px;
  border: 0.5px solid rgba(249, 199, 79, 0.3);
  margin-bottom: 10px;
}
.adminoptim-pro-strip .description {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}
.adminoptim-pro-strip .adminoptim-pro-strip-btn {
  background: #F9C74F;
  color: #20224b;
  border: none;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  text-decoration: none;
}
.adminoptim-pro-strip .adminoptim-pro-strip-btn:hover {
  text-decoration: none;
  background: #f0bb38;
  transform: translateY(-2px);
}

.adminoptim-nav-wrapper {
  min-width: 0;
  padding: 1.25rem;
  border-right: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}
.adminoptim-nav-wrapper > div {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.adminoptim-nav-tab {
  width: 100%;
  margin: 0;
  box-sizing: border-box;
}

.adminoptim-tab-btn {
  width: 100%;
  color: #334155;
  background: transparent;
  cursor: pointer;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.4;
  padding: 0.9rem 1rem;
  font-weight: 600;
  transition: all 0.2s ease;
}
.adminoptim-tab-btn:hover {
  background-color: #fff;
  border-color: #dbe5f1;
  color: #0f172a;
}

.adminoptim-tab-btn[aria-selected=true] {
  color: #0f172a;
  background-color: #fff;
  border-color: #bfd3ff;
  box-shadow: 0 10px 24px rgba(56, 88, 233, 0.12);
}

.adminoptim-tab-content-wrap {
  min-width: 0;
  padding: 1.5rem;
}

.adminoptim-tab-panel-header {
  margin-bottom: 1.25rem;
}

.adminoptim-tab-title {
  margin: 0 0 0.35rem;
  font-size: 22px;
  line-height: 1.2;
}

.adminoptim-tab-description {
  margin: 0;
  color: #5f6c7b;
  font-size: 14px;
}

.tab-content.section-hidden {
  display: none;
}
.tab-content.section-visible {
  display: block;
}
.tab-content h2 {
  display: none;
}
.tab-content label {
  display: block;
  position: relative;
  padding: 0 76px 0 0;
  min-height: 28px;
}
.tab-content label:has(.slider.disabled) {
  padding-right: 0;
}
.tab-content label span {
  display: block;
  color: #475569;
  font-size: 13px;
  line-height: 1.65;
}
.tab-content a {
  color: #3858e9;
  font-weight: 600;
  text-decoration: none;
}
.tab-content a:hover {
  text-decoration: underline;
}
.tab-content input[type=checkbox] {
  height: 0;
  width: 0;
  position: absolute;
  top: 0;
  left: 0;
  visibility: hidden;
}
.tab-content .slider {
  display: inline-block;
  position: absolute;
  cursor: pointer;
  top: 0;
  right: 0;
  background-color: #94a3b8;
  transition: all 0.25s ease;
  border-radius: 999px;
  width: 52px;
  height: 28px;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}
.tab-content .slider:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 2px;
  top: 2px;
  background-color: #fff;
  transition: 0.25s ease;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}
.tab-content .slider.disabled {
  display: none;
}
.tab-content input:focus-visible + .slider {
  outline: 2px solid #72aee6;
  outline-offset: 3px;
}
.tab-content input:checked + .slider {
  background-color: #3858e9;
}
.tab-content input:checked + .slider:before {
  transform: translateX(24px);
}

table.form-table {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 1rem;
  row-gap: 4rem;
  width: 100%;
  margin: 0;
}
table.form-table thead, table.form-table tbody, table.form-table tfoot {
  display: contents;
}
table.form-table tr {
  min-width: 0;
  min-height: 100%;
  margin: 0;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  border: 1px solid #d7dee7;
  border-radius: 18px;
  background: white;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}
table.form-table tr:hover, table.form-table tr:focus-within {
  border-color: #bfd3ff;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}
table.form-table tr:has(input:checked) {
  border-color: #9db7ff;
  background: #f6f9ff;
}
table.form-table tr:has(.slider.disabled) {
  border-color: #d5dbe5;
  background: #fffbea;
  box-shadow: none;
  cursor: not-allowed;
}
table.form-table tr:has(.slider.disabled) th {
  color: #334155;
}
table.form-table tr:has(.slider.disabled) td,
table.form-table tr:has(.slider.disabled) label span {
  color: #64748b;
}
table.form-table th, table.form-table td {
  width: auto;
  margin: 0;
  padding: 0;
  display: block;
}
table.form-table th {
  color: #0f172a;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
}
table.form-table td {
  color: #475569;
  font-size: 13px;
  line-height: 1.65;
}

@media screen and (max-width: 1400px) {
  table.form-table {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media screen and (max-width: 1200px) {
  table.form-table {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.adminoptim-tab-content-wrap .submit {
  margin: 3.5rem 0 0;
  padding: 0;
}

.adminoptim-toggle-all-wrap {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}

.adminoptim-toggle-all-btn {
  font-size: 12px !important;
  height: 30px;
  line-height: 28px;
  padding: 0 0.85rem !important;
  border-radius: 8px !important;
  color: #475569 !important;
  border-color: #d7dee7 !important;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}
.adminoptim-toggle-all-btn:hover {
  color: #0f172a !important;
  border-color: #9db7ff !important;
}
.adminoptim-toggle-all-btn--active {
  color: #3858e9 !important;
  border-color: #9db7ff !important;
  background-color: #f0f4ff !important;
}

@media screen and (max-width: 960px) {
  .adminoptim-content {
    grid-template-columns: 170px minmax(0, 1fr);
  }
  .adminoptim-nav-wrapper {
    padding: 1rem 0.85rem;
  }
}
@media screen and (max-width: 782px) {
  #adminoptim-header-wrap {
    padding: 1rem 1.1rem;
    flex-direction: column;
    align-items: flex-start;
  }
  .adminoptim-tab-content-wrap {
    padding: 1.1rem;
  }
  .adminoptim-content {
    grid-template-columns: 150px minmax(0, 1fr);
  }
  .adminoptim-nav-wrapper {
    padding: 0.9rem 0.7rem;
  }
  .adminoptim-tab-btn {
    padding: 0.8rem 0.75rem;
    font-size: 13px;
  }
  table.form-table {
    grid-template-columns: 1fr;
  }
}
.adminoptim-tab-count {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #64748b;
  margin-left: 0.4rem;
  vertical-align: middle;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.adminoptim-tab-btn[aria-selected=true] .adminoptim-tab-count {
  background: #dbeafe;
  color: #1d4ed8;
}

.adminoptim-summary-bar {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 1rem;
}

.adminoptim-welcome-banner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.adminoptim-welcome-banner__body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 13.5px;
  line-height: 1.55;
  color: #1e3a5f;
}
.adminoptim-welcome-banner__body strong {
  font-size: 14px;
  color: #0f172a;
}
.adminoptim-welcome-banner__dismiss {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  font-size: 16px;
  padding: 0 0.25rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: -0.1rem;
}
.adminoptim-welcome-banner__dismiss:hover {
  color: #334155;
}

.adminoptim-presets-wrap {
  max-width: 960px;
}

.adminoptim-presets-intro {
  margin-bottom: 1.75rem;
}
.adminoptim-presets-intro__title {
  margin: 0 0 0.45rem;
  font-size: 22px;
  line-height: 1.2;
  color: #0f172a;
}
.adminoptim-presets-intro__desc {
  margin: 0;
  color: #5f6c7b;
  font-size: 14px;
  line-height: 1.65;
}

.adminoptim-preset-notice {
  display: none;
  margin-bottom: 1.25rem;
  padding: 0.8rem 1.1rem;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}
.adminoptim-preset-notice--success {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}
.adminoptim-preset-notice--error {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.adminoptim-presets-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media screen and (max-width: 1300px) {
  .adminoptim-presets-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media screen and (max-width: 782px) {
  .adminoptim-presets-grid {
    grid-template-columns: 1fr;
  }
  .adminoptim-nav-upgrade-btn {
    padding: 0.75rem 0.7rem;
    font-size: 13px;
  }
}
.adminoptim-preset-card {
  background: #fff;
  border: 1px solid #d7dee7;
  border-radius: 18px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.adminoptim-preset-card:hover {
  border-color: #bfd3ff;
  box-shadow: 0 8px 28px rgba(56, 88, 233, 0.1);
}
.adminoptim-preset-card--active {
  border-color: #9db7ff;
  background: #f6f9ff;
}
.adminoptim-preset-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}
.adminoptim-preset-card__icon {
  font-size: 30px;
  line-height: 1;
}
.adminoptim-preset-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}
.adminoptim-preset-card__desc {
  margin: 0;
  color: #5f6c7b;
  font-size: 13px;
  line-height: 1.55;
  flex: 1;
}
.adminoptim-preset-card__details {
  font-size: 13px;
  color: #334155;
}
.adminoptim-preset-card__details summary {
  cursor: pointer;
  color: #3858e9;
  font-weight: 600;
  user-select: none;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.adminoptim-preset-card__details summary::-webkit-details-marker {
  display: none;
}
.adminoptim-preset-card__details summary::before {
  content: "▸";
  font-size: 11px;
  transition: transform 0.15s ease;
  display: inline-block;
}
.adminoptim-preset-card__details summary:hover {
  text-decoration: underline;
}
.adminoptim-preset-card__details[open] summary::before {
  transform: rotate(90deg);
}
.adminoptim-preset-card__module-list {
  margin: 0.55rem 0 0;
  padding: 0 0 0 1.1rem;
  list-style: disc;
  color: #64748b;
  font-size: 12.5px;
  line-height: 1.9;
}
.adminoptim-preset-card__module-list li.adminoptim-module-on {
  color: #15803d;
  font-weight: 600;
}
.adminoptim-preset-card__module-list li.adminoptim-module-on::marker {
  color: #15803d;
}

.adminoptim-preset-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}
.adminoptim-preset-badge--active {
  background: #dcfce7;
  color: #15803d;
}
.adminoptim-preset-badge--partial {
  background: #fff7ed;
  color: #c2410c;
}
.adminoptim-preset-badge--disabled {
  background: #f1f5f9;
  color: #94a3b8;
}

.adminoptim-preset-card--danger {
  border-color: #fca5a5;
  background: linear-gradient(180deg, #fff5f5 0%, #fef2f2 100%);
}
.adminoptim-preset-card--danger:hover {
  border-color: #f87171;
  box-shadow: 0 8px 28px rgba(220, 38, 38, 0.1);
}
.adminoptim-preset-card--danger .adminoptim-preset-card__title {
  color: #991b1b;
}
.adminoptim-preset-card--danger .adminoptim-preset-card__desc {
  color: #7f1d1d;
}

.adminoptim-reset-preset-btn {
  color: #fff !important;
  border-color: #fca5a5 !important;
  background-color: #dc2626 !important;
}
.adminoptim-reset-preset-btn:hover:not(:disabled) {
  color: #fff !important;
  background-color: #dc2626 !important;
  border-color: #dc2626 !important;
}
.adminoptim-reset-preset-btn:disabled {
  opacity: 0.5;
  color: #94a3b8 !important;
  border-color: #e2e8f0 !important;
}

.adminoptim-apply-preset-btn {
  width: 100%;
  text-align: center;
  justify-content: center;
  margin-top: 0.2rem;
  background-color: #3858e9 !important;
}
.adminoptim-apply-preset-btn:disabled, .adminoptim-apply-preset-btn--loading {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}
.adminoptim-apply-preset-btn--loading {
  opacity: 0.75;
  cursor: wait;
}
.adminoptim-apply-preset-btn.adminoptim-reset-preset-btn {
  background-color: #dc2626 !important;
}

.adminoptim-nav-upgrade-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: calc(100% - 3rem);
  min-height: 40px;
  margin: 1.5rem 1.5rem 0 1rem !important;
  padding: 10px 16px !important;
  border: 1px solid #bfd3ff !important;
  border-radius: 6px !important;
  background: linear-gradient(135deg, #215bc2 0%, #1e40af 100%) !important;
  color: #fff !important;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  white-space: normal !important;
}
.adminoptim-nav-upgrade-btn:hover {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%) !important;
  color: #1e3a8a !important;
}

.adminoptim-module-search-input {
  width: 100%;
  margin-bottom: 1.5rem;
  padding: 10px 14px !important;
  border: 1px solid #d1d5db !important;
  border-radius: 6px !important;
  font-size: 14px;
}