/* 블록 에디터용 스타일 */

/* 블록 카테고리 컬러 설정 */
.block-editor-block-categories-list
  .block-editor-block-categories-list__item[data-slug="youel-blocks"]
  .block-editor-block-categories-list__item-icon {
  color: #0073aa !important;
}

/* 블록 아이콘 컬러 설정 */
.block-editor-block-types-list
  .block-editor-block-types-list__item[data-type^="youelblocks/"]
  .block-editor-block-types-list__item-icon {
  color: #0073aa !important;
}

.block-editor-inserter__block
  .block-editor-block-types-list__item[data-type^="youelblocks/"]
  .block-editor-block-types-list__item-icon {
  color: #0073aa !important;
}

.youelblocks-block-editor-preview {
  padding: 20px;
  border: 2px dashed #ddd;
  border-radius: 8px;
  background: #f9f9f9;
  margin: 10px 0;
  min-height: 100px;
}

.youelblocks-form-title {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 18px;
  font-weight: 600;
}

.youelblocks-form-inactive {
  opacity: 0.7;
  border-left: 4px solid #ffb900;
  padding-left: 15px;
}

.youelblocks-form-active {
  opacity: 1;
  border-left: 4px solid #46b450;
  padding-left: 15px;
}

.youelblocks-form-status {
  margin: 0 0 15px 0;
  font-size: 14px;
  color: #666;
}

.youelblocks-form-notice {
  margin: 0 0 15px 0;
  font-size: 14px;
  color: #d63638;
  font-style: italic;
}

.youelblocks-status-success {
  color: #46b450;
  font-weight: 600;
}

.youelblocks-form-description {
  margin: 0 0 15px 0;
  color: #666;
  font-size: 14px;
}

.youelblocks-form-preview {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 15px;
}

.youelblocks-form-fields-preview {
  margin: 15px 0;
}

.youelblocks-form-field-preview {
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px;
  margin: 5px 0;
  cursor: move;
  transition: all 0.2s ease;
  position: relative;
}

.youelblocks-form-field-preview:hover {
  border-color: #007cba;
  box-shadow: 0 2px 4px rgba(0, 124, 186, 0.1);
}

.youelblocks-form-field-preview.dragging {
  opacity: 0.5;
  transform: rotate(5deg);
  z-index: 1000;
}

.youelblocks-form-field-preview.drag-over {
  border-color: #007cba;
  background: #f0f8ff;
  transform: scale(1.02);
}

.youelblocks-form-field-preview label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  color: #333;
}

.youelblocks-form-field-placeholder {
  background: #f5f5f5;
  border: 1px dashed #ccc;
  border-radius: 3px;
  padding: 8px;
  color: #666;
  font-size: 12px;
  min-height: 20px;
}

.youelblocks-submit-btn-preview {
  background: #007cba;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  margin-top: 15px;
}

.youelblocks-submit-btn-preview:hover {
  background: #005a87;
}

.youelblocks-submit-btn-preview:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.youelblocks-required {
  color: #d63638;
  margin-left: 2px;
}

/* 테이블 관리 패널 */
.youelblocks-table-info {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: #333;
}

.youelblocks-table-info code {
  background: #f1f1f1;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: monospace;
}

.youelblocks-table-status {
  margin: 0 0 15px 0;
  font-size: 14px;
  color: #666;
}

.youelblocks-table-notice {
  margin: 0 0 15px 0;
  font-size: 14px;
  color: #d63638;
  font-style: italic;
}

/* 커스텀 폼 필드 편집기 */
.youelblocks-custom-fields-editor {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 15px;
  background: #f8f9fa;
  margin-top: 10px;
}

.youelblocks-field-item {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 15px;
  margin-bottom: 15px;
  position: relative;
}

.youelblocks-field-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

.youelblocks-field-item-title {
  font-weight: 600;
  color: #333;
  font-size: 1.1em;
}

.youelblocks-remove-field {
  background: #d63638;
  color: white;
  border: none;
  border-radius: 3px;
  padding: 4px 8px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.youelblocks-remove-field:hover {
  background: #b32d2e;
}

.youelblocks-field-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.youelblocks-field-inputs .components-base-control {
  margin-bottom: 0;
}

.youelblocks-field-inputs .components-base-control__label {
  font-weight: 500;
  color: #333;
  margin-bottom: 4px;
}

.youelblocks-field-inputs .components-base-control__help {
  font-size: 0.8em;
  color: #666;
  margin-top: 2px;
}

.youelblocks-field-inputs .components-text-control__input,
.youelblocks-field-inputs .components-select-control__input {
  border: 1px solid #ddd;
  border-radius: 3px;
  padding: 6px 8px;
  font-size: 0.9em;
}

.youelblocks-field-inputs .components-text-control__input:focus,
.youelblocks-field-inputs .components-select-control__input:focus {
  border-color: #007cba;
  box-shadow: 0 0 0 1px #007cba;
}

.youelblocks-add-field-btn {
  background: #28a745;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9em;
  margin-top: 15px;
  transition: background-color 0.2s ease;
}

.youelblocks-add-field-btn:hover {
  background: #218838;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .youelblocks-field-inputs {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .youelblocks-field-item {
    padding: 12px;
  }

  .youelblocks-field-item-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* 필드 유효성 검사 스타일 */
.youelblocks-field-item.has-error {
  border-color: #dc3545;
  background: #fff5f5;
}

.youelblocks-field-item.has-error .youelblocks-field-item-title {
  color: #dc3545;
}

.field-error-message {
  color: #dc3545;
  font-size: 0.8em;
  margin-top: 4px;
}

/* 드래그 앤 드롭 스타일 */
.youelblocks-field-item.dragging {
  opacity: 0.5;
  transform: rotate(2deg);
}

.youelblocks-field-item.drag-over {
  border-color: #007cba;
  background: #f0f8ff;
}

/* 필드 타입별 아이콘 */
.youelblocks-field-type-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: middle;
}

