@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;500;600;700&display=swap');

/* ------Schema Manager Basic Style -------- */
:root {
  --srk-primary: #0B1D51;
  --srk-primary-hover: #241180;
  --srk-secondary: #F28500;
  --srk-primary-80: rgba(21, 29, 72, .80);
  --srk-secondary-90: #d97700;
  --srk-text: #0f172a;
  --srk-muted: #6b7280;
  --srk-border: #e5e7eb;
  --srk-card: #FFFFFF;
  --srk-card-hover: #F9FAFB;
  --srk-card-ghost: #0c1126;
  --srk-success: #16a34a;
  --srk-warning: #f59e0b;
  --srk-surface: #ffffff;
  --srk-shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
}

.srk-chat-wrap {
  max-width: 100%;
}

/* Schema Manager Wrapper - matches other templates (Alt Text, Chatbot, etc.) */
.srk-schema-wrapper {
  max-width: 1400px;
  margin: 20px auto;
  padding: 0 20px;
  box-sizing: border-box;
}

@media (max-width: 1200px) {
  .srk-schema-wrapper {
    padding: 0 16px;
  }
}

@media (max-width: 768px) {
  .srk-schema-wrapper {
    margin: 16px auto;
    padding: 0 12px;
  }
}

.srk-schema-manager {
  font-family: 'Figtree', sans-serif;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
}

/* Cards */
.srk-schema-card,
.srk-schema-config-wrapper,
.srk-preview-wrapper {
  font-size: 14px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(16, 24, 40, .06);
  margin-bottom: 1.5rem;
  box-sizing: border-box;
  color: #151D48;
}

.srk-schema-config-wrapper,
.srk-preview-wrapper {
  border: 1px solid #e5e7eb;
}

.srk-schema-guide {
  font-size: 15px;
  font-weight: bold;
  color: #F28500;
}

.srk-schema-card {
  padding: 2rem;
}

/* Schema card header with title and Clear License Cache button */
.srk-schema-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.srk-schema-card-header > div:first-child {
  flex: 1;
  min-width: 0;
}

.srk-schema-card-header .srk-inline-form {
  flex-shrink: 0;
  margin: 0;
}

.srk-schema-config-wrapper,
.srk-preview-wrapper {
  padding: 1.25rem;
}

/* Expanded Quick Schema Setup Steps */
.srk-two-column-wrapper .srk-schema-config-wrapper {
  min-height: 400px;
}

/* Typography */
.srk-section-title {
  margin: 0 0 .5rem;
  color: var(--srk-primary);
}

.srk-section-description {
  color: #475569;
  margin-bottom: 0; /* Removed bottom margin since it's in header now */
  font-size: .95rem;
  line-height: 1.55;
}

.srk-group-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--srk-primary) !important;
  margin: 0 0 .75rem;
}

.srk-headeing-h3 {
  font-weight: 700;
  color: var(--srk-primary);
}

/* Layout - Full Width Schemas Types Section */
.srk-schema-types-fullwidth {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  width: 100%;
}

.srk-schema-types-fullwidth .container-fluid {
  width: 100%;
  padding: 0;
  margin: 0;
}

.srk-schema-types-fullwidth .row {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  width: 100%;
}

.srk-schema-types-fullwidth .col-12 {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 0;
  width: 100%;
}

/* Full Width Schema List */
.srk-schema-list-fullwidth {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  width: 100% !important;
}

