/* ========================================
   AUTHENTICATOR SETUP - MODERN UI
   ======================================== */

.pdt-authenticator-setup {
  max-width: 800px;
}

/* ----------------------------------------
   Status Notices
   ---------------------------------------- */
.pdt-auth-notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.pdt-auth-notice .dashicons {
  font-size: 24px;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.pdt-auth-notice strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.pdt-auth-notice p {
  margin: 0;
  font-size: 13px;
  color: inherit;
  opacity: 0.9;
}

.pdt-auth-notice-success {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1px solid #86efac;
  color: #166534;
}

.pdt-auth-notice-success .dashicons {
  color: #22c55e;
}

.pdt-auth-notice-error {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border: 1px solid #fca5a5;
  color: #991b1b;
}

.pdt-auth-notice-error .dashicons {
  color: #ef4444;
}

.pdt-auth-notice-warning {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid #fcd34d;
  color: #92400e;
}

.pdt-auth-notice-warning .dashicons {
  color: #f59e0b;
}

.pdt-auth-notice-info {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 1px solid #93c5fd;
  color: #1e40af;
}

.pdt-auth-notice-info .dashicons {
  color: #3b82f6;
}

/* ----------------------------------------
   Status Banner
   ---------------------------------------- */
.pdt-auth-status-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  border-radius: 16px;
  margin-bottom: 28px;
}

.pdt-auth-status-banner.is-active {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 2px solid #86efac;
}

.pdt-auth-status-banner.is-pending {
  background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
  border: 2px solid #fde047;
}

.pdt-auth-status-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  flex-shrink: 0;
}

.pdt-auth-status-banner.is-active .pdt-auth-status-icon {
  background: #22c55e;
}

.pdt-auth-status-banner.is-pending .pdt-auth-status-icon {
  background: #eab308;
}

.pdt-auth-status-icon .dashicons {
  font-size: 28px;
  width: 28px;
  height: 28px;
  color: #fff;
}

.pdt-auth-status-content strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.pdt-auth-status-banner.is-active .pdt-auth-status-content strong {
  color: #166534;
}

.pdt-auth-status-banner.is-pending .pdt-auth-status-content strong {
  color: #854d0e;
}

.pdt-auth-status-content p {
  margin: 0;
  font-size: 13px;
}

.pdt-auth-status-banner.is-active .pdt-auth-status-content p {
  color: #15803d;
}

.pdt-auth-status-banner.is-pending .pdt-auth-status-content p {
  color: #a16207;
}

/* ----------------------------------------
   Setup Steps
   ---------------------------------------- */
.pdt-auth-steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 32px;
}

.pdt-auth-step {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.pdt-auth-step-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border-bottom: 1px solid #e5e7eb;
}

.pdt-auth-step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border-radius: 10px;
  flex-shrink: 0;
}

.pdt-auth-step-title h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}

.pdt-auth-step-title p {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}

.pdt-auth-step-content {
  padding: 24px;
}

/* ----------------------------------------
   Secret Key Box
   ---------------------------------------- */
.pdt-auth-secret-box {
  background: linear-gradient(135deg, #fafafa 0%, #f5f5f5 100%);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}

.pdt-auth-secret-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6b7280;
  margin-bottom: 12px;
}

.pdt-auth-secret-label .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

.pdt-auth-secret-value {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pdt-auth-secret-value code {
  flex: 1;
  min-width: 200px;
  padding: 14px 18px;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2px;
  color: #4f46e5;
  word-break: break-all;
}

.pdt-auth-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 18px;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pdt-auth-copy-btn:hover {
  background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.pdt-auth-copy-btn .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

.pdt-auth-secret-help {
  margin: 12px 0 0;
  font-size: 12px;
  color: #9ca3af;
}

/* ----------------------------------------
   Advanced (Provisioning URI)
   ---------------------------------------- */
.pdt-auth-advanced {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}

.pdt-auth-advanced summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pdt-auth-advanced summary:hover {
  background: #f3f4f6;
  color: #374151;
}

.pdt-auth-advanced summary .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

.pdt-auth-advanced-content {
  padding: 0 18px 18px;
}

.pdt-auth-advanced-content .description {
  margin: 0 0 12px;
  font-size: 12px;
  color: #9ca3af;
}

.pdt-auth-uri-textarea {
  width: 100%;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  font-size: 11px;
  color: #6b7280;
  resize: vertical;
}

.pdt-auth-uri-textarea:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* ----------------------------------------
   Verification Form
   ---------------------------------------- */
.pdt-auth-verify-form {
  max-width: 400px;
}

.pdt-auth-code-input-wrapper {
  display: flex;
  gap: 12px;
  align-items: stretch;
  flex-wrap: wrap;
}

.pdt-auth-code-input {
  flex: 1;
  min-width: 160px;
  padding: 14px 18px;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 8px;
  text-align: center;
  color: #111827;
  transition: all 0.2s ease;
}

.pdt-auth-code-input::placeholder {
  color: #d1d5db;
  letter-spacing: 8px;
}

.pdt-auth-code-input:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.pdt-auth-verify-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px !important;
  height: auto !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border-radius: 12px !important;
}

.pdt-auth-verify-btn .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
}

.pdt-auth-code-help {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 14px 0 0;
  font-size: 12px;
  color: #9ca3af;
}

.pdt-auth-code-help .dashicons {
  font-size: 14px;
  width: 14px;
  height: 14px;
  color: #d1d5db;
}

/* ----------------------------------------
   Management Section
   ---------------------------------------- */
.pdt-auth-management {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
}

.pdt-auth-management h4 {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.pdt-auth-management > .description {
  margin: 0 0 20px;
  font-size: 13px;
  color: #6b7280;
}

.pdt-auth-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pdt-auth-action-form {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.pdt-auth-action-form .button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 180px;
}

.pdt-auth-action-form .button .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

.pdt-auth-action-desc {
  font-size: 12px;
  color: #9ca3af;
}

.pdt-auth-disable-btn {
  color: #dc2626 !important;
  border-color: #fecaca !important;
  background: #fff !important;
}

.pdt-auth-disable-btn:hover {
  color: #fff !important;
  background: #dc2626 !important;
  border-color: #dc2626 !important;
}

.pdt-auth-disable-btn .dashicons {
  color: inherit;
}

/* ----------------------------------------
   Responsive
   ---------------------------------------- */
@media screen and (max-width: 600px) {
  .pdt-auth-status-banner {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }

  .pdt-auth-step-header {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .pdt-auth-secret-value {
    flex-direction: column;
    align-items: stretch;
  }

  .pdt-auth-secret-value code {
    min-width: auto;
    text-align: center;
  }

  .pdt-auth-copy-btn {
    justify-content: center;
  }

  .pdt-auth-code-input-wrapper {
    flex-direction: column;
  }

  .pdt-auth-code-input {
    min-width: auto;
  }

  .pdt-auth-action-form {
    flex-direction: column;
    align-items: stretch;
  }

  .pdt-auth-action-form .button {
    justify-content: center;
  }
}