.youelblocks-field-type-varchar::before {
  content: "T";
  font-weight: bold;
  color: #007cba;
}

.youelblocks-field-type-text::before {
  content: "¶";
  font-weight: bold;
  color: #28a745;
}

.youelblocks-field-type-int::before {
  content: "#";
  font-weight: bold;
  color: #ffc107;
}

.youelblocks-field-type-date::before {
  content: "📅";
  font-size: 12px;
}

/* 블록 에디터 미리보기 스타일 */
.youelblocks-block-editor-preview .youelblocks-form-title {
  margin: 0 0 20px 0;
  color: #333;
  font-size: 1.5em;
  font-weight: 600;
}

.youelblocks-form-preview {
  background: white;
  padding: 20px;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
}

.youelblocks-form-description {
  margin: 0 0 15px 0;
  color: #666;
  font-size: 0.9em;
  font-style: italic;
}

.youelblocks-form-fields-preview {
  margin-bottom: 20px;
}

.youelblocks-form-field-preview {
  margin-bottom: 15px;
}

.youelblocks-form-field-preview label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #333;
}

.youelblocks-form-field-preview .required {
  color: #e74c3c;
  margin-left: 2px;
}

.youelblocks-form-field-placeholder {
  position: relative;
}

.youelblocks-form-field-placeholder input,
.youelblocks-form-field-placeholder textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #f8f8f8;
  color: #999;
  font-size: 14px;
  box-sizing: border-box;
}

.youelblocks-form-field-placeholder textarea {
  min-height: 80px;
  resize: vertical;
}

.youelblocks-form-field-placeholder input:focus,
.youelblocks-form-field-placeholder textarea:focus {
  outline: none;
  border-color: #007cba;
  box-shadow: 0 0 0 1px #007cba;
}

.youelblocks-submit-btn-preview {
  background: #007cba;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.youelblocks-submit-btn-preview:hover {
  background: #005a87;
}

.youelblocks-submit-btn-preview:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.youelblocks-no-table-selected {
  text-align: center;
  color: #666;
  font-style: italic;
  padding: 40px 20px;
  background: white;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
}

/* 블록 설정 패널 스타일 */
.wp-block-youelblocks-table-form {
  margin: 20px 0;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .youelblocks-block-editor-preview {
    padding: 15px;
  }

  .youelblocks-form-preview {
    padding: 15px;
  }

  .youelblocks-form-field-placeholder input,
  .youelblocks-form-field-placeholder textarea {
    padding: 8px;
    font-size: 16px; /* 모바일에서 줌 방지 */
  }

  .youelblocks-submit-btn-preview {
    width: 100%;
    padding: 15px;
  }
}

/* Custom Table Manager - Block Editor Styles */

.youelblocks-block-editor-preview {
  border: 2px dashed #ddd;
  border-radius: 8px;
  padding: 20px;
  background: #f9f9f9;
  margin-bottom: 20px;
}

.youelblocks-form-title {
  margin: 0 0 20px 0;
  color: #333;
  font-size: 1.5em;
  font-weight: 600;
}

.youelblocks-form-description {
  color: #666;
  font-style: italic;
  margin-bottom: 15px;
}

.youelblocks-form-fields-preview {
  margin-bottom: 20px;
}

.youelblocks-form-field-preview {
  margin-bottom: 15px;
  padding: 10px;
  border: 1px solid #eee;
  border-radius: 4px;
  background: #fff;
  transition: all 0.3s ease;
  cursor: move;
}

.youelblocks-form-field-preview:hover {
  border-color: #0073aa;
  box-shadow: 0 2px 4px rgba(0, 115, 170, 0.1);
}

.youelblocks-form-field-preview.dragging {
  opacity: 0.5;
  transform: rotate(2deg);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.youelblocks-form-field-preview.drag-over {
  border-top: 2px solid #0073aa;
  background: #f0f7ff;
}

.youelblocks-form-field-preview label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #333;
}

.youelblocks-form-field-preview .required {
  color: #d63638;
  font-weight: bold;
}

.youelblocks-form-field-placeholder {
  position: relative;
}

.youelblocks-form-field-placeholder input,
.youelblocks-form-field-placeholder textarea,
.youelblocks-form-field-placeholder select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  color: #999;
  font-size: 14px;
}

.youelblocks-form-field-placeholder input:disabled,
.youelblocks-form-field-placeholder textarea:disabled,
.youelblocks-form-field-placeholder select:disabled {
  background: #f5f5f5;
  cursor: not-allowed;
}

.youelblocks-form-field-placeholder textarea {
  min-height: 80px;
  resize: vertical;
}

.youelblocks-radio-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.youelblocks-radio-preview label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: normal;
  margin: 0;
}

.youelblocks-radio-preview input[type="radio"] {
  width: auto;
  margin: 0;
}

.youelblocks-checkbox-preview {
  display: flex;
  align-items: center;
  gap: 8px;
}