@media (min-width: 576px) {
  .srk-schema-list-fullwidth {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (min-width: 768px) {
  .srk-schema-list-fullwidth {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

@media (min-width: 992px) {
  .srk-schema-list-fullwidth {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

@media (min-width: 1200px) {
  .srk-schema-list-fullwidth {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

/* Two-Column Layout for Quick Steps and Preview */
.srk-two-column-wrapper {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 1.25rem;
  margin-top: 1rem;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1200px) {
  .srk-two-column-wrapper {
    grid-template-columns: 1fr 350px;
  }
}

@media (max-width: 1024px) {
  .srk-two-column-wrapper {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

/* Layout - Desktop (internal three-column UI) - Keep for backward compatibility */
.srk-three-column-wrapper {
  display: grid;
  grid-template-columns: 225px 1fr 275px;
  gap: 1.25rem;
  margin-top: 1rem;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

.srk-schema-left-panel {
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  padding-right: .5rem;
  overflow-x: hidden;
  word-wrap: break-word;
}

.srk-schema-left-panel::-webkit-scrollbar {
  width: 6px;
}

.srk-schema-left-panel::-webkit-scrollbar-thumb {
  background: var(--srk-primary);
  border-radius: 3px;
}

.srk-schema-left-panel::-webkit-scrollbar-track {
  background: #f6f8fa;
}

/* Middle Panel */
.srk-schema-middle-panel {
  width: 100%;
  min-width: 0;
}

.srk-schema-config-card {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

/* Right Panel */
.srk-schema-right-panel {
  position: sticky;
  top: 1rem;
  width: 100%;
  flex-direction: column;
  box-sizing: border-box;
  overflow: visible;
}

/* List */
.srk-schema-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .5rem;
  width: 190px !important;
}

/* Full width schema list items should not have fixed width */
.srk-schema-list-fullwidth .srk-schema-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.srk-schema-list-fullwidth .srk-schema-checkbox {
  width: 100%;
  min-height: 48px;
  justify-content: space-between;
}

.srk-schema-list-fullwidth .srk-schema-actions {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
  flex-shrink: 0;
}

.srk-schema-checkbox {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1rem;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 4px solid var(--srk-primary) !important;
  transition: all .2s ease;
  cursor: pointer;
  border: 1px solid #e5e7eb;
  gap: 0.75rem;
  position: relative;
}

.srk-schema-checkbox:hover {
  background: #eef2f7;
  border-left-color: var(--srk-secondary) !important;
}

.srk-schema-checkbox input[type="checkbox"] {
  margin-right: 0;
  transform: scale(1.1);
  flex-shrink: 0;
}

.srk-schema-name {
  flex: 1;
  min-width: 0;
}

.srk-done-tag {
  background-color: var(--srk-primary);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 5px;
  margin-left: 0;
  margin-right: 0;
  font-weight: 700;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.srk-done-tag:hover {
  background-color: var(--srk-secondary);
}

/* Form */
.srk-schema-form-group {
  margin-bottom: 1.1rem;
}

.srk-schema-form-group label {
  display: block;
  margin-bottom: .5rem;
  font-weight: 600;
  color: var(--srk-primary);
  font-size: .9rem;
}

.srk-form-select,
.srk-schema-dropdown {
  width: 100%;
  padding: .6rem .8rem;
  font-size: .9rem;
  border: 1px solid #d0d7de;
  border-radius: 8px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box;
}

.srk-form-select:focus,
.srk-schema-dropdown:focus {
  border-color: var(--srk-primary) !important;
  box-shadow: 0 0 0 3px rgba(21, 29, 72, .12);
  outline: none;
}

.srk-schema-meta-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

.srk-schema-meta-table td {
  padding: 0.75rem 0.5rem;
  vertical-align: middle;
  min-width: 0;
}

.srk-schema-meta-label {
  font-weight: 600;
  color: var(--srk-primary);
  width: 30%;
  min-width: 120px;
  font-size: 0.85rem;
  padding: 0.75rem 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.srk-schema-meta-row td:last-child {
  width: 70%;
  min-width: 300px;
  padding-left: 0.5rem;
  /* Ensure field mapping container always has space */
  overflow: visible;
  /* Prevent width changes on hover */
  box-sizing: border-box;
  position: relative;
}

.srk-schema-field-mapping {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  /* Prevent width changes on hover */
  box-sizing: border-box;
  position: relative;
}

.srk-global-selector.srk-select,
.srk-group-selector.srk-select {
  min-width: 140px;
  max-width: 140px;
  flex: 0 0 140px;
  font-size: 0.85rem;
  padding: 6px 8px;
  height: 40px;
  box-sizing: border-box;
}

.srk-group-values.srk-select {
  min-width: 150px;
  max-width: none;
  flex: 1;
  font-size: 0.85rem;
  padding: 6px 8px;
  height: 40px;
  box-sizing: border-box;
}

.srk-value-container {
  flex: 1;
  min-width: 200px;
  max-width: 100%;
  display: flex;
  align-items: center;
  height: 40px;
  box-sizing: border-box;
  /* Always visible - never hide */
  visibility: visible !important;
  display: flex !important;
}

.srk-site-value-display {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid #2c3338;
  border-radius: 4px;
  width: 100%;
  min-width: 200px;
  max-width: 100%;
  height: 40px;
  overflow-y: hidden;
  overflow-x: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 0.85rem;
  box-sizing: border-box;
  transition: none;
  flex: 1;
  /* Ensure width remains fixed on hover */
  position: relative;
}

.srk-site-value-display:hover {
  /* Keep width consistent - only allow scrolling if content overflows */
  overflow-y: auto;
  overflow-x: hidden;
  white-space: nowrap;
  /* Maintain exact same width */
  width: 100%;
  min-width: 200px;
  max-width: 100%;
}

.srk-site-value-display::-webkit-scrollbar {
  width: 6px;
}

.srk-site-value-display::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

/* Custom input field - consistent sizing */
.srk-group-values.srk-form-input {
  width: 100% !important;
  min-width: 200px !important;
  max-width: 100% !important;
  flex: 1 !important;
  box-sizing: border-box !important;
  padding: 8px 12px !important;
  font-size: 0.85rem !important;
  border: 1px solid #2c3338 !important;
  border-radius: 4px !important;
  background: #fff !important;
  height: 40px !important;
  /* Always visible - never hide */
  visibility: visible !important;
  display: block !important;
}

/* Ensure consistent field layout regardless of selection state */
.srk-schema-field-mapping .srk-value-container {
  /* Always visible and maintain consistent width */
  opacity: 1 !important;
  visibility: visible !important;
  display: flex !important;
  flex: 1 !important;
  min-width: 200px !important;
  max-width: 100% !important;
  min-height: 40px;
  /* Prevent width changes on hover */
  width: 100% !important;
  box-sizing: border-box !important;
}

.srk-schema-field-mapping .srk-group-values,
.srk-schema-field-mapping .srk-site-value-display {
  /* Prevent fields from hiding or collapsing */
  opacity: 1 !important;
  visibility: visible !important;
  min-height: 40px;
  /* Ensure consistent width on hover */
  transition: none !important;
}

/* When Site Information is selected - maintain full width for display */
.srk-schema-field-mapping .srk-site-value-display {
  width: 100% !important;
  min-width: 200px !important;
  max-width: 100% !important;
  flex: 1 !important;
  /* Prevent width changes on hover */
  box-sizing: border-box !important;
}

.srk-schema-field-mapping .srk-site-value-display:hover {
  /* Maintain exact same dimensions on hover */
  width: 100% !important;
  min-width: 200px !important;
  max-width: 100% !important;
  white-space: nowrap !important;
  overflow-y: auto;
  overflow-x: hidden;
}

/* When Custom Value is selected - maintain consistent width for input */
.srk-schema-field-mapping .srk-group-values.srk-form-input {
  width: 100% !important;
  min-width: 200px !important;
  max-width: 100% !important;
  flex: 1 !important;
  /* Prevent width changes on hover */
  box-sizing: border-box !important;
}

.srk-schema-field-mapping .srk-group-values.srk-form-input:hover {
  /* Maintain exact same dimensions on hover */
  width: 100% !important;
  min-width: 200px !important;
  max-width: 100% !important;
}

/* Headings */
.srk-schema-config-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.srk-meta-heading {
  font-size: 1rem;
  margin: 0.5rem 0;
}

/* Preview Section */
.srk-preview-wrapper {
  overflow-x: auto;
}

/* ✅ NEW: JSON-LD Preview Loader Styles */
#srk-json-preview-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  transition: opacity 0.3s ease;
}

#srk-json-preview-loader .spinner {
  width: 32px;
  height: 32px;
  border-width: 3px;
  border-color: var(--srk-primary);
  border-top-color: transparent;
}

#srk-json-preview-loader p {
  margin-top: 12px;
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
}

#srk-json-preview-container {
  margin-top: 1rem;
  background: #f8fafc;
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-x: auto;
  overflow-y: auto;
  box-sizing: border-box;
  max-width: 100%;
}

#srk-json-preview {
  font-size: 12px;
  line-height: 1.5;
  color: #0f172a;
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-x: auto;
  flex-grow: 1;
  min-width: 0;
  max-width: 100%;
}

/* Actions */
.srk-actions {
  display: flex;
  gap: .75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

.button-save-set,
.button-validate-schema {
  background: var(--srk-primary) !important;
  color: #fff !important;
  padding: 9px 10px !important;
  border-radius: 5px !important;
  border: none !important;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none !important;
  transition: background .2s, transform .06s;
  box-sizing: border-box;
}

.button-save-set:hover,
.button-validate-schema:hover {
  background: var(--srk-secondary) !important;
  color: #151D48 !important;
  transform: translateY(-1px);
}

/* Messages & Status */
.srk-loading {
  padding: 2rem;
  text-align: center;
  color: #64748b;
  font-style: italic;
}

.srk-required {
  color: var(--srk-primary);
  margin-left: .25rem;
}

#srk-save-status {
  flex: 1;
  min-width: 100%;
}

/* ✅ NEW: Validation Error Display Styles */
.srk-validation-container {
	background: #fff3cd;
	border: 1px solid #ffc107;
	border-radius: 8px;
	padding: 15px 20px;
	margin: 15px 0;
	display: none;
}

.srk-validation-errors {
	margin-bottom: 15px;
}

.srk-validation-errors h4 {
	font-size: 14px;
	font-weight: 600;
	margin: 0 0 10px 0;
	color: #dc3545;
}

.srk-validation-errors ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.srk-validation-errors li {
	padding: 8px 0;
	border-bottom: 1px solid rgba(220, 53, 69, 0.1);
}

.srk-validation-errors li:last-child {
	border-bottom: none;
}

.srk-validation-errors strong {
	color: #721c24;
}

.srk-validation-warnings {
	margin-top: 15px;
	padding-top: 15px;
	border-top: 1px solid rgba(255, 193, 7, 0.3);
}

.srk-validation-warnings h4 {
	font-size: 14px;
	font-weight: 600;
	margin: 0 0 10px 0;
	color: #856404;
}

.srk-validation-warnings ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.srk-validation-warnings li {
	padding: 8px 0;
	border-bottom: 1px solid rgba(255, 193, 7, 0.2);
}

.srk-validation-warnings li:last-child {
	border-bottom: none;
}

.srk-validation-warnings strong {
	color: #856404;
}

/* ✅ ENHANCED: Detailed Error Display Styles */
.srk-validation-header {
	margin-bottom: 15px;
	padding-bottom: 12px;
	border-bottom: 2px solid rgba(255, 193, 7, 0.3);
}

.srk-validation-errors-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.srk-error-item {
	transition: all 0.2s ease;
	box-shadow: 0 1px 3px rgba(220, 53, 69, 0.1);
}

.srk-error-item:hover {
	box-shadow: 0 2px 6px rgba(220, 53, 69, 0.15);
	transform: translateX(2px);
}

.srk-error-item code {
	background: #e2e8f0;
	padding: 2px 6px;
	border-radius: 3px;
	font-size: 11px;
	color: #0f172a;
}

.srk-validation-warnings-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.srk-warning-item {
	transition: all 0.2s ease;
	box-shadow: 0 1px 3px rgba(251, 191, 36, 0.1);
}

.srk-warning-item:hover {
	box-shadow: 0 2px 6px rgba(251, 191, 36, 0.15);
	transform: translateX(2px);
}

.srk-focus-field {
	cursor: pointer;
	transition: all 0.2s ease;
}

.srk-focus-field:hover {
	background: #dc3545 !important;
	color: #fff !important;
	transform: translateY(-1px);
	box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

/* Field error highlighting */
.srk-field-error {
	background-color: #fff5f5 !important;
	border-left: 3px solid #dc3545 !important;
	padding-left: 10px !important;
}

.srk-field-warning {
	background-color: #fffbf0 !important;
	border-left: 3px solid #ffc107 !important;
	padding-left: 10px !important;
}

/* ✅ NEW: Required field styling */
.srk-field-required {
	background-color: #fff5f5;
}

.srk-field-required .srk-schema-meta-label {
	font-weight: 600;
}

.srk-required-marker {
	color: #dc3545;
	font-weight: bold;
	margin-left: 4px;
}

.srk-field-enable[data-required="true"] {
	cursor: not-allowed !important;
	opacity: 0.7;
}

.srk-alert {
  padding: .75rem 1rem;
  margin: .5rem 0 0;
  border-radius: 8px;
  font-size: .9rem;
}

.srk-alert-success {
  background: #f0f9eb;
  border-left: 4px solid var(--srk-primary);
  color: var(--srk-primary);
}

.srk-alert-error {
  background: #ffefe7;
  border-left: 4px solid var(--srk-secondary);
  color: var(--srk-primary);
}

/* .srk-schema-group {
  padding: 15px 20px;
  border-radius: 8px;
  width: 180px !important;
} */

/* Coming Soon */
.srk-coming-soon {
  padding: 30px;
  text-align: center;
  background-color: #f9f9f9;
  border-radius: 8px;
  border: 1px dashed #ccc;
  margin: 20px 0;
}

.srk-coming-soon-content h4 {
  color: #333;
  margin-bottom: 10px;
  font-size: 18px;
}

.srk-coming-soon-content p {
  color: #666;
  margin-bottom: 15px;
}

.srk-coming-soon-icon {
  font-size: 40px;
  margin-top: 15px;
}

/* Modal Styles */
.srk-modal {
  position: fixed;
  z-index: 999999 !important; /* ✅ Very high z-index to ensure modal is above all other elements */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.srk-modal-content {
  position: relative;
  z-index: 1000000 !important; /* ✅ Even higher z-index for modal content */
  background-color: #fff;
  margin: auto;
  padding: 0;
  border-radius: 8px;
  width: 450px;
  max-width: 90%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  animation: srk-modal-fadein 0.3s;
}

@keyframes srk-modal-fadein {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.srk-modal-header {
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 1; /* ✅ Ensure header content is properly layered */
}

.srk-modal-header h3 {
  margin: 0;
  font-size: 18px;
  color: #F28500;
}

.srk-modal-close,
.srk-validation-button {
  color: #151D48 !important;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  line-height: 1;
  padding: 8px;
  background-color: transparent !important;
  border: 1.5px solid #151D48;
  border-radius: 5px;
}

.srk-go-to-plugins {
  background-color: #151D48 !important;
  color: #F28500 !important;
}

.srk-validation-button:hover,
.srk-modal-close:hover {
  color: #F28500;
}

.srk-modal-body {
  padding: 20px;
  position: relative;
  z-index: 1; /* ✅ Ensure body content is properly layered */
}

.srk-modal-body p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #1d2327;
  font-weight: 500;
}

.srk-modal-footer {
  padding: 15px 20px;
  text-align: right;
  position: relative;
  z-index: 1; /* ✅ Ensure footer content is properly layered */
}

.srk-modal-footer .button {
  margin-left: 10px;
}

#srk-modal-edit {
  background-color: #0f172a;
  border-radius: 5px;
  color: #fff;
}

#srk-modal-cancel {
  border-radius: 5px;
  border: 1px solid #0f172a;
  color: #F28500;
}

.srk-loading {
  display: flex;
  align-items: center;
  font-size: 14px;
  color: #555;
}

.srk-spinner {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border: 3px solid #ddd;
  border-top: 2px solid #151D48;
  border-radius: 50%;
  animation: srk-spin 0.8s linear infinite;
}

@keyframes srk-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Validation Styles */
.srk-field-error {
  background-color: #fff8f8 !important;
  border-left: 4px solid #dc3232 !important;
}

.srk-field-error .srk-schema-meta-label {
  color: #dc3232 !important;
  font-weight: bold !important;
}

.srk-validation-notice {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 5px;
  padding: 15px;
  margin: 15px 0;
  position: relative;
}

.srk-validation-notice.warning {
  background: #fff8e1;
  border-color: #ffd54f;
}

.srk-validation-notice.info {
  background: #e3f2fd;
  border-color: #64b5f6;
}

.srk-dependency-list {
  margin: 10px 0;
  padding-left: 20px;
}

.srk-dependency-list li {
  margin: 5px 0;
  list-style-type: disc;
}

/* Additional Missing Styles */
.srk-schema-yaxis {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.srk-schema-flex-container {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.srk-schema-item {
  margin: 0;
  padding: 0;
}

.srk-schema-input {
  margin: 0;
  cursor: pointer;
}

.srk-schema-config-wrapper .srk-schema-form-group:last-child {
  margin-bottom: 0;
}

.srk-form-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--srk-border);
  border-radius: 6px;
  font-size: 0.9rem;
  box-sizing: border-box;
}

.srk-form-input:focus {
  border-color: var(--srk-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(21, 29, 72, 0.1);
}

/* Button enhancements */
.button {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  border: none;
  transition: all 0.2s ease;
}

.button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.srk-success-message {
  color: var(--srk-success);
  font-weight: 600;
}

.srk-error-message {
  color: #dc3232;
  font-weight: 600;
}

.srk-warning-message {
  color: var(--srk-warning);
  font-weight: 600;
}

.srk-lock-notice {
  background: #fff3e0;
  border: 1px solid #ffb74d;
  border-radius: 6px;
  padding: 12px 16px;
  margin: 10px 0;
  color: #e65100;
  font-size: 0.9rem;
}

.srk-lock-notice .dashicons {
  color: #e65100;
  margin-right: 8px;
}

@media screen and (max-width: 767px) {
  .srk-schema-meta-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .srk-schema-meta-table td {
    white-space: nowrap;
  }

  /* Ensure field mapping fields remain usable on mobile */
  .srk-group-values.srk-select {
    min-width: 120px;
  }
}

/* WordPress compatibility */
.wrap .srk-schema-manager {
  margin: 20px 0;
}

.srk-schema-manager * {
  box-sizing: border-box;
  line-height: normal;
}

/* ================================
   OUTER WRAPPER (Upgrade-style)
   ================================ */
.srk-schema-wrap {
  max-width: 98.5%;
  margin: 24px 0;
}

/* Hero Section – matches Links Manager hero style */
.srk-hero {
  background: linear-gradient(135deg, var(--srk-card) 0%, rgba(107, 78, 255, 0.03) 100%);
  border: 1px solid var(--srk-border);
  border-radius: 14px;
  padding: 24px 26px;
  box-shadow: var(--srk-shadow-card);
  position: relative;
  overflow: hidden;
}

.srk-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(107, 78, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(30%, -30%);
  pointer-events: none;
}

.srk-hero-content {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  position: relative;
  z-index: 0;
}

.srk-hero-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--srk-primary) 0%, var(--srk-primary-hover) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(107, 78, 255, 0.25);
}

.srk-hero-icon .dashicons {
  font-size: 24px;
  width: 24px;
  height: 24px;
  color: #FFFFFF;
  line-height: 1;
}

.srk-hero-text {
  flex: 1;
  min-width: 0;
}

.srk-hero h2 {
  margin: 0 0 6px 0;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.srk-hero p {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: var(--srk-muted);
  line-height: 1.6;
  font-weight: 400;
  max-width: 680px;
}

.srk-hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.srk-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  background: var(--srk-card);
  border: 1px solid var(--srk-border);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #111827;
  transition: all 0.2s ease;
}

.srk-hero-badge:hover {
  background: var(--srk-card-hover);
  border-color: var(--srk-primary);
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(107, 78, 255, 0.1);
}

.srk-hero-badge .dashicons {
  font-size: 14px;
  width: 14px;
  height: 14px;
  color: var(--srk-primary);
  line-height: 1;
}

/* Hero section – matches Links Manager hero style (legacy schema-hero styles) */
.srk-schema-hero {
  border: 1px solid var(--srk-border);
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 20px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  position: relative;
  overflow: hidden;
}

.srk-schema-hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.14) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(30%, -30%);
  pointer-events: none;
}

.srk-schema-hero-content {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.srk-schema-hero-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--srk-primary) 0%, var(--srk-primary-hover) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(107, 78, 255, 0.25);
  margin-top: 2px; /* nudge to align top with heading baseline */
}

.srk-schema-hero-icon .dashicons {
  font-size: 24px;
  width: 24px;
  height: 24px;
  color: #FFFFFF;
  line-height: 1;
}

.srk-schema-hero-text {
  flex: 1;
  min-width: 0;
  margin-top: -9px;
}

.srk-schema-hero .srk-title {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.srk-schema-hero .srk-subtitle {
  margin: 0;
  font-size: 14px;
  color: var(--srk-muted);
  line-height: 1.6;
  font-weight: 400;
  max-width: 680px;
}

/* Hero badge row (below subtitle) */
.srk-schema-hero-features {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.srk-schema-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: #ffffff;
  border: 1px solid rgba(99, 102, 241, 0.26);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  color: var(--srk-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: all 0.2s ease;
}

.srk-schema-hero-badge:hover {
  background: #f3f4ff;
  border-color: rgba(79, 70, 229, 0.7);
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(79, 70, 229, 0.18);
}

.srk-schema-hero-badge .dashicons {
  font-size: 12px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #ffffff;
  line-height: 18px;
  text-align: center;
}

.srk-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  align-items: start;
}

@media (max-width: 1100px) {
  .srk-grid {
    grid-template-columns: 1fr;
  }
}

.srk-grid--single {
  grid-template-columns: 1fr !important;
}

.srk-cta-card {
  background: var(--srk-card);
  border-radius: 12px;
  color: #c7d2fe;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .06);
}

.srk-cta-head {
  padding: 22px 24px 8px 24px;
  display: flex;
  gap: 12px;
  align-items: center;
  color: #e5e7eb;
  background: var(--srk-card-ghost);
}

.srk-cta-head .srk-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--srk-primary), var(--srk-primary-80));
  color: #fff;
  font-size: 20px;
}

.srk-cta-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: #eef2ff;
}

.srk-cta-sub {
  margin: 2px 0 0 0;
  font-size: 12px;
  color: #a5b4fc;
}

.srk-cta-body {
  padding: 0 24px 20px 24px;
  background: var(--srk-card-ghost);
}

.srk-feature {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.srk-feature:last-child {
  border-bottom: 0;
}

.srk-feature i {
  color: var(--srk-success);
  margin-top: 2px;
}

.srk-feature span {
  color: #dbeafe;
  font-size: 14px;
}

.srk-cta-footer {
  background: var(--srk-card-ghost);
  padding: 18px 24px;
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.srk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  padding: 10px 16px;
  border-radius: 5px;
  font-weight: 700;
  border: none;
  transition: transform .08s ease, box-shadow .2s ease, background .2s ease;
}

.srk-btn-primary {
  background: var(--srk-secondary);
  color: #fff;
  box-shadow: 0 8px 20px rgba(242, 133, 0, .25);
}

.srk-btn-primary:hover {
  background: var(--srk-secondary-90);
  transform: translateY(-1px);
}

.srk-btn-secondary {
  background: #0B1D51;
  color: #ffffff;
}

.srk-btn-secondary:hover {
  color: #ffffff;
  border-color: #cbd5e1;
}

.srk-panel {
  background: var(--srk-surface);
  border: 1px solid var(--srk-border);
  border-radius: 12px;
  padding: 20px;
}

.srk-panel+.srk-panel {
  margin-top: 16px;
}

.srk-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.srk-panel-title {
  margin: 0;
  color: var(--srk-primary);
  font-size: 20px;
}

.srk-inline-form {
  margin: 0;
}

.srk-schema-ui-root {
  margin-top: 8px;
}

/* Notices spacing */
.srk-notice {
  margin: 12px 0 20px 0;
}

/* Admin notices container before hero section */
.srk-schema-notices {
  margin: 0 0 20px 0;
  width: 100%;
}

.srk-schema-notices .notice {
  margin: 0 0 12px 0 !important;
  max-width: 100%;
}

.srk-schema-notices .notice:last-child {
  margin-bottom: 0 !important;
}

.srk-schema-notices .notice p {
  margin: 0.5em 0;
}

/* Admin notices before hero section (fallback for direct children) */
.srk-schema-wrap > .notice,
.srk-schema-wrap > .srk-notice {
  margin: 0 0 20px 0;
  max-width: 100%;
}

.srk-schema-wrap > .notice p {
  margin: 0.5em 0;
}

/* Notices inside hero will be moved by JavaScript to srk-schema-notices container */

/* Ensure notices are responsive */
@media screen and (max-width: 782px) {
  .srk-schema-notices {
    margin: 0 0 16px 0;
  }
  
  .srk-schema-wrap > .notice,
  .srk-schema-wrap > .srk-notice {
    margin: 0 0 16px 0;
  }
}

/* ─────────────────────────────────────────────
   Quick Schema Setup (middle panel polish)
   ───────────────────────────────────────────── */
#srk-schema-config-wrapper {
  position: relative;
  border: 1px solid var(--srk-border);
  border-radius: 14px;
  padding: 18px 18px 16px 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfbff 100%);
  box-shadow: 0 6px 20px rgba(16, 24, 40, 0.06);
  overflow-x: auto;
  overflow-y: visible;
}

