/**
 * YAML Custom Fields Admin Styles
 * File: admin-assets/admin.css
 */

.yaml-cf-admin-container {
  max-width: 1200px;
  margin: 20px 0;
}

.wp-core-ui .yaml-cf-admin-container .button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  vertical-align: middle;
}

/* Header with Logo */
.yaml-cf-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.yaml-cf-header-content {
  display: flex;
  align-items: center;
  gap: 20px;
}

.yaml-cf-logo {
  max-width: 80px;
  height: auto;
  border-radius: 5px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.yaml-cf-header-text h1 {
  color: #fff;
  margin: 0 0 5px 0;
  font-size: 32px;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.yaml-cf-tagline {
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-size: 16px;
  font-weight: 400;
}

.yaml-cf-intro {
  background: #fff;
  border-left: 4px solid #667eea;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.yaml-cf-intro p {
  margin: 10px 0;
}

/* Table Styles */
.wp-list-table .dashicons-yes-alt {
  vertical-align: middle;
  /* margin-top: 5px; */
  margin-left: 8px;
}

.wp-list-table td {
  vertical-align: middle;
}

/* Toggle Switch */
.yaml-cf-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
  margin-top: 3px;
  margin-bottom: 3px;
}

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

.yaml-cf-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 24px;
}

.yaml-cf-slider:before {
  position: absolute;
  content: '';
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

.yaml-cf-switch input:checked + .yaml-cf-slider {
  background-color: #2271b1;
}

.yaml-cf-switch input:checked + .yaml-cf-slider:before {
  transform: translateX(26px);
}

/* Schema Examples */
.yaml-cf-schema-examples {
  background: #fff;
  padding: 20px;
  margin-top: 30px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.yaml-cf-schema-examples pre {
  background: #f5f5f5;
  border: 1px solid #ddd;
  padding: 15px;
  overflow-x: auto;
  border-radius: 3px;
}

.yaml-cf-schema-examples code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  line-height: 1.6;
}

.yaml-cf-schema-examples ul {
  list-style: disc;
  margin-left: 30px;
}

.yaml-cf-schema-examples ul li {
  margin: 8px 0;
}

/* Modal Styles */
.yaml-cf-modal {
  position: fixed;
  z-index: 999999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
}

.yaml-cf-modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 0;
  width: 80%;
  max-width: 900px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  border-radius: 4px;
}

.yaml-cf-modal-header {
  padding: 20px;
  border-bottom: 1px solid #ddd;
  position: relative;
}

.yaml-cf-modal-header h2 {
  margin: 0;
  font-size: 20px;
}

.yaml-cf-modal-close {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #666;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  width: 30px;
  height: 30px;
}

.yaml-cf-modal-close:hover {
  color: #000;
}

.yaml-cf-modal-body {
  padding: 20px;
}

.yaml-cf-modal-footer {
  padding: 15px 20px;
  border-top: 1px solid #ddd;
  background: #f9f9f9;
  text-align: right;
}

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

#yaml-cf-schema-editor {
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  line-height: 1.6;
  width: 100%;
  border: 1px solid #ddd;
  padding: 10px;
}

/* Meta Box Fields */
.yaml-cf-fields {
  margin-top: 15px;
}

.yaml-cf-field {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.yaml-cf-field:last-child {
  border-bottom: none;
}

.yaml-cf-field label,
.yaml-cf-field p {
  display: block;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 8px;
  color: #1d2327;
}

.yaml-cf-field input[type='text'],
.yaml-cf-field input[type='number'],
.yaml-cf-field input[type='date'],
.yaml-cf-field input[type='datetime-local'],
.yaml-cf-field textarea,
.yaml-cf-field select {
  width: 100%;
  max-width: 600px;
}

.yaml-cf-field input[type='checkbox'] {
  /* width: auto; */
  margin-right: 5px;
}

.yaml-cf-field textarea.code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  background: #f5f5f5;
}

/* Page header */
.yaml-cf-meta-box-header a {
  display: inline-block;
}

.yaml-cf-meta-box-header label {
  vertical-align: top;
}