.youelblocks-checkbox-preview input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.youelblocks-submit-btn-preview {
  background: #0073aa;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}

.youelblocks-submit-btn-preview:hover {
  background: #005a87;
}

.youelblocks-submit-btn-preview:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.youelblocks-form-active {
  border-left: 4px solid #46b450;
  padding-left: 15px;
}

.youelblocks-form-inactive {
  border-left: 4px solid #ffb900;
  padding-left: 15px;
}

.youelblocks-form-status,
.youelblocks-form-notice {
  margin: 0 0 15px 0;
  font-weight: 500;
}

.youelblocks-status-success {
  color: #46b450;
}

.youelblocks-status-warning {
  color: #ffb900;
}

.youelblocks-status-error {
  color: #d63638;
}

/* 필드 드래그 앤 드롭 스타일 */
.youelblocks-form-preview.youelblocks-drag-over {
  border: 2px dashed #0073aa;
  background: #f0f7ff;
  position: relative;
}

.youelblocks-form-preview.youelblocks-drag-over::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 115, 170, 0.1);
  border-radius: 6px;
  pointer-events: none;
}

.youelblocks-form-preview.youelblocks-drag-over.top::after {
  content: "필드를 여기에 추가";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: #0073aa;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  z-index: 10;
}

.youelblocks-form-preview.youelblocks-drag-over.bottom::after {
  content: "필드를 여기에 추가";
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: #0073aa;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  z-index: 10;
}

/* 필드 블록 스타일 */
.youelblocks-field-block {
  border: 2px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  background: #fff;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.youelblocks-field-block:hover {
  border-color: #0073aa;
  box-shadow: 0 2px 8px rgba(0, 115, 170, 0.1);
}

.youelblocks-field-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.youelblocks-field-icon {
  display: none; /* 파란색 도형 제거 */
}

.youelblocks-field-title {
  font-weight: 600;
  color: #333;
  font-size: 16px;
}

.youelblocks-field-preview {
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 12px;
}

.youelblocks-field-preview label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.youelblocks-field-preview .required {
  color: #d63638;
  font-weight: bold;
  margin-left: 4px;
}

.youelblocks-field-preview input,
.youelblocks-field-preview textarea,
.youelblocks-field-preview select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  color: #666;
  font-size: 14px;
}

.youelblocks-field-preview input:disabled,
.youelblocks-field-preview textarea:disabled,
.youelblocks-field-preview select:disabled {
  background: #f5f5f5;
  cursor: not-allowed;
  color: #999;
}

.youelblocks-field-preview textarea {
  min-height: 60px;
  resize: vertical;
}

.youelblocks-field-preview select {
  cursor: pointer;
}

.youelblocks-field-preview select[multiple] {
  min-height: 80px;
}

/* 필드 편집기 스타일 */
.youelblocks-fields-editor {
  margin-top: 20px;
}

.youelblocks-fields-editor h4 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 1.1em;
}

.youelblocks-fields-list {
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  max-height: 400px;
  overflow-y: auto;
}

.youelblocks-field-item {
  border-bottom: 1px solid #eee;
  padding: 15px;
  background: #fff;
  transition: all 0.3s ease;
  cursor: move;
}

.youelblocks-field-item:last-child {
  border-bottom: none;
}

.youelblocks-field-item:hover {
  background: #f9f9f9;
}