#srk-schema-config-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--srk-primary), var(--srk-secondary));
  opacity: .9;
  z-index: 0;
  width: var(--line-width, 100%);
}

#srk-schema-config-wrapper .srk-schema-guide {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--srk-primary);
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff7ed;
  border: 1px solid #fde7c7;
  margin: 0 0 10px 0;
}

#srk-schema-config-wrapper .srk-schema-guide::before {
  content: "⚡";
  font-size: 14px;
  line-height: 1;
}

#srk-schema-config-wrapper br {
  line-height: 1.1;
}

#srk-schema-config-wrapper {
  color: #475569;
  font-size: .95rem;
}

/* ─────────────────────────────────────────────
   Enhanced list version (optional markup below)
   ───────────────────────────────────────────── */
.srk-quick-steps {
  list-style: none;
  margin: 10px 0 0 0;
  padding: 0;
  counter-reset: srkStep;
  display: grid;
  gap: 10px;
}

.srk-quick-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px dashed #e6eaf0;
  border-radius: 10px;
  background: #ffffff;
  transition: border-color .2s ease, background .2s ease, transform .06s ease;
}

.srk-quick-steps li::before {
  counter-increment: srkStep;
  content: counter(srkStep);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(145deg, var(--srk-primary), var(--srk-primary-80));
  box-shadow: 0 6px 16px rgba(21, 29, 72, 0.18);
  margin-top: 2px;
}

