[data-oizzy-section] {
  position: relative;
  cursor: pointer;
  transition: outline 0.15s ease;
}

[data-oizzy-section].oizzy-section-hover {
  outline: 2px dashed #3b82f6;
  outline-offset: -2px;
}

[data-oizzy-section].oizzy-section-selected {
  outline: 2px solid #3b82f6;
  outline-offset: -2px;
  box-shadow: inset 0 0 0 2px rgba(59, 130, 246, 0.1);
}

[data-oizzy-field].oizzy-field-active {
  outline: 2px solid #8b5cf6;
  outline-offset: 2px;
  border-radius: 2px;
  transition: outline 0.2s ease;
}

.oizzy-section-label {
  position: absolute;
  top: 0;
  left: 0;
  background: #3b82f6;
  color: white;
  font-size: 11px;
  font-weight: 600;
  font-family: system-ui, -apple-system, sans-serif;
  padding: 2px 8px;
  border-radius: 0 0 4px 0;
  z-index: 10000;
  pointer-events: none;
  display: none;
}

/* Block toolbar (Gutenberg-style) */

.oizzy-block-toolbar {
  position: absolute;
  bottom: 100%;
  left: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  background: #1e293b;
  padding: 4px 6px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  z-index: 10001;
  white-space: nowrap;
  margin-bottom: 4px;
}

.oizzy-block-toolbar--inside {
  bottom: auto;
  top: 4px;
  margin-bottom: 0;
}

.oizzy-block-toolbar-label {
  color: white;
  font-size: 11px;
  font-weight: 600;
  font-family: system-ui, -apple-system, sans-serif;
  padding: 0 6px;
  line-height: 28px;
}

.oizzy-block-toolbar-separator {
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.25);
  margin: 0 2px;
}

.oizzy-block-toolbar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease;
}

.oizzy-block-toolbar-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.oizzy-block-toolbar-btn:disabled {
  opacity: 0.3;
  pointer-events: none;
}

.oizzy-block-toolbar-btn svg {
  width: 16px;
  height: 16px;
}

.oizzy-toolbar-btn-danger:hover {
  background: rgba(239, 68, 68, 0.3);
}

/* Row sections */

.oizzy-row {
  width: 100%;
}

.oizzy-column {
  min-width: 0;
}

@media (max-width: 768px) {
  .oizzy-row--stack {
    grid-template-columns: 1fr !important;
  }
}

/* Row editor styling */

[data-oizzy-type="row"].oizzy-section-hover {
  outline: 2px dashed #06b6d4;
  outline-offset: -2px;
}

[data-oizzy-type="row"].oizzy-section-selected {
  outline: 2px solid #06b6d4;
  outline-offset: -2px;
  box-shadow: inset 0 0 0 2px rgba(6, 182, 212, 0.1);
}

.oizzy-column[data-oizzy-column]:empty::after {
  content: "Drop pattern here";
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  border: 2px dashed rgba(6, 182, 212, 0.3);
  border-radius: 8px;
  color: rgba(6, 182, 212, 0.5);
  font-size: 13px;
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: 500;
}