.youelblocks-field-item.dragging {
  opacity: 0.5;
  transform: rotate(2deg);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.youelblocks-field-item.drag-over {
  border-top: 2px solid #0073aa;
  background: #f0f7ff;
}

.youelblocks-field-item-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.youelblocks-field-drag-handle {
  color: #999;
  font-size: 16px;
  cursor: move;
  user-select: none;
}

.youelblocks-field-item-title {
  flex: 1;
  font-weight: 500;
  color: #333;
}

.youelblocks-remove-field {
  background: #d63638;
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.youelblocks-remove-field:hover {
  background: #b32d2e;
}

.youelblocks-field-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.youelblocks-field-inputs .components-base-control {
  margin-bottom: 0;
}

.youelblocks-field-inputs .components-base-control__label {
  font-weight: 500;
  color: #333;
  margin-bottom: 5px;
}

.youelblocks-field-inputs .components-text-control__input,
.youelblocks-field-inputs .components-textarea-control__input,
.youelblocks-field-inputs .components-select-control__input {
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 14px;
}

.youelblocks-field-inputs .components-text-control__input:focus,
.youelblocks-field-inputs .components-textarea-control__input:focus,
.youelblocks-field-inputs .components-select-control__input:focus {
  border-color: #0073aa;
  box-shadow: 0 0 0 1px #0073aa;
}

.youelblocks-field-inputs .components-base-control__help {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

.youelblocks-add-field-btn {
  margin-top: 15px;
  width: 100%;
}

/* 테이블 관리 스타일 */
.youelblocks-table-info {
  background: #f0f7ff;
  border: 1px solid #0073aa;
  border-radius: 4px;
  padding: 10px;
  margin: 0 0 10px 0;
}

.youelblocks-table-info code {
  background: #fff;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: monospace;
  color: #0073aa;
}

.youelblocks-table-status {
  margin: 0;
  font-weight: 500;
}

.youelblocks-table-notice {
  background: #fff8e5;
  border: 1px solid #ffb900;
  border-radius: 4px;
  padding: 10px;
  margin: 0 0 15px 0;
  color: #856404;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
  .youelblocks-field-inputs {
    grid-template-columns: 1fr;
  }

  .youelblocks-block-editor-preview {
    padding: 15px;
  }

  .youelblocks-form-title {
    font-size: 1.3em;
  }
}

/* 다중선택 필드 스타일 */
.youelblocks-form-field-placeholder select[multiple] {
  min-height: 100px;
}

/* 편집자 페이지 플레이스홀더 색상 상속 - 중복 제거하고 하나의 규칙으로 통합 */
.youelblocks-field input::placeholder,
.youelblocks-field textarea::placeholder,
.youelblocks-field select::placeholder {
  color: currentColor !important;
  opacity: 0.7 !important;
}

.youelblocks-field input:focus::placeholder,
.youelblocks-field textarea:focus::placeholder,
.youelblocks-field select:focus::placeholder {
  color: currentColor !important;
  opacity: 0.5 !important;
}

/* 체크박스 필드 스타일 */
.youelblocks-form-field-placeholder input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
}

/* 필드 타입별 특별 스타일 */
.youelblocks-field-item[data-field-type="TEXT"] .youelblocks-field-item-title::before {
  content: "📝 ";
}

.youelblocks-field-item[data-field-type="VARCHAR"] .youelblocks-field-item-title::before {
  content: "📝 ";
}

.youelblocks-field-item[data-field-type="INT"] .youelblocks-field-item-title::before {
  content: "🔢 ";
}

.youelblocks-field-item[data-field-type="DATE"] .youelblocks-field-item-title::before {
  content: "📅 ";
}

.youelblocks-field-item[data-field-type="CHECKBOX"] .youelblocks-field-item-title::before {
  content: "☑️ ";
}

.youelblocks-field-item[data-field-type="RADIO"] .youelblocks-field-item-title::before {
  content: "🔘 ";
}

.youelblocks-field-item[data-field-type="SELECT"] .youelblocks-field-item-title::before {
  content: "📋 ";
}

.youelblocks-field-item[data-field-type="MULTISELECT"] .youelblocks-field-item-title::before {
  content: "📋 ";
}

/* 드래그 앤 드롭 시각적 피드백 */
.youelblocks-fields-list.drag-active {
  background: #f0f7ff;
}

.youelblocks-field-item.drag-placeholder {
  height: 60px;
  background: #e1f5fe;
  border: 2px dashed #0073aa;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0073aa;
  font-style: italic;
}

/* 필드 편집기 토글 버튼 */
.youelblocks-fields-toggle {
  margin-bottom: 15px;
}

/* 필드 옵션 입력 영역 */
.youelblocks-field-options-input {
  grid-column: 1 / -1;
}

.youelblocks-field-options-input .components-textarea-control__input {
  min-height: 60px;
  font-family: monospace;
}

/* 필수 필드 표시 */
.youelblocks-field-item.required-field {
  border-left: 3px solid #d63638;
}

.youelblocks-field-item.required-field .youelblocks-field-item-title::after {
  content: " *";
  color: #d63638;
  font-weight: bold;
}

/* 필드 블록 드래그 앤 드롭 */
.youelblocks-field-block {
  position: relative;
}

.youelblocks-field-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: transparent;
  border: 2px dashed transparent;
  border-radius: 8px;
  transition: all 0.3s ease;
  pointer-events: none;
}

.youelblocks-field-block:hover::before {
  border-color: #0073aa;
  background: rgba(0, 115, 170, 0.05);
}

/* 필드 블록 드래그 중 스타일 */
.youelblocks-field-block.dragging {
  opacity: 0.5;
  transform: rotate(2deg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 필드 블록 드롭존 스타일 */
.youelblocks-field-dropzone {
  border: 2px dashed #0073aa;
  background: #f0f7ff;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  margin: 10px 0;
  transition: all 0.3s ease;
}

.youelblocks-field-dropzone:hover {
  background: #e1f5fe;
  border-color: #005a87;
}

.youelblocks-field-dropzone.drag-over {
  background: #e1f5fe;
  border-color: #005a87;
  transform: scale(1.02);
}

.youelblocks-field-dropzone-text {
  color: #0073aa;
  font-weight: 500;
  font-size: 14px;
}

/* 필드 블록 아이콘 스타일 */
.youelblocks-field-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: #0073aa;
  color: white;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  min-width: 24px;
  flex-shrink: 0;
}

/* 필드 블록 미리보기 개선 */
.youelblocks-field-preview {
  position: relative;
}

/* 필드 블록 설정 패널 */
.youelblocks-field-settings {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.youelblocks-field-settings h5 {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 14px;
  font-weight: 600;
}

/* Inspector Controls 스타일 - WordPress CSS 변수 사용 */
.components-panel__body .components-base-control {
  margin-bottom: 16px;
  color: var(--wp-components-color-foreground);
  font-family: var(--wp-components-font-family);
  font-size: var(--wp-components-font-size);
  line-height: var(--wp-components-line-height);
}

.components-panel__body .components-base-control:last-child {
  margin-bottom: 0;
}

.components-panel__body .components-base-control__label {
  color: var(--wp-components-color-foreground);
  font-weight: 600;
  font-size: var(--wp-components-font-size);
  margin-bottom: 4px;
  display: block;
}

.components-panel__body .components-base-control__help {
  color: var(--wp-components-color-foreground);
  font-size: 12px;
  margin-top: 4px;
  opacity: 0.7;
}

.components-panel__body .components-text-control__input,
.components-panel__body .components-textarea-control__input,
.components-panel__body .components-select-control__input {
  background: var(--wp-components-color-background);
  border: 1px solid var(--wp-components-color-border);
  border-radius: var(--wp-components-border-radius);
  color: var(--wp-components-color-foreground);
  font-family: var(--wp-components-font-family);
  font-size: var(--wp-components-font-size);
  padding: 6px 8px;
  transition: border-color 0.15s ease-in-out;
}

.components-panel__body .components-text-control__input:focus,
.components-panel__body .components-textarea-control__input:focus,
.components-panel__body .components-select-control__input:focus {
  border-color: var(--wp-components-color-primary);
  box-shadow: 0 0 0 1px var(--wp-components-color-primary);
  outline: none;
}

.components-panel__body .components-toggle-control {
  color: var(--wp-components-color-foreground);
  font-family: var(--wp-components-font-family);
  font-size: var(--wp-components-font-size);
}

.components-panel__body .components-toggle-control .components-form-toggle {
  margin-right: 8px;
}

.components-panel__body .components-range-control__slider {
  background: var(--wp-components-color-border);
  border: none;
  border-radius: 3px;
  height: 6px;
  outline: none;
  width: 100%;
  -webkit-appearance: none;
}

.components-panel__body .components-range-control__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  background: var(--wp-components-color-primary);
  border: 2px solid var(--wp-components-color-background);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  height: 18px;
  width: 18px;
}

.components-panel__body .components-range-control__number {
  background: var(--wp-components-color-background);
  border: 1px solid var(--wp-components-color-border);
  border-radius: var(--wp-components-border-radius);
  color: var(--wp-components-color-foreground);
  font-family: var(--wp-components-font-family);
  font-size: var(--wp-components-font-size);
  padding: 4px 6px;
  width: 60px;
}

.components-panel__body .components-range-control__number:focus {
  border-color: var(--wp-components-color-primary);
  box-shadow: 0 0 0 1px var(--wp-components-color-primary);
  outline: none;
}

.components-panel__body .components-color-palette__item {
  border: 2px solid transparent;
  transition: border-color 0.15s ease-in-out;
}

.components-panel__body .components-color-palette__item:hover {
  border-color: var(--wp-components-color-primary);
}

.components-panel__body .components-color-palette__item.is-selected {
  border-color: var(--wp-components-color-primary);
  box-shadow: 0 0 0 2px rgba(var(--wp-components-color-primary-rgb), 0.3);
}

/* Panel Body 헤더 스타일 */
.components-panel__body .components-panel__body-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: #1e1e1e;
  margin: 0;
  padding: 16px 16px 8px;
  border-bottom: 1px solid #e2e4e7;
}

/* Panel Body 내용 영역 */
.components-panel__body .components-panel__body-content {
  padding: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 13px;
  color: #1e1e1e;
}

/* 알림 메시지 */
.components-notice {
  margin: 10px 0;
  color: var(--wp-components-color-foreground);
  font-family: var(--wp-components-font-family);
  font-size: var(--wp-components-font-size);
}

/* 테이블 구조 표시 스타일 */
.youelblocks-table-structure-container {
  margin: 10px 0;
}

.youelblocks-table-structure {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 15px;
  margin: 10px 0;
}

.youelblocks-table-info {
  margin-bottom: 15px;
}

.youelblocks-table-info h4 {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 14px;
  font-weight: 600;
}

.youelblocks-table-info p {
  margin: 5px 0;
  font-size: 12px;
  color: #666;
}

.youelblocks-table-fields h4 {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 14px;
  font-weight: 600;
}

.youelblocks-fields-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.youelblocks-fields-table th {
  background: #f1f1f1;
  padding: 8px;
  text-align: left;
  font-weight: 600;
  color: #333;
  border-bottom: 1px solid #ddd;
}

.youelblocks-fields-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #eee;
  color: #666;
}