.srk-quick-steps li:hover {
  background: #f9fbff;
  border-color: #dbe4ff;
  transform: translateY(-1px);
}

.srk-quick-steps .srk-step-title {
  color: var(--srk-text);
  font-weight: 700;
  font-size: .95rem;
  margin: 0 0 2px 0;
}

.srk-quick-steps .srk-step-desc {
  color: #64748b;
  font-size: .9rem;
  margin: 0;
}

@media (max-width: 480px) {
  .srk-quick-steps li {
    padding: 10px;
    grid-template-columns: 26px 1fr;
  }

  .srk-quick-steps li::before {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    font-size: 12px;
  }
}

.srk-muted-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0), rgba(2, 6, 23, .06), rgba(2, 6, 23, 0));
  margin: 10px 0;
}

/* LEFT PANEL — Schema selection polish */

.srk-schema-left-panel {
  padding-right: .25rem;
}

.srk-group-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 .75rem;
  font-weight: 800;
  color: var(--srk-primary);
}

.srk-group-heading::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0), rgba(2, 6, 23, .06), rgba(2, 6, 23, 0));
}

.srk-schema-group {
  padding: 14px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--srk-border);
  box-shadow: 0 6px 18px rgba(16, 24, 40, .05);
  width: auto !important;
}

.srk-schema-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  width: auto !important;
}

