.sattive_svg_studio-admin-wrapper {
  max-width: 800px;
  margin-top: 20px;
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sattive_svg_studio-header h1 {
  color: #2271b1;
  font-size: 24px;
  margin-bottom: 5px;
}

.sattive_svg_studio-settings-form {
  margin-top: 30px;
}

/* Customizing the submit button to match brand colors */
.sattive_svg_studio-settings-form .button-primary {
  background: #2271b1;
  border-color: #2271b1;
  padding: 5px 20px;
  height: auto;
}

.sattive_svg_studio-modal {
  position: fixed;
  z-index: 99999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}
.sattive_svg_studio-modal-content {
  background: #f0f0f1;
  width: 90%;
  max-width: 1000px;
  height: 80vh;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
}
.sattive_svg_studio-editor-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.sattive_svg_studio-preview-pane {
  flex: 2;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background-image:
    linear-gradient(45deg, #f0f0f0 25%, transparent 25%), linear-gradient(-45deg, #f0f0f0 25%, transparent 25%);
  background-size: 20px 20px; /* Checkerboard transparency background */
}

.sattive_svg_studio-controls-pane {
  flex: 1;
  background: #fff;
  border-left: 1px solid #ddd;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.swatch-container {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.color-swatch {
  width: 35px;
  height: 35px;
  border-radius: 4px;
  border: 1px solid #ddd;
  cursor: pointer;
  transition: transform 0.2s;
}
.color-swatch:hover {
  transform: scale(1.1);
}

/* --- sattive_svg_studio STUDIO MODAL --- */
/* --- sattive_svg_studio STUDIO MODAL --- */
.sattive_svg_studio-modal {
  position: fixed;
  z-index: 160000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.sattive_svg_studio-modal-content {
  background: #ffffff;
  width: 95%;
  max-width: 1200px;
  height: 90vh;
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Header */
.sattive_svg_studio-modal-header {
  background: #1e293b;
  color: #fff;
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sattive_svg_studio-branding {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 200px;
}
.sattive_svg_studio-branding h2 {
  color: #fff;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

/* History Controls */
.sattive_svg_studio-history-controls {
  display: flex;
  gap: 8px;
}
.history-btn {
  background: #334155;
  border: none;
  color: #f8fafc;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}
.history-btn:hover:not(:disabled) {
  background: #475569;
}
.history-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.sattive_svg_studio-header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 200px;
  justify-content: flex-end;
}
.sattive_svg_studio-status-badge {
  background: #334155;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
}
.sattive_svg_studio-status-badge.active-shape {
  background: #3b82f6;
  color: #fff;
}
.sattive_svg_studio-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
  margin-top: -4px;
}
.sattive_svg_studio-close:hover {
  color: #ef4444;
}

/* Workspace Layout */
.sattive_svg_studio-editor-body {
  display: flex;
  flex: 1;
  height: calc(100% - 50px);
}

.sattive_svg_studio-preview-pane {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8fafc;
  overflow: hidden;
  position: relative;
  background-image:
    linear-gradient(45deg, #e2e8f0 25%, transparent 25%), linear-gradient(-45deg, #e2e8f0 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e2e8f0 75%), linear-gradient(-45deg, transparent 75%, #e2e8f0 75%);
  background-size: 20px 20px;
  background-position:
    0 0,
    0 10px,
    10px -10px,
    -10px 0px;
}

.canvas-container {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}

/* Properties Inspector */
.sattive_svg_studio-controls-pane {
  width: 340px;
  background: #ffffff;
  border-left: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.sattive_svg_studio-inspector-section {
  padding: 20px 24px;
  border-bottom: 1px solid #f1f5f9;
}
.sattive_svg_studio-inspector-section h3 {
  margin: 0 0 16px 0;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.5px;
}

/* Action Grids */
.sattive_svg_studio-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.action-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.action-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}
.delete-btn:hover {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
}

/* Form Controls */
.control-group {
  margin-bottom: 16px;
}
.control-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 8px;
}

.color-picker-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}
.color-picker-wrapper input[type="color"] {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 2px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
}
.color-hex-display {
  font-family: monospace;
  font-size: 13px;
  color: #475569;
}

.range-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}
.range-wrapper input[type="range"] {
  flex: 1;
  cursor: pointer;
}
.range-value {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  width: 36px;
  text-align: right;
}

.sattive_svg_studio-actions-footer {
  padding: 24px;
  margin-top: auto;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}
.sattive_svg_studio-actions-footer .button-hero {
  width: 100%;
  justify-content: center;
  height: 44px;
  font-size: 15px;
  background: #2563eb;
  border-color: #2563eb;
  border-radius: 6px;
}

/* Fix Media Library Thumbnail Display for SVGs */
.attachment-266x266,
.thumbnail img[src$=".svg"] {
  width: 100% !important;
  height: auto !important;
}