.youelblocks-fields-table tr:last-child td {
  border-bottom: none;
}

.youelblocks-fields-table tr:hover {
  background: #f8f9fa;
}

.youelblocks-refresh-table-btn {
  margin-top: 10px !important;
  font-size: 12px !important;
  padding: 6px 12px !important;
}

.youelblocks-table-notice {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 4px;
  padding: 10px;
  color: #856404;
  font-size: 12px;
}

.youelblocks-error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  padding: 10px;
  color: #721c24;
  font-size: 12px;
}

/* 로딩 상태 */
.youelblocks-loading {
  opacity: 0.6;
  pointer-events: none;
}

/* 애니메이션 */
@keyframes youelblocks-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.youelblocks-form-field-preview,
.youelblocks-field-item {
  animation: youelblocks-fade-in 0.3s ease;
}

/* 블록 에디터 특화 스타일 */
.wp-block {
  max-width: none;
}

/* 블록 전체 스타일 개선 */
.wp-block[data-type^="youelblocks/"] {
  position: relative;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
}

/* 블록 내부 컨테이너 */
.youelblocks-field-block-editor {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px;
  margin: 0;
  position: relative;
}

/* 필드 헤더 개선 */
.youelblocks-field-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.youelblocks-field-icon {
  display: none; /* 아이콘 완전 제거 */
}

.youelblocks-field-title {
  font-weight: 600;
  color: #333;
  font-size: 16px;
  margin: 0;
}