/* Each item as a compact card */
.srk-schema-item {
  margin: 0;
}

.srk-schema-checkbox {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e8edf3;
  border-left: 4px solid var(--srk-primary) !important;
  transition: background .20s ease, border-color .20s ease, transform .06s ease, box-shadow .20s ease;
  cursor: pointer;
  line-height: 1.25;
  color: var(--srk-text);
}

/* Hover & active affordance */
.srk-schema-checkbox:hover {
  background: #f3f7ff;
  border-color: #dfe8f5;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(2, 6, 23, .06);
}

/* Focus ring (progressive enhancement uses :has) */
@supports selector(:has(*)) {
  .srk-schema-checkbox:has(.srk-schema-input:focus-visible) {
    outline: 3px solid rgba(21, 29, 72, .12);
    outline-offset: 2px;
  }
}

/* Checkbox input size without breaking WP styles */
.srk-schema-input {
  margin: 0;
  width: 16px;
  height: 16px;
}

/* “Configured” state (server adds .has-settings) */
.srk-schema-item.has-settings .srk-schema-checkbox {
  background: linear-gradient(180deg, #f6fff8 0%, #ffffff 100%);
  border-left-color: var(--srk-success) !important;
  border-color: #e1f3e7;
  box-shadow: 0 10px 20px rgba(22, 163, 74, .08);
}

/* Done tag pill */
.srk-done-tag {
  margin-left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 11px;
  background: var(--srk-success);
  color: #fff;
  box-shadow: 0 6px 12px rgba(22, 163, 74, .25);
  flex-shrink: 0; /* Prevent done tag from shrinking */
}

/* When actions are present, done tag should be before them */
.srk-schema-item.has-settings .srk-schema-checkbox {
  position: relative;
}

.srk-schema-item.has-settings .srk-schema-actions {
  order: 3; /* Ensure actions appear after done tag */
}

.srk-schema-item.has-settings .srk-done-tag:hover {
  filter: brightness(1.05);
}

@supports selector(:has(*)) {
  .srk-schema-checkbox:has(.srk-schema-input:checked) {
    background: #eef3ff;
    border-color: #d7e2ff;
    border-left-color: var(--srk-primary) !important;
    box-shadow: inset 0 0 0 1px rgba(21, 29, 72, .05);
  }
}

/* Tighten layout on smaller screens */
@media (max-width: 991px) {
  .srk-schema-group {
    padding: 12px;
  }

  .srk-schema-checkbox {
    padding: 10px;
  }
}

@media (max-width: 767px) {
  .srk-group-heading::after {
    display: none;
  }

  /* save space on mobile */
  .srk-schema-checkbox {
    gap: 8px;
  }

  .srk-done-tag {
    height: 20px;
    min-width: 20px;
    font-size: 10px;
  }

  /* Schema card header responsive */
  .srk-schema-card-header {
    flex-direction: column;
    align-items: stretch;
  }

  .srk-schema-card-header .srk-inline-form {
    width: 100%;
  }

  .srk-schema-card-header .srk-btn {
    width: 100%;
  }
}

/* Tooltip-like hint for configured items (pure CSS, subtle)
   Shows a small badge label saying "Configured" when hovering the item.
   Does not rely on extra markup. */
.srk-schema-item.has-settings .srk-schema-checkbox::after {
  content: attr(aria-label);
  content: "Configured";
  position: absolute;
  right: 60px; /* Adjusted to account for action buttons */
  top: -9px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
  padding: 2px 6px;
  border-radius: 999px;
  color: #14532d;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  opacity: .0;
  transform: translateY(-2px);
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}

.srk-schema-item.has-settings .srk-schema-checkbox:hover::after {
  opacity: 1;
  transform: translateY(0);
}

/* ✅ NEW: Schema Edit/Delete Action Buttons */
.srk-schema-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.srk-schema-checkbox {
  flex: 1;
  min-width: 0; /* Allow flex shrinking */
  padding-right: 0 !important;
}

.srk-schema-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0; /* Prevent buttons from shrinking */
  opacity: 1;
  transition: opacity 0.2s ease;
  margin-left: auto;
}