/* Image and File Upload */
.yaml-cf-media-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.yaml-cf-clear-media {
  color: #b32d2e;
  border-color: #b32d2e;
}

.yaml-cf-clear-media:hover {
  background: #b32d2e;
  color: #fff;
  border-color: #b32d2e;
}

.yaml-cf-image-preview {
  margin-top: 10px;
}

.yaml-cf-upload-image + .yaml-cf-image-preview {
  width: 100%;
  margin-top: -10px;
}

.yaml-cf-image-preview img {
  border: 1px solid #ddd;
  padding: 5px;
  background: #efedec;
}

.yaml-cf-file-name {
  margin-top: 10px;
  padding: 8px 12px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 3px;
  display: inline-block;
}

/* Reset Data Button */
.yaml-cf-reset-data {
  display: flex;
  align-items: center;
  gap: 5px;
}

.yaml-cf-reset-data .dashicons {
  font-size: 20px;
  width: 20px;
  height: 20px;
}

/* Object Fields */
.yaml-cf-object {
  margin-left: 20px;
  padding-left: 20px;
  border-left: 3px solid #2271b1;
}

/* Block/Repeater Fields */
.yaml-cf-block-container {
  border: 1px solid #ddd;
  padding: 15px;
  background: #fafafa;
  border-radius: 3px;
}

.yaml-cf-block-list {
  margin-bottom: 15px;
}

.yaml-cf-block-item {
  background: #fff;
  border: 1px solid #ddd;
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 3px;
}

.yaml-cf-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #f0f0f0;
}

.yaml-cf-block-header strong {
  font-size: 14px;
  color: #1d2327;
}

.yaml-cf-block-actions {
  display: flex;
  gap: 5px;
  align-items: center;
}

.yaml-cf-block-actions .button-small {
  padding: 0 6px;
  min-height: 28px;
  line-height: 26px;
}

.yaml-cf-block-actions .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
  vertical-align: middle;
}

.yaml-cf-move-up,
.yaml-cf-move-down {
  color: #2271b1;
  border-color: #2271b1;
}

.yaml-cf-move-up:hover,
.yaml-cf-move-down:hover {
  background: #2271b1;
  color: #fff;
  border-color: #2271b1;
}

.yaml-cf-remove-block {
  color: #b32d2e;
  border-color: #b32d2e;
}

.yaml-cf-remove-block:hover {
  background: #b32d2e;
  color: #fff;
  border-color: #b32d2e;
}

.yaml-cf-block-fields {
  margin-top: 10px;
}

.yaml-cf-block-fields .yaml-cf-field {
  margin-bottom: 15px;
  padding-bottom: 15px;
}

.yaml-cf-block-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.yaml-cf-block-type-select {
  flex: 1;
  max-width: 300px;
}

/* Loading State */
.yaml-cf-loading {
  opacity: 0.5;
  pointer-events: none;
}

/* Unsaved Changes Indicator */
.yaml-cf-unsaved-indicator {
  display: none;
  position: fixed;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: #f0ad4e;
  color: #fff;
  padding: 10px 20px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 999999;
  font-weight: 600;
  animation: slideDown 0.3s ease-out;
}

.yaml-cf-unsaved-indicator.visible {
  display: block;
}

.yaml-cf-unsaved-indicator .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 5px;
}