/* 필드 미리보기 개선 */
.youelblocks-field-preview {
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 4px;
  padding: 12px;
  margin: 0;
  position: relative;
}

/* 모든 가상 요소 제거 */
.youelblocks-field-block-editor::before,
.youelblocks-field-block-editor::after,
.youelblocks-field-preview::before,
.youelblocks-field-preview::after,
.youelblocks-field-header::before,
.youelblocks-field-header::after {
  display: none !important;
  content: none !important;
}

/* 테이블 관리 UI 개선 */
.youelblocks-table-actions {
  margin-top: 15px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.youelblocks-create-table-btn,
.youelblocks-sync-table-btn {
  background: #007cba !important;
  color: white !important;
  border: none !important;
  padding: 8px 16px !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  transition: background-color 0.2s ease !important;
}

.youelblocks-create-table-btn:hover,
.youelblocks-sync-table-btn:hover {
  background: #005a87 !important;
}

.youelblocks-create-table-btn:disabled,
.youelblocks-sync-table-btn:disabled {
  background: #ccc !important;
  cursor: not-allowed !important;
}

.youelblocks-delete-table-btn {
  background: #d63638 !important;
  color: white !important;
  border: none !important;
  padding: 8px 16px !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  transition: background-color 0.2s ease !important;
}

.youelblocks-delete-table-btn:hover {
  background: #a00a0a !important;
}

.youelblocks-delete-table-btn:disabled {
  background: #ccc !important;
  cursor: not-allowed !important;
}

.youelblocks-matching-status {
  margin: 10px 0;
  padding: 8px 12px;
  border-radius: 4px;
  background: #f8f9fa;
  border-left: 4px solid #46b450;
}

.youelblocks-status-success {
  color: #46b450;
  font-weight: 600;
}

.youelblocks-status-warning {
  color: #ffb900;
  font-weight: 600;
}

.youelblocks-status-error {
  color: #d63638;
  font-weight: 600;
}

.youelblocks-table-notice {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 12px;
  margin: 10px 0;
}

.youelblocks-table-notice p {
  margin: 0 0 10px 0;
  color: #666;
}

.youelblocks-table-structure {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 15px;
  margin: 10px 0;
}

.youelblocks-table-info h4 {
  margin: 0 0 10px 0;
  color: #333;
  font-size: 16px;
  font-weight: 600;
}

.youelblocks-table-info p {
  margin: 5px 0;
  font-size: 13px;
  color: #666;
}

.youelblocks-table-fields h4 {
  margin: 15px 0 10px 0;
  color: #333;
  font-size: 14px;
  font-weight: 600;
}

.youelblocks-fields-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin: 10px 0;
}

.youelblocks-fields-table th {
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  padding: 8px;
  text-align: left;
  font-weight: 600;
  color: #333;
}

.youelblocks-fields-table td {
  border: 1px solid #e0e0e0;
  padding: 6px 8px;
  color: #666;
}

.youelblocks-fields-table tr:nth-child(even) {
  background: #f9f9f9;
}

.youelblocks-fields-table tr:hover {
  background: #f0f8ff;
}