.srk-btn-edit-schema,
.srk-btn-delete-schema {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  margin: 0;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s ease;
  color: var(--srk-muted);
  position: relative;
  z-index: 0;
  flex-shrink: 0;
}

.srk-btn-edit-schema {
  background: #e0f2fe;
  color: var(--srk-primary);
}

.srk-btn-edit-schema:hover {
  background: #bae6fd;
  color: var(--srk-primary);
  transform: scale(1.05);
}

.srk-btn-delete-schema {
  background: #fee2e2;
  color: #dc2626;
}

.srk-btn-delete-schema:hover {
  background: #fecaca;
  color: #b91c1c;
  transform: scale(1.05);
}

.srk-btn-edit-schema:disabled,
.srk-btn-delete-schema:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.srk-btn-edit-schema .dashicons,
.srk-btn-delete-schema .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
  line-height: 16px;
}

.srk-btn-delete-schema .dashicons-update.spin {
  animation: srk-spin 1s linear infinite;
}

@keyframes srk-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .srk-schema-actions {
    opacity: 1; /* Always visible on mobile */
  }
  
  .srk-btn-edit-schema,
  .srk-btn-delete-schema {
    width: 28px;
    height: 28px;
  }
  
  .srk-btn-edit-schema .dashicons,
  .srk-btn-delete-schema .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    line-height: 18px;
  }
}