@keyframes slideDown {
  from {
    transform: translateX(-50%) translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

.yaml-cf-has-changes .button-primary {
  background: #f0ad4e;
  border-color: #ec971f;
  box-shadow: 0 1px 0 #ec971f;
}

.yaml-cf-has-changes .button-primary:hover {
  background: #ec971f;
  border-color: #d58512;
}

/* Success/Error Messages */
#yaml-cf-notifications {
  position: fixed;
  top: 32px;
  right: 20px;
  z-index: 999998;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 350px;
}

.yaml-cf-message {
  padding: 12px 15px;
  border-radius: 3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  min-width: 250px;
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.yaml-cf-message.success {
  background: #d7f4d7;
  border-left: 4px solid #46b450;
  color: #2c662d;
}

.yaml-cf-message.error {
  background: #fbeaea;
  border-left: 4px solid #dc3232;
  color: #761919;
}

.yaml-cf-message.warning {
  background: #fff3cd;
  border-left: 4px solid #f0ad4e;
  color: #856404;
}

/* Documentation Page */
.yaml-cf-docs-content {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  line-height: 1.8;
}

.yaml-cf-docs-content code {
  background: #f6f7f7;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  color: #d63638;
}

.yaml-cf-docs-content pre {
  background: #1e1e1e;
  padding: 20px;
  border-radius: 6px;
  overflow-x: auto;
  margin: 20px 0;
}

.yaml-cf-docs-content pre code {
  background: transparent;
  padding: 0;
  color: #d4d4d4;
  font-size: 14px;
  line-height: 1.6;
}

.yaml-cf-docs-content h2 {
  color: #1d2327;
  font-size: 28px;
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #667eea;
}

.yaml-cf-docs-content h2:first-child {
  margin-top: 0;
}

.yaml-cf-docs-content h3 {
  color: #1d2327;
  font-size: 22px;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 15px;
}

.yaml-cf-docs-content p {
  margin-bottom: 15px;
  color: #1d2327;
}

.yaml-cf-docs-content ul {
  margin-left: 20px;
  margin-bottom: 15px;
}

.yaml-cf-docs-content li {
  margin-bottom: 8px;
  color: #1d2327;
}

.yaml-cf-docs-content a {
  color: #667eea;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}

.yaml-cf-docs-content a:hover {
  border-bottom-color: #667eea;
}

.yaml-cf-docs-content strong {
  font-weight: 600;
  color: #1d2327;
}

.yaml-cf-docs-content blockquote {
  border-left: 4px solid #667eea;
  padding: 10px 20px;
  margin: 20px 0;
  background: #f6f7f7;
  font-style: italic;
  color: #50575e;
}

@media screen and (max-width: 600px) {
  .wp-table-wrap {
    overflow-x: auto;
  }

  .yaml-cf-admin-container .wp-list-table td {
    white-space: nowrap;
    width: fit-content;
  }
}

/* Postbox Wrapper */
.postbox[id*=""] {
  display: block;
  position: relative;
  margin-top: 6px;
}

/* Code Snippet Wrapper */
.yaml-cf-snippet-wrapper {
  display: block;
  position: relative;
  margin-top: 6px;
}

/* Code Snippet Copy Link */
.yaml-cf-copy-snippet {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
  font-size: 12px;
  color: #2271b1;
}

.yaml-cf-copy-snippet:hover {
  color: #135e96;
}

.yaml-cf-copy-snippet .dashicons {
  font-size: 14px;
  width: 14px;
  height: 14px;
  line-height: 1;
}

.yaml-cf-copy-snippet .snippet-text {
  line-height: 1.2;
}

.yaml-cf-copy-snippet.copied {
  color: #46b450;
}

.yaml-cf-copy-snippet.copied .dashicons {
  color: #46b450;
}

/* Code Snippet Hover Popover */
.yaml-cf-snippet-popover {
  position: absolute;
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 12px 16px;
  border-radius: 6px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  z-index: 10000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  min-width: 200px;
  max-width: 450px;
  top: calc(100% + 8px);
  left: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  line-height: 1.6;
  pointer-events: none;
}

.yaml-cf-snippet-popover.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.yaml-cf-snippet-popover::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 16px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid #1e1e1e;
}

.yaml-cf-snippet-popover code {
  display: block;
  color: #9cdcfe;
  background: transparent;
  padding: 0;
  word-wrap: break-word;
  white-space: pre-wrap;
  user-select: all;
  cursor: text;
}

.yaml-cf-snippet-popover .snippet-hint {
  font-size: 11px;
  color: #808080;
  margin-top: 8px;
  font-style: italic;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  user-select: none;
}

/* Code Snippet Tooltip (for after copy) */
.yaml-cf-snippet-tooltip {
  position: absolute;
  background: #46b450;
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 13px;
  font-weight: 600;
  z-index: 10001;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  animation: tooltipFadeIn 0.2s ease-out;
}

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

.yaml-cf-snippet-tooltip::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  margin-left: -5px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid #46b450;
}

/* Responsive */
@media screen and (max-width: 782px) {
  .yaml-cf-header {
    padding: 20px;
  }

  .yaml-cf-header-content {
    flex-direction: column;
    text-align: center;
  }

  .yaml-cf-logo {
    max-width: 60px;
  }

  .yaml-cf-header-text h1 {
    font-size: 24px;
  }

  .yaml-cf-tagline {
    font-size: 14px;
  }

  #yaml-cf-notifications {
    top: 46px;
    right: 10px;
    left: 10px;
    max-width: none;
  }

  .yaml-cf-message {
    min-width: auto;
  }

  .yaml-cf-docs-content {
    padding: 20px;
  }

  .yaml-cf-docs-content h2 {
    font-size: 24px;
  }

  .yaml-cf-docs-content h3 {
    font-size: 20px;
  }

  .yaml-cf-docs-content pre {
    padding: 15px;
    font-size: 12px;
  }

  .yaml-cf-modal-content {
    width: 95%;
    margin: 2% auto;
  }

  .yaml-cf-block-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .yaml-cf-block-controls {
    flex-direction: column;
    width: 100%;
  }

  .yaml-cf-block-type-select {
    max-width: 100%;
    width: 100%;
  }

  .yaml-cf-snippet-popover {
    max-width: calc(100vw - 40px);
    left: 10px;
    right: 10px;
    transform: none;
  }

  .yaml-cf-snippet-popover::before {
    left: 20px;
    margin-left: 0;
  }
}