/* 추가 반응형 디자인 */
@media (max-width: 480px) {
  .youelblocks-block-editor-preview {
    padding: 10px;
  }

  .youelblocks-form-title {
    font-size: 1.5em;
    margin-bottom: 20px;
  }

  .youelblocks-form-field-preview {
    padding: 8px;
  }

  .youelblocks-field-inputs {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .youelblocks-field-item {
    padding: 10px;
  }

  .youelblocks-field-item-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .youelblocks-table-actions {
    flex-direction: column;
    gap: 8px;
  }

  .youelblocks-fields-table {
    font-size: 11px;
  }

  .youelblocks-fields-table th,
  .youelblocks-fields-table td {
    padding: 4px 6px;
  }
}

/* 태블릿 최적화 */
@media (min-width: 481px) and (max-width: 1024px) {
  .youelblocks-field-inputs {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .youelblocks-table-actions {
    gap: 8px;
  }

  .youelblocks-fields-table {
    font-size: 12px;
  }
}

/* 접근성 개선 */
@media (prefers-reduced-motion: reduce) {
  .youelblocks-form-field-preview,
  .youelblocks-field-item {
    animation: none;
  }

  .youelblocks-submit-btn-preview,
  .youelblocks-create-table-btn,
  .youelblocks-sync-table-btn,
  .youelblocks-delete-table-btn {
    transition: none;
  }
}

/* 고대비 모드 지원 */
@media (prefers-contrast: high) {
  .youelblocks-form-field-preview {
    border: 2px solid #000;
  }

  .youelblocks-field-item {
    border: 2px solid #000;
  }

  .youelblocks-fields-table th {
    background: #000;
    color: #fff;
  }

  .youelblocks-fields-table td {
    border: 1px solid #000;
  }
}

/* 텍스트 스타일링 컨트롤 */
.youelblocks-style-controls {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.youelblocks-style-control {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.youelblocks-style-control label {
  font-weight: 600;
  color: #1e1e1e;
  font-size: 13px;
}

.youelblocks-style-control .components-color-palette {
  margin-top: 5px;
}

.youelblocks-style-control .components-range-control__slider {
  margin-top: 5px;
}

.youelblocks-style-control .components-select-control__input {
  margin-top: 5px;
}

/* 스타일링된 필드 미리보기 */
.youelblocks-field-preview input,
.youelblocks-field-preview textarea,
.youelblocks-field-preview select {
  transition: all 0.2s ease;
}

.youelblocks-field-preview label {
  transition: all 0.2s ease;
}

/* 색상 팔레트 스타일 */
.components-color-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.components-color-palette__item {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.components-color-palette__item:hover {
  transform: scale(1.1);
  border-color: #007cba;
}

.components-color-palette__item.is-selected {
  border-color: #007cba;
  box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.3);
}

/* 범위 컨트롤 스타일 */
.components-range-control__slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #ddd;
  outline: none;
  -webkit-appearance: none;
}

.components-range-control__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #007cba;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.components-range-control__slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #007cba;
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 선택 컨트롤 스타일 */
.components-select-control__input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  background: #fff;
  transition: border-color 0.2s ease;
}

.components-select-control__input:focus {
  border-color: #007cba;
  outline: none;
  box-shadow: 0 0 0 1px rgba(0, 124, 186, 0.3);
}

/* 스타일링 적용된 필드 */
.youelblocks-field-block[style*="color"] .youelblocks-field-preview label,
.youelblocks-field-block[style*="color"] .youelblocks-field-preview input,
.youelblocks-field-block[style*="color"] .youelblocks-field-preview textarea,
.youelblocks-field-block[style*="color"] .youelblocks-field-preview select {
  color: inherit;
}

.youelblocks-field-block[style*="font-size"] .youelblocks-field-preview label,
.youelblocks-field-block[style*="font-size"] .youelblocks-field-preview input,
.youelblocks-field-block[style*="font-size"] .youelblocks-field-preview textarea,
.youelblocks-field-block[style*="font-size"] .youelblocks-field-preview select {
  font-size: inherit;
}

.youelblocks-field-block[style*="font-weight"] .youelblocks-field-preview label,
.youelblocks-field-block[style*="font-weight"] .youelblocks-field-preview input,
.youelblocks-field-block[style*="font-weight"] .youelblocks-field-preview textarea,
.youelblocks-field-block[style*="font-weight"] .youelblocks-field-preview select {
  font-weight: inherit;
}

.youelblocks-field-block[style*="text-align"] .youelblocks-field-preview label,
.youelblocks-field-block[style*="text-align"] .youelblocks-field-preview input,
.youelblocks-field-block[style*="text-align"] .youelblocks-field-preview textarea,
.youelblocks-field-block[style*="text-align"] .youelblocks-field-preview select {
  text-align: inherit;
}

/* 동적 색상 적용을 위한 스타일 */
.youelblocks-field-block[style*="color"] .youelblocks-field-title,
.youelblocks-field-block[style*="color"] .youelblocks-field-preview label,
.youelblocks-field-block[style*="color"] .youelblocks-field-preview input,
.youelblocks-field-block[style*="color"] .youelblocks-field-preview textarea,
.youelblocks-field-block[style*="color"] .youelblocks-field-preview select,
.youelblocks-field-block[style*="color"] .youelblocks-field-preview option,
.youelblocks-field-block[style*="color"] .youelblocks-checkbox-label,
.youelblocks-field-block[style*="color"] .youelblocks-checkbox-text,
.youelblocks-field-block[style*="color"] .youelblocks-checkbox-description span {
  color: inherit !important;
}

/* 동적 폰트 크기 적용을 위한 스타일 */
.youelblocks-field-block[style*="font-size"] .youelblocks-field-title,
.youelblocks-field-block[style*="font-size"] .youelblocks-field-preview label,
.youelblocks-field-block[style*="font-size"] .youelblocks-field-preview input,
.youelblocks-field-block[style*="font-size"] .youelblocks-field-preview textarea,
.youelblocks-field-block[style*="font-size"] .youelblocks-field-preview select,
.youelblocks-field-block[style*="font-size"] .youelblocks-field-preview option,
.youelblocks-field-block[style*="font-size"] .youelblocks-checkbox-label,
.youelblocks-field-block[style*="font-size"] .youelblocks-checkbox-text,
.youelblocks-field-block[style*="font-size"] .youelblocks-checkbox-description span {
  font-size: inherit !important;
}

/* 동적 폰트 굵기 적용을 위한 스타일 */
.youelblocks-field-block[style*="font-weight"] .youelblocks-field-title,
.youelblocks-field-block[style*="font-weight"] .youelblocks-field-preview label,
.youelblocks-field-block[style*="font-weight"] .youelblocks-field-preview input,
.youelblocks-field-block[style*="font-weight"] .youelblocks-field-preview textarea,
.youelblocks-field-block[style*="font-weight"] .youelblocks-field-preview select,
.youelblocks-field-block[style*="font-weight"] .youelblocks-field-preview option,
.youelblocks-field-block[style*="font-weight"] .youelblocks-checkbox-label,
.youelblocks-field-block[style*="font-weight"] .youelblocks-checkbox-text,
.youelblocks-field-block[style*="font-weight"] .youelblocks-checkbox-description span {
  font-weight: inherit !important;
}

/* 반응형 스타일링 컨트롤 */
@media (max-width: 768px) {
  .youelblocks-style-controls {
    gap: 12px;
  }

  .youelblocks-style-control {
    gap: 6px;
  }

  .components-color-palette {
    gap: 6px;
  }

  .components-color-palette__item {
    width: 20px;
    height: 20px;
  }
}

/* 체크박스 필드 미리보기 스타일 */
.youelblocks-checkbox-preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.youelblocks-checkbox-label-section {
  display: flex;
  align-items: center;
  gap: 8px;
}

.youelblocks-checkbox-label-section input[type="checkbox"] {
  margin: 0;
}

.youelblocks-checkbox-description {
  margin-left: 24px;
  color: #666;
  font-size: 14px;
  line-height: 1.4;
  margin-top: 4px;
}

/* 프론트엔드 체크박스 필드 스타일 */
.youelblocks-checkbox-field-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.youelblocks-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 500;
}

.youelblocks-checkbox-toggle {
  margin: 0;
}

.youelblocks-checkbox-text {
  font-size: 14px;
  color: #333;
}

.youelblocks-checkbox-text-input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.youelblocks-checkbox-text-input:focus {
  border-color: #007cba;
  outline: none;
  box-shadow: 0 0 0 1px rgba(0, 124, 186, 0.3);
}

.youelblocks-checkbox-text-input:disabled {
  background: #f5f5f5;
  color: #999;
  cursor: not-allowed;
}

/* 새로운 필드 타입들의 블록 에디터 미리보기 스타일 */

/* 이메일 필드 미리보기 */
.youelblocks-field-preview input[type="email"] {
  direction: ltr;
  font-family: monospace;
}

/* 전화번호 필드 미리보기 */
.youelblocks-field-preview input[type="tel"] {
  direction: ltr;
  font-family: monospace;
}

/* 파일 업로드 필드 미리보기 */
.youelblocks-field-preview input[type="file"] {
  padding: 8px;
  border: 2px dashed #007cba;
  background: #f8f9fa;
  cursor: pointer;
  border-radius: 4px;
}

.youelblocks-field-preview input[type="file"]:hover {
  border-color: #005a87;
  background: #e9ecef;
}

/* 시간 필드 미리보기 */
.youelblocks-field-preview input[type="time"] {
  font-family: monospace;
}

/* URL 필드 미리보기 */
.youelblocks-field-preview input[type="url"] {
  direction: ltr;
  font-family: monospace;
}

/* 비밀번호 필드 미리보기 */
.youelblocks-field-preview input[type="password"] {
  font-family: monospace;
  letter-spacing: 2px;
}

/* 색상 선택 필드 미리보기 */
.youelblocks-color-preview-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.youelblocks-color-preview-container input[type="color"] {
  width: 40px;
  height: 30px;
  padding: 2px;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  cursor: pointer;
}

/* 범위 슬라이더 필드 미리보기 */
.youelblocks-range-preview {
  display: flex;
  align-items: center;
  gap: 10px;
}

.youelblocks-range-preview input[type="range"] {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: #e0e0e0;
  outline: none;
  -webkit-appearance: none;
}

.youelblocks-range-preview input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #007cba;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.youelblocks-range-preview input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #007cba;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.youelblocks-range-preview span {
  min-width: 30px;
  text-align: center;
  font-weight: 600;
  color: #007cba;
}

