/* ==========================================================================
   PDIKM Landing — Settings panel (mobile modal)
   ========================================================================== */

.pdikm-settings-swal {
  border: 1px solid rgba(255, 202, 40, 0.2) !important;
  border-radius: 20px !important;
  padding: 0 0 8px !important;
}

.pdikm-settings-panel {
  text-align: left;
  font-family: var(--pdikm-font-body);
}

.pdikm-settings-section {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pdikm-settings-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.pdikm-settings-section__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-family: var(--pdikm-font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #ffca28;
}

.pdikm-settings-section__desc {
  margin: 0 0 12px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
}

.pdikm-settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.pdikm-settings-row:last-child {
  margin-bottom: 0;
}

.pdikm-settings-label {
  font-size: 0.84rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.4;
}

.pdikm-settings-label small {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.45);
}

.pdikm-settings-range {
  width: 100%;
  height: 6px;
  margin: 4px 0 0;
  accent-color: #ffca28;
  cursor: pointer;
}

.pdikm-settings-status {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.55);
}

.pdikm-settings-status.is-active {
  color: #86efac;
}

.pdikm-settings-status.is-denied {
  color: #fca5a5;
}

.pdikm-settings-status.is-off {
  color: rgba(255, 255, 255, 0.45);
}

.pdikm-switch input:disabled + .pdikm-switch__track {
  opacity: 0.45;
  cursor: not-allowed;
}

  font-size: 0.72rem;
  font-weight: 700;
  color: #ffd54f;
  text-align: right;
  margin-top: 4px;
}

.pdikm-settings-input {
  width: 100%;
  box-sizing: border-box;
  margin-top: 10px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-family: inherit;
  font-size: 0.85rem;
}

.pdikm-settings-input:focus {
  outline: none;
  border-color: rgba(255, 202, 40, 0.45);
}

.pdikm-settings-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.pdikm-settings-input[hidden] {
  display: none !important;
}

.pdikm-switch {
  position: relative;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}

.pdikm-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.pdikm-switch__track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.pdikm-switch__track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.pdikm-switch input:checked + .pdikm-switch__track {
  background: linear-gradient(135deg, #ffd54f, #ffca28);
  border-color: rgba(201, 160, 32, 0.5);
}

.pdikm-switch input:checked + .pdikm-switch__track::after {
  transform: translateX(20px);
}

.pdikm-settings-save-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 11px 24px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(180deg, #ff5252 0%, #ff3b3b 100%);
  color: #fff;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 6px 0 #b32626;
}

.pdikm-settings-save-btn:active {
  transform: scale(0.97);
  box-shadow: 0 3px 0 #b32626;
}

.pdikm-settings-cancel-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.75) !important;
  box-shadow: none !important;
}

.pdikm-settings-actions {
  gap: 10px !important;
  margin-top: 8px !important;
}