/* ✅ NEW: Google Rich Results Test Button Styles */
#srk-test-google-rich-results {
  background: var(--srk-primary);
  color: #fff;
  border-color: var(--srk-primary);
  border-radius: 5px !important;
  display: inline-flex;
  align-items: center;
  padding: 11px 11px !important;
  font-size: 13px;
  line-height: 1.5;
  transition: background-color 0.2s, border-color 0.2s;
}

#srk-test-google-rich-results:hover:not(:disabled) {
  background: var(--srk-secondary) !important;
  border-color: var(--srk-secondary) !important;
  color: #fff;
}

#srk-test-google-rich-results:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

#srk-test-google-rich-results .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

/* Google Test Info Box */
.srk-google-test-info {
  margin-top: 10px;
  padding: 12px 16px;
  background: #f0f9ff;
  border-left: 4px solid #4285f4;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.6;
}

.srk-google-test-info p {
  margin: 0;
  color: #1a73e8;
}

.srk-google-test-info strong {
  color: #1557b0;
  font-weight: 600;
}

.srk-google-test-info a {
  color: #1a73e8;
  text-decoration: underline;
}

.srk-google-test-info a:hover {
  color: #1557b0;
}

/* ✅ NEW: Bulk Operations Styles */
.srk-schema-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-bottom: 2px solid #e5e7eb;
  background: #fff;
  padding: 0 20px;
  border-radius: 8px 8px 0 0;
}