/* 별점 평가 필드 미리보기 */
.youelblocks-rating-preview {
  display: flex;
  gap: 2px;
}

.youelblocks-rating-preview span {
  font-size: 20px;
  color: #ddd;
  cursor: default;
  transition: color 0.2s ease;
}

/* 주소 필드 미리보기 */
.youelblocks-address-preview {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.youelblocks-address-preview input[type="text"] {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.youelblocks-address-preview button {
  background: #007cba;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  transition: background-color 0.2s ease;
}

.youelblocks-address-preview button:hover {
  background: #005a87;
}

.youelblocks-address-preview button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* 필드 타입별 아이콘 색상 */
.youelblocks-field-item[data-field-type="email-field"] .youelblocks-field-item-title::before {
  content: "📧";
  color: #e74c3c;
  margin-right: 8px;
}

.youelblocks-field-item[data-field-type="phone-field"] .youelblocks-field-item-title::before {
  content: "📞";
  color: #27ae60;
  margin-right: 8px;
}

.youelblocks-field-item[data-field-type="file-field"] .youelblocks-field-item-title::before {
  content: "📁";
  color: #f39c12;
  margin-right: 8px;
}

.youelblocks-field-item[data-field-type="time-field"] .youelblocks-field-item-title::before {
  content: "⏰";
  color: #9b59b6;
  margin-right: 8px;
}

.youelblocks-field-item[data-field-type="url-field"] .youelblocks-field-item-title::before {
  content: "🔗";
  color: #3498db;
  margin-right: 8px;
}

.youelblocks-field-item[data-field-type="password-field"]
  .youelblocks-field-item-title::before {
  content: "🔒";
  color: #34495e;
  margin-right: 8px;
}

.youelblocks-field-item[data-field-type="color-field"] .youelblocks-field-item-title::before {
  content: "🎨";
  color: #e91e63;
  margin-right: 8px;
}

.youelblocks-field-item[data-field-type="range-field"] .youelblocks-field-item-title::before {
  content: "📊";
  color: #ff5722;
  margin-right: 8px;
}

.youelblocks-field-item[data-field-type="rating-field"] .youelblocks-field-item-title::before {
  content: "⭐";
  color: #ffc107;
  margin-right: 8px;
}

.youelblocks-field-item[data-field-type="address-field"] .youelblocks-field-item-title::before {
  content: "📍";
  color: #795548;
  margin-right: 8px;
}
