/* components/wireframe_renderer/wireframe.css */
.wireframe-svg {
  display: block;
  max-width: 100%;
  height: auto;
}
.wireframe-element-wrapper {
  position: relative;
  display: inline-block;
  border-radius: 4px;
  transition: all 0.2s ease;
}
.wireframe-element-label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  background-color: #FFF5E6;
  border-bottom: 1px solid #FFB733;
  font-size: 11px;
  color: #FF8C00;
}
.wireframe-element-label .element-type {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.wireframe-element-label .element-title {
  color: #666;
  font-style: italic;
}
.wireframe-element-svg {
  background-color: white;
  border-radius: 0 0 4px 4px;
  overflow: hidden;
}
.wireframe-element-hover {
  box-shadow: 0 2px 8px rgba(255, 165, 0, 0.3);
  transform: translateY(-1px);
}
.wireframe-element-draggable {
  cursor: move;
}
.wireframe-element-draggable:active {
  opacity: 0.8;
}
.wireframe-elements-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  max-height: 400px;
  overflow-y: auto;
}
.wireframe-element-item {
  border: 1px solid #E5E7EB;
  border-radius: 4px;
  overflow: hidden;
  transition: all 0.2s ease;
}
.wireframe-element-item:hover {
  border-color: #FFA500;
}
.wireframe-compact {
  transform: scale(0.8);
  transform-origin: top left;
}
.wireframe-compact .wireframe-element-label {
  padding: 2px 4px;
  font-size: 9px;
}
.node-wireframe {
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid #E5E7EB;
  border-radius: 0 0 6px 6px;
  padding: 4px;
  max-height: 100px;
  overflow: hidden;
}
.node-wireframe-mini {
  transform: scale(0.6);
  transform-origin: top center;
  opacity: 0.8;
}
.element-palette-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 2px solid transparent;
  border-radius: 4px;
  background: #FFF5E6;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 60px;
}
.element-palette-item:hover {
  border-color: #FFA500;
  background: #FFE5CC;
  transform: scale(1.05);
}
.element-palette-item.selected {
  border-color: #FF8C00;
  background: #FFD700;
}
.element-palette-icon {
  font-size: 20px;
  color: #FFA500;
  margin-bottom: 4px;
}
.element-palette-label {
  font-size: 10px;
  text-align: center;
  color: #666;
  word-break: break-word;
}
.properties-wireframe {
  margin-top: 8px;
  padding: 8px;
  background: #FFF5E6;
  border-radius: 4px;
  border: 1px solid #FFB733;
}
.properties-wireframe-title {
  font-size: 11px;
  font-weight: 600;
  color: #FF8C00;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.properties-wireframe-preview {
  background: white;
  border-radius: 4px;
  padding: 8px;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wireframe-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #999;
  font-size: 12px;
  text-align: center;
}
.wireframe-empty-icon {
  font-size: 32px;
  margin-bottom: 8px;
  opacity: 0.5;
}
.wireframe-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #FFA500;
}
.wireframe-loading::after {
  content: "";
  width: 20px;
  height: 20px;
  border: 2px solid #FFA500;
  border-top-color: transparent;
  border-radius: 50%;
  animation: wireframe-spin 0.8s linear infinite;
}
@keyframes wireframe-spin {
  to {
    transform: rotate(360deg);
  }
}
.wireframe-export-preview {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 4px;
  padding: 16px;
  margin: 16px 0;
  max-height: 400px;
  overflow: auto;
}
.wireframe-export-options {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.wireframe-export-option {
  flex: 1;
  padding: 8px;
  border: 2px solid #E5E7EB;
  border-radius: 4px;
  background: white;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}
.wireframe-export-option:hover {
  border-color: #FFA500;
  background: #FFF5E6;
}
.wireframe-export-option.active {
  border-color: #FF8C00;
  background: #FFD700;
}
@media (max-width: 768px) {
  .wireframe-elements-container {
    max-height: 200px;
  }
  .element-palette-item {
    min-height: 50px;
    padding: 6px;
  }
  .element-palette-icon {
    font-size: 16px;
  }
  .element-palette-label {
    font-size: 9px;
  }
}