.srk-tab-button {
  padding: 12px 24px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: #64748b;
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
  position: relative;
  top: 2px;
}

.srk-tab-button:hover {
  color: var(--srk-primary);
  background: #f8fafc;
}

.srk-tab-button.active {
  color: var(--srk-primary);
  border-bottom-color: var(--srk-primary);
}

.srk-tab-content {
  display: block;
}

.srk-bulk-operations-wrapper {
  padding: 20px;
}

.srk-bulk-step {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
}

.srk-bulk-posts-selection {
  background: #fff;
}

.srk-bulk-post-item {
  transition: all 0.2s ease;
}

.srk-bulk-post-item:hover {
  background: #f0f9ff !important;
  border-color: var(--srk-primary) !important;
  transform: translateX(2px);
}

.srk-bulk-post-item input[type="checkbox"]:checked + span {
  font-weight: 600;
  color: var(--srk-primary);
}

.srk-bulk-actions {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

#srk-bulk-progress {
  margin-top: 20px;
}

#srk-bulk-progress-bar {
  transition: width 0.3s ease;
}

#srk-bulk-result {
  margin-top: 20px;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive bulk operations */
@media screen and (max-width: 782px) {
  .srk-schema-tabs {
    flex-direction: column;
    padding: 0;
  }

  .srk-tab-button {
    width: 100%;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    border-left: 3px solid transparent;
  }

  .srk-tab-button.active {
    border-left-color: var(--srk-primary);
    border-bottom-color: #e5e7eb;
  }

  .srk-bulk-actions {
    flex-direction: column;
  }

  .srk-bulk-actions .button {
    width: 100%;
  }
}