/* Global Fields - Readonly Styles */
.yaml-cf-readonly input[type="text"],
.yaml-cf-readonly input[type="number"],
.yaml-cf-readonly input[type="date"],
.yaml-cf-readonly input[type="datetime-local"],
.yaml-cf-readonly input[type="checkbox"],
.yaml-cf-readonly textarea,
.yaml-cf-readonly select,
.yaml-cf-readonly .CodeMirror {
  opacity: 0.7;
  background-color: #f6f7f7;
  cursor: not-allowed;
  pointer-events: none;
}

.yaml-cf-readonly .yaml-cf-media-upload,
.yaml-cf-readonly .yaml-cf-upload-image,
.yaml-cf-readonly .yaml-cf-upload-file,
.yaml-cf-readonly .yaml-cf-clear-media,
.yaml-cf-readonly .yaml-cf-add-block,
.yaml-cf-readonly .yaml-cf-remove-block {
  display: none;
}

/* Container-level blocking (replaces individual element disabling) */
.yaml-cf-container-disabled {
  opacity: 0.6;
  pointer-events: none !important;
  cursor: not-allowed !important;
  position: relative;
}

.yaml-cf-container-disabled::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.01);
  z-index: 1;
}

.yaml-cf-global-fields {
  position: relative;
}

.yaml-cf-global-fields::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.01);
  pointer-events: none;
  z-index: 1;
}

/* Template Global Section */
.yaml-cf-template-global-section {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid #46b450;
}

.yaml-cf-template-global-field {
  margin-bottom: 20px;
  padding: 15px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.yaml-cf-template-global-field .yaml-cf-field-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 10px;
  background: #f9f9f9;
  border-radius: 4px;
}

/* Override Indicators */
.yaml-cf-global-indicator {
  margin-left: 10px;
  padding: 2px 8px;
  background: #46b450;
  color: #fff;
  border-radius: 3px;
  font-size: 11px;
  font-weight: bold;
  display: inline-block;
}

.yaml-cf-override-indicator {
  margin-left: 10px;
  padding: 2px 8px;
  background: #f0ad4e;
  color: #fff;
  border-radius: 3px;
  font-size: 11px;
  font-weight: bold;
  display: inline-block;
}

/* Template Global Checkbox */
.yaml-cf-use-template-global-checkbox {
  width: auto;
  margin-right: 5px;
}

