/**
 * Opensolr Search — Admin styles.
 * Minimal styling for the plugin settings pages.
 */

/* Tab content spacing */
.opensolr-tab-content {
	max-width: 900px;
}

/* Verify button result badges */
#opensolr-verify-result .dashicons {
	font-size: 20px;
	vertical-align: middle;
	margin-left: 8px;
}

#opensolr-verify-result .success {
	color: #46b450;
}

#opensolr-verify-result .error {
	color: #dc3232;
}

/* Account summary container */
#opensolr-account-summary {
	background: #f9f9f9;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	padding: 20px;
	margin-top: 10px;
}

/* ============================================================
   Save & Connect modal — moved from inline <style> in
   class-admin-settings.php per WP.org plugin guidelines.
   ============================================================ */
@keyframes oss-spin { to { transform: rotate(360deg); } }

.oss-connect-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6); z-index: 100000;
  display: flex; align-items: center; justify-content: center;
}
.oss-connect-box {
  background: #fff; border-radius: 12px; padding: 32px;
  max-width: 520px; width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.oss-connect-title {
  margin: 0 0 20px; font-size: 18px; font-weight: 700; color: #1e293b;
}

.oss-cs-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid #f1f5f9;
}
.oss-cs-icon {
  width: 24px; height: 24px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.oss-cs-label { font-size: 14px; color: #64748b; }
.oss-cs-label--active { color: #1e293b; font-weight: 600; }
.oss-cs-label--done   { color: #166534; font-weight: 600; }
.oss-cs-label--error  { color: #dc2626; font-weight: 600; }

.oss-cs-result { margin-top: 16px; }
.oss-cs-success {
  padding: 14px 16px; background: #f0fdf4; border: 1px solid #bbf7d0;
  border-radius: 8px; color: #166534; margin-top: 8px;
}
.oss-cs-success-msg { margin: 0 0 8px; font-weight: 600; }
.oss-cs-error {
  padding: 14px 16px; background: #fef2f2; border: 1px solid #fecaca;
  border-radius: 8px; color: #991b1b; margin-top: 8px;
}
.oss-cs-error-title { margin: 0 0 8px; font-weight: 600; }
.oss-cs-error-msg   { margin: 0 0 8px; font-size: 13px; }
.oss-cs-upgrade-wrap { margin: 0 0 10px; }
.oss-cs-contact     { margin: 0 0 8px; font-size: 13px; }
.oss-cs-contact-link { color: #667eea; font-weight: 600; }

.oss-cs-btn {
  background: #64748b; color: #fff; border: none;
  padding: 8px 20px; border-radius: 6px; cursor: pointer;
  font-weight: 600; margin-top: 4px;
}
.oss-cs-btn-continue { background: #667eea; }
.oss-cs-btn-upgrade {
  display: inline-block; background: #c05520; color: #fff;
  padding: 10px 24px; border-radius: 8px; font-weight: 700;
  font-size: 14px; text-decoration: none;
}

/* ============================================================
   Search Page tab — iPhone-style toggle rows
   Moved from inline <style> in class-admin-settings.php.
   ============================================================ */
.oss-toggle-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid #e2e8f0;
}
.oss-toggle {
  position: relative; width: 50px; height: 26px; flex-shrink: 0;
}
.oss-toggle input { opacity: 0; width: 0; height: 0; }
.oss-toggle-track {
  position: absolute; inset: 0; background: #cbd5e1;
  border-radius: 13px; cursor: pointer; transition: background 0.2s;
}
.oss-toggle-track:before {
  content: ""; position: absolute;
  width: 20px; height: 20px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.oss-toggle input:checked + .oss-toggle-track { background: #667eea; }
.oss-toggle input:checked + .oss-toggle-track:before { transform: translateX(24px); }

.oss-toggle-label { font-weight: 600; font-size: 15px; color: #1e293b; }
.oss-toggle-desc  { font-size: 13px; color: #64748b; margin-top: 2px; }

.oss-settings-panel {
  margin: 0 0 20px 62px; padding: 16px 20px;
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px;
}