/* Template Global Fields Container */
.yaml-cf-template-global-fields {
  margin-top: 15px;
}

/* Override Field Display */
.yaml-cf-field-display {
  margin-top: 10px;
}

.yaml-cf-field-display .yaml-cf-field {
  margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 782px) {
  .yaml-cf-template-global-field .yaml-cf-field-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .yaml-cf-template-global-field .yaml-cf-field-actions {
    width: 100%;
  }

  .yaml-cf-template-global-field .yaml-cf-field-actions button {
    width: 100%;
  }
}

/* Dual Field Layout (Template Global + Local) */
.yaml-cf-dual-field {
  margin-bottom: 25px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.yaml-cf-dual-field h4 {
  margin: 0 0 15px 0;
  font-size: 14px;
  font-weight: 600;
  color: #1d2327;
}

.yaml-cf-template-global-part {
  margin-bottom: 15px;
  padding: 12px;
  background: #fff;
  border: 1px solid #2271b1;
  border-radius: 3px;
}

.yaml-cf-template-global-part strong {
  font-size: 13px;
  color: #2271b1;
}

.yaml-cf-local-part {
  margin-bottom: 15px;
  padding: 12px;
  background: #fff;
  border: 1px solid #046b99;
  border-radius: 3px;
  transition: opacity 0.2s ease-in-out;
}

.yaml-cf-local-part strong {
  font-size: 13px;
  color: #046b99;
}

.yaml-cf-local-part.disabled {
  opacity: 0.6;
}

.yaml-cf-field-toggle {
  padding: 10px;
  background: #fff;
  border: 1px solid #46b450;
  border-radius: 3px;
}

.yaml-cf-field-toggle label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  margin: 0;
}

.yaml-cf-field-toggle label span {
  font-weight: 500;
  color: #1d2327;
}

.yaml-cf-field-toggle input[type="checkbox"] {
  margin: 0;
}

/* Responsive adjustments for dual fields */
@media (max-width: 782px) {
  .yaml-cf-dual-field {
    padding: 12px;
  }

  .yaml-cf-template-global-part,
  .yaml-cf-local-part {
    padding: 10px;
  }
}

/* Info Field Styles */
.yaml-cf-info-box {
  background: #e5f5fa;
  border-left: 4px solid #72aee6;
  padding: 12px 16px;
  margin: 0 0 16px 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-radius: 2px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.yaml-cf-info-box .dashicons {
  color: #72aee6;
  font-size: 20px;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.yaml-cf-info-content {
  flex: 1;
  color: #2c3338;
  line-height: 1.6;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.yaml-cf-info-content strong {
  font-weight: 600;
  color: #1d2327;
}

.yaml-cf-info-content em {
  font-style: italic;
}

.yaml-cf-info-content a {
  color: #2271b1;
  text-decoration: none;
  font-weight: 500;
}

.yaml-cf-info-content a:hover {
  text-decoration: underline;
  color: #135e96;
}

.yaml-cf-info-content a:focus {
  outline: 2px solid #2271b1;
  outline-offset: 2px;
  border-radius: 2px;
}

/* Responsive adjustments for info box */
@media (max-width: 782px) {
  .yaml-cf-info-box {
    padding: 10px 12px;
    gap: 10px;
  }

  .yaml-cf-info-box .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
  }

  .yaml-cf-info-content {
    font-size: 14px;
  }
}

/* Data Validation Page Styles */
.yaml-cf-validation-container {
  max-width: 100%;
}

.yaml-cf-filter-btn {
  margin-left: 5px;
}

.yaml-cf-filter-btn.active {
  background: #2271b1;
  color: #fff;
  border-color: #2271b1;
}

.yaml-cf-validation-row[data-status="hidden"] {
  display: none;
}

.yaml-cf-summary-grid {
  margin-bottom: 20px;
}

.yaml-cf-stat-box {
  transition: transform 0.2s;
}

.yaml-cf-stat-box:hover {
  transform: translateY(-2px);
}
