:root {
  --primary: #ab98cf;
  --secondary: #10b981;
  --gray-50: #f6f6f6;
  --gray-100: #f3f4f6;
  --gray-200: #dee8dc;
  --gray-300: #d1d5db;
  --gray-400: #e75e28;
  --gray-900: #131517;
  --white: #ffffff;
  --red-500: #ef4444;
  --gray-350: #8b8d91;
  --font-inter: "Inter", system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  font-family: var(--font-inter);
  background-color: var(--gray-50);
  color: var(--gray-800);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.5;
}
.main-container {
  flex-grow: 1;
  max-width: 100%;
  margin: 0;
  padding: 1.5rem 1rem;
  display: flex;
  gap: 1rem;
}
.sidebar {
  width: 295px;
  margin-right: 1rem;
  flex-shrink: 0;
  background-color: #ffffff;
  border-radius: 0.5rem;
  height: calc(100vh - 3rem);
  overflow-y: auto;
  scrollbar-width: none;
}
.sidebar::-webkit-scrollbar {
  width: 8px;
}
.sidebar::-webkit-scrollbar-track {
  background: var(--gray-100);
  border-radius: 4px;
}
.sidebar::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: 4px;
}
.sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--gray-500);
}
.content-area {
  flex-grow: 1;
  width: calc(100% - 295px - 1rem);
}
.control-panel {
  background-color: var(--white);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
}
.control-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.grid-controls {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.control-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.control-label {
  display: block;
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: 0.25rem;
}
.input-group {
  display: flex;
  align-items: center;
  background-color: var(--bg-light);
  border-radius: 0.5rem;
  width: 100%;
}
.control-input {
  width: 100%;
  height: 2.25rem;
  border: none;
  border-radius: 0.5rem;
  text-align: center;
  font-size: 0.875rem;
  background-color: var(--gray-100);
  padding: 0 0.75rem;
}
.control-input:focus {
  outline: none;
  border: 2px solid var(--primary);
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: var(--gray-200);
  border-radius: 10px;
  height: 8px;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 10px;
  background: var(--gray-200);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--secondary);
  cursor: pointer;
  margin-top: -4px;
}
input[type="range"]:focus {
  outline: none;
  border: 0;
}
.color-input {
  width: 100%;
  height: 2rem;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
  position: relative;
  overflow: hidden;
}
.color-input::-webkit-color-swatch-wrapper {
  padding: 0;
}
.color-input::-webkit-color-swatch {
  border: none;
  border-radius: 0.25rem;
}
.control-btn {
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  border: 1px solid;
  transition: all 0.2s;
  font-size: 0.875rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  background: none;
}
.control-btn-primary {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.control-btn-primary:hover {
  background-color: #8b5cf6;
}
.control-btn-secondary {
  background-color: var(--gray-200);
  color: var(--gray-900);
  border: none;
  font-weight: 500;
  transition: all 0.2s ease;
}
.control-btn-secondary:hover {
  background-color: var(--gray-200);
  color: var(--gray-900);
}
.control-btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.control-btn-secondary.w-8,
.control-btn-secondary.w-8 {
  width: 2rem;
  padding: 0;
  justify-content: center;
}
.control-btn-secondary.h-8,
.control-btn-secondary.h-8 {
  height: 2rem;
}
.control-btn-secondary.py-0 {
  padding-top: 0;
  padding-bottom: 0;
}
.element-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.toggle-switch {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  gap: 0.5rem;
}
.toggle-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.toggle-slider {
  position: relative;
  width: 2.25rem;
  height: 1.25rem;
  background-color: var(--gray-200);
  border-radius: 9999px;
  transition: background-color 0.2s;
}
.toggle-slider::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1rem;
  height: 1rem;
  background-color: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 50%;
  transition: transform 0.2s;
}
.toggle-switch input:checked + .toggle-slider {
  background-color: var(--primary);
}
.toggle-switch input:checked + .toggle-slider::after {
  transform: translateX(1rem);
}
.toggle-label {
  font-size: 0.875rem;
  color: var(--gray-600);
}
.responsive-controls {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--gray-100);
}
.responsive-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.responsive-btn {
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
}
.custom-width-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.custom-width-input {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.custom-width-field {
  width: 7rem;
  height: 2rem;
  border: 2px solid var(--gray-300);
  text-align: center;
  font-size: 0.875rem;
  border-radius: 0.5rem;
}
.custom-width-field:focus {
  outline: none;
  border-color: var(--primary);
}
.unit-label {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-left: 0.25rem;
}
.element-properties {
  background-color: var(--white);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
}
.property-controls {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.property-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.property-label {
  display: block;
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-bottom: 0.25rem;
}
.color-controls {
  display: flex;
  gap: 0.5rem;
}
.color-select {
  flex-grow: 1;
  height: 2rem;
  border: 2px solid var(--gray-300);
  border-radius: 0.5rem;
  padding: 0 0.5rem;
  font-size: 0.875rem;
  background-color: var(--white);
}
.color-select:focus {
  outline: none;
  border-color: var(--primary);
}
.custom-dropdown {
  position: relative;
  flex-grow: 1;
  z-index: 100;
}
.dropdown-selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 2rem;
  width: 4rem;
  border: 2px solid var(--gray-300);
  border-radius: 0.5rem;
  padding: 0 0.5rem;
  background-color: var(--white);
  cursor: pointer;
  transition: all 0.2s ease;
}
.dropdown-selected:hover {
  border-color: var(--primary);
}
.selected-color {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.25rem;
}
.dropdown-arrow {
  font-size: 0.75rem;
  color: var(--gray-500);
}
.dropdown-options {
  position: absolute;
  top: calc(100% + 0.25rem);
  left: 0;
  right: 0;
  background-color: var(--white);
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10;
  overflow: hidden;
  display: none;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid var(--gray-200);
}
.dropdown-options.active {
  display: block;
}
.dropdown-option {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  cursor: pointer;
  transition: background-color 0.2s;
}
.dropdown-option:hover {
  background-color: var(--gray-100);
}
.dropdown-option.selected {
  background-color: var(--gray-200);
}
.option-color {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.25rem;
}
.delete-btn {
  color: var(--red-500);
  border-color: var(--red-200);
}
.delete-btn:hover {
  background-color: rgba(239, 68, 68, 0.05);
}
.content-panel {
  background-color: var(--white);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
}
.panel-title {
  font-weight: 500;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-800);
  font-weight: 600;
}
.panel-title i {
  color: var(--primary);
}
.element-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
.element-item {
  background-color: var(--gray-200);
  padding: 0.5rem;
  border-radius: 0.25rem;
  text-align: center;
  cursor: move;
  transition: background-color 0.2s;
  border: 1px solid transparent;
}
.element-item:hover {
  background-color: var(--gray-200);
}
.element-label {
  font-size: 0.75rem;
  color: var(--gray-600);
  margin-top: 0.25rem;
}
.info-panel {
  background-color: var(--white);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-bottom: 1.5rem;
}
.info-text {
  color: var(--gray-350);
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}
.version-info {
  font-size: 0.75rem;
  color: var(--gray-350);
  margin-top: 2rem;
}

.version-info a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.version-info a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}
.preview-section {
  margin-bottom: 1.5rem;
}
.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}
.section-title {
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--gray-800);
  margin: 0;
}
.size-indicator {
  font-size: 0.875rem;
  color: var(--gray-500);
}
.preview-container {
  background-color: var(--white);
  border-radius: 0.5rem;
  overflow: hidden;
  min-height: auto;
}
.preview-wrapper {
  position: relative;
  margin: 0 auto;
  transition: all 0.3s ease;
}
.grid-container {
  display: grid;
  gap: 1px;
  padding: 1rem;
  position: relative;
  min-height: 632px;
  background-color: var(--white);
}
.grid-line {
  background-image: var(
    --grid-line-gradient,
    linear-gradient(to right, rgba(59, 130, 246, 0.1) 1px, transparent 1px)
  );
  background-size: var(--grid-size, 8.33%) 100%;
  background-repeat: repeat-x;
  background-position: 0 0;
  position: relative;
}
.grid-line::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 1px;
  height: 100%;
  background-color: var(--grid-line-color, rgba(59, 130, 246, 0.1));
}
.grid-element {
  padding: 0.25rem;
  border-radius: 0.375rem;
  color: var(--white);
  font-weight: 500;
  font-size: 0.875rem;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  min-height: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}
.grid-element:hover {
  opacity: 0.9;
}
.grid-element.selected {
  position: relative;
  z-index: 10;
}
.code-section {
  margin-top: 1.5rem;
}
.code-container {
  min-height: 400px;
  background-color: var(--gray-900);
  color: var(--gray-100);
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.code-header {
  background-color: var(--gray-800);
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.window-controls {
  display: flex;
  gap: 0.5rem;
}
.window-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
}
.window-dot.red {
  background-color: #ef4444;
}
.window-dot.yellow {
  background-color: #f59e0b;
}
.window-dot.green {
  background-color: #10b981;
}
.code-type {
  font-size: 0.875rem;
  color: var(--gray-400);
}
.code-output {
  padding: 1rem;
  font-size: 0.875rem;
  overflow-x: auto;
  max-height: 300px;
  margin: 0;
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
  line-height: 1.5;
  white-space: pre;
}
.hidden {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.col-span-1 {
  grid-column: span 1 / span 1;
}
.col-span-2 {
  grid-column: span 2 / span 2;
}
.col-span-3 {
  grid-column: span 3 / span 3;
}
.col-span-4 {
  grid-column: span 4 / span 4;
}
.col-span-5 {
  grid-column: span 5 / span 5;
}
.col-span-6 {
  grid-column: span 6 / span 6;
}
.col-span-7 {
  grid-column: span 7 / span 7;
}
.col-span-8 {
  grid-column: span 8 / span 8;
}
.col-span-9 {
  grid-column: span 9 / span 9;
}
.col-span-10 {
  grid-column: span 10 / span 10;
}
.col-span-11 {
  grid-column: span 11 / span 11;
}
.col-span-12 {
  grid-column: span 12 / span 12;
}
.row-span-1 {
  grid-row: span 1 / span 1;
}
.row-span-2 {
  grid-row: span 2 / span 2;
}
.row-span-3 {
  grid-row: span 3 / span 3;
}
.row-span-4 {
  grid-row: span 4 / span 4;
}
.row-span-5 {
  grid-row: span 5 / span 5;
}
.row-span-6 {
  grid-row: span 6 / span 6;
}
.row-span-7 {
  grid-row: span 7 / span 7;
}
.row-span-8 {
  grid-row: span 8 / span 8;
}
.row-span-9 {
  grid-row: span 9 / span 9;
}
.row-span-10 {
  grid-row: span 10 / span 10;
}
.bg-white {
  background-color: var(--white);
}
.bg-gray-50 {
  background-color: var(--gray-50);
}
.bg-gray-100 {
  background-color: var(--gray-100);
}
.bg-gray-200 {
  background-color: var(--gray-200);
}
.bg-gray-300 {
  background-color: var(--gray-300);
}
.bg-gray-800 {
  background-color: var(--gray-800);
}
.bg-gray-900 {
  background-color: var(--gray-900);
}
.bg-blue-500 {
  background-color: var(--blue-500);
}
.bg-green-500 {
  background-color: var(--green-500);
}
.bg-purple-500 {
  background-color: var(--purple-500);
}
.bg-red-500 {
  background-color: var(--red-500);
}
.bg-yellow-500 {
  background-color: var(--yellow-500);
}
.text-white {
  color: var(--white);
}
.text-gray-400 {
  color: var(--gray-400);
}
.text-gray-500 {
  color: var(--gray-500);
}
.text-gray-600 {
  color: var(--gray-600);
}
.text-gray-700 {
  color: var(--gray-700);
}
.text-gray-800 {
  color: var(--gray-800);
}
.text-gray-900 {
  color: var(--gray-900);
}
.text-xs {
  font-size: 0.75rem;
}
.text-sm {
  font-size: 0.875rem;
}
.text-lg {
  font-size: 1.125rem;
}
.text-xl {
  font-size: 1.25rem;
}
.text-2xl {
  font-size: 1.5rem;
}
.font-medium {
  font-weight: 500;
}
.font-semibold {
  font-weight: 600;
}
.font-bold {
  font-weight: 700;
}
.p-0 {
  padding: 0;
}
.p-1 {
  padding: 0.25rem;
}
.p-2 {
  padding: 0.5rem;
}
.p-3 {
  padding: 0.75rem;
}
.p-4 {
  padding: 1rem;
}
.m-0 {
  margin: 0;
}
.m-1 {
  margin: 0.25rem;
}
.m-2 {
  margin: 0.5rem;
}
.mr-1 {
  margin-right: 0.25rem;
}
.mr-2 {
  margin-right: 0.5rem;
}
.mr-4 {
  margin-right: 1rem;
}
.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 0.75rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mt-1 {
  margin-top: 0.25rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-4 {
  margin-top: 1rem;
}
.my-1 {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}
.ml-1 {
  margin-left: 0.25rem;
}
.ml-2 {
  margin-left: 0.5rem;
}
.gap-1 {
  gap: 0.25rem;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-3 {
  gap: 0.75rem;
}
.gap-4 {
  gap: 1rem;
}
.border {
  border: 1px solid var(--gray-300);
}
.border-0 {
  border: 0;
}
.border-y {
  border-top: 1px solid var(--gray-300);
  border-bottom: 1px solid var(--gray-300);
}
.border-t {
  border-top: 1px solid var(--gray-100);
}
.border-l-2 {
  border-left: 2px solid;
}
.border-gray-100 {
  border-color: var(--gray-100);
}
.border-gray-200 {
  border-color: var(--gray-200);
}
.border-gray-300 {
  border-color: var(--gray-300);
}
.border-red-200 {
  border-color: var(--red-200);
}
.rounded {
  border-radius: 0.25rem;
}
.rounded-md {
  border-radius: 0.375rem;
}
.rounded-lg {
  border-radius: 0.5rem;
}
.rounded-full {
  border-radius: 9999px;
}
.flex {
  display: flex;
}
.inline-flex {
  display: inline-flex;
}
.flex-col {
  flex-direction: column;
}
.flex-wrap {
  flex-wrap: wrap;
}
.items-center {
  align-items: center;
}
.items-end {
  align-items: flex-end;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.flex-grow {
  flex-grow: 1;
}
.grid {
  display: grid;
}
.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-cols-12 {
  grid-template-columns: repeat(12, 1fr);
}
.w-3 {
  width: 0.75rem;
}
.w-8 {
  width: 2rem;
}
.w-9 {
  width: 2.25rem;
}
.w-16 {
  width: 4rem;
}
.w-28 {
  width: 7rem;
}
.w-full {
  width: 100%;
}
.h-3 {
  height: 0.75rem;
}
.h-4 {
  height: 1rem;
}
.h-5 {
  height: 1.25rem;
}
.h-8 {
  height: 2rem;
}
.transition-all {
  transition: all 0.2s;
}
.transition-colors {
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.duration-300 {
  transition-duration: 0.3s;
}
.cursor-pointer {
  cursor: pointer;
}
.cursor-move {
  cursor: move;
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.overflow-hidden {
  overflow: hidden;
}
.overflow-x-auto {
  overflow-x: auto;
}
.max-h-\[300px\] {
  max-height: 300px;
}
.min-h-\[500px\] {
  min-height: 500px;
}
.relative {
  position: relative;
}
.absolute {
  position: absolute;
}
.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.peer:focus ~ .peer-focus\:outline-none {
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.peer:focus ~ .peer-focus\:ring-2 {
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}
@media (max-width: 768px) {
  .main-container {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    margin-right: 0;
    margin-bottom: 1rem;
  }
  .content-area {
    width: 100%;
  }
  .element-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.control-btn-secondary.active {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.grid-cell-hover:hover {
  background-color: rgba(59, 130, 246, 0.1);
  transition: background-color 0.2s;
  cursor: pointer;
}
.code-output::-webkit-scrollbar {
  height: 8px;
}
.code-output::-webkit-scrollbar-track {
  background: var(--gray-800);
}
.code-output::-webkit-scrollbar-thumb {
  background: var(--gray-600);
  border-radius: 4px;
}
.code-output::-webkit-scrollbar-thumb:hover {
  background: var(--gray-500);
}
.code-output,
.code-output code,
.code-output code.language-markup {
  background: var(--gray-900) !important;
  color: var(--white) !important;
  font-family: monospace;
  min-height: 350px;
}
.code-output code[class*="language-"] .token.tag,
.code-output pre[class*="language-"] .token.tag,
.code-output .token.tag {
  color: #fc5bb6 !important;
  font-weight: bold !important;
}
.code-output code[class*="language-"] .token.attr-name,
.code-output pre[class*="language-"] .token.attr-name,
.code-output .token.attr-name {
  color: #ff6810 !important;
  font-weight: bold !important;
}
.code-output code[class*="language-"] .token.attr-value,
.code-output pre[class*="language-"] .token.attr-value,
.code-output code[class*="language-"] .token.string,
.code-output pre[class*="language-"] .token.string,
.code-output .token.attr-value,
.code-output .token.string {
  color: #50fa7b !important;
}
.code-output code[class*="language-"] .token.punctuation,
.code-output pre[class*="language-"] .token.punctuation,
.code-output .token.punctuation {
  color: #f8f8f2 !important;
}
.code-output code[class*="language-"] .token.comment,
.code-output pre[class*="language-"] .token.comment,
.code-output .token.comment {
  color: #5f74b4 !important;
  font-style: italic !important;
  background-color: rgba(98, 114, 164, 0.1) !important;
  padding: 2px 0 !important;
}
.code-output code,
.code-output code[class*="language-"],
.code-output pre[class*="language-"] {
  text-shadow: 0 1px rgba(0, 0, 0, 0.3) !important;
  letter-spacing: 0.5px !important;
}
::-webkit-scrollbar {
  display: none;
}
html {
  scrollbar-width: none;
}
body {
  -ms-overflow-style: none;
}
.bg-white {
  background-color: var(--white);
}
.bg-gray-50 {
  background-color: var(--gray-50);
}
.bg-gray-100 {
  background-color: var(--gray-100);
}
.bg-gray-200 {
  background-color: var(--gray-200);
}
.bg-gray-300 {
  background-color: var(--gray-300);
}
.bg-gray-800 {
  background-color: var(--gray-800);
}
.bg-gray-900 {
  background-color: var(--gray-900);
}
.bg-blue-500 {
  background-color: var(--blue-500);
}
.bg-green-500 {
  background-color: var(--green-500);
}
.bg-purple-500 {
  background-color: var(--purple-500);
}
.bg-red-500 {
  background-color: var(--red-500);
}
.bg-yellow-500 {
  background-color: var(--yellow-500);
}
.text-white {
  color: var(--white);
}
.text-gray-400 {
  color: var(--gray-400);
}
.text-gray-500 {
  color: var(--gray-500);
}
.text-gray-600 {
  color: var(--gray-600);
}
.text-gray-700 {
  color: var(--gray-700);
}
.text-gray-800 {
  color: var(--gray-800);
}
.text-gray-900 {
  color: var(--gray-900);
}
.text-xs {
  font-size: 0.75rem;
}
.text-sm {
  font-size: 0.875rem;
}
.text-lg {
  font-size: 1.125rem;
}
.text-xl {
  font-size: 1.25rem;
}
.text-2xl {
  font-size: 1.5rem;
}
.font-medium {
  font-weight: 500;
}
.font-semibold {
  font-weight: 600;
}
.font-bold {
  font-weight: 700;
}
.p-0 {
  padding: 0;
}
.p-1 {
  padding: 0.25rem;
}
.p-2 {
  padding: 0.5rem;
}
.p-3 {
  padding: 0.75rem;
}
.p-4 {
  padding: 1rem;
}
.m-0 {
  margin: 0;
}
.m-1 {
  margin: 0.25rem;
}
.m-2 {
  margin: 0.5rem;
}
.mr-1 {
  margin-right: 0.25rem;
}
.mr-2 {
  margin-right: 0.5rem;
}
.mr-4 {
  margin-right: 1rem;
}
.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 0.75rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mt-1 {
  margin-top: 0.25rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-4 {
  margin-top: 1rem;
}
.my-1 {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}
.ml-1 {
  margin-left: 0.25rem;
}
.ml-2 {
  margin-left: 0.5rem;
}
.gap-1 {
  gap: 0.25rem;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-3 {
  gap: 0.75rem;
}
.gap-4 {
  gap: 1rem;
}
.border {
  border: 1px solid var(--gray-300);
}
.border-0 {
  border: 0;
}
.border-y {
  border-top: 1px solid var(--gray-300);
  border-bottom: 1px solid var(--gray-300);
}
.border-t {
  border-top: 1px solid var(--gray-100);
}
.border-l-2 {
  border-left: 2px solid;
}
.border-gray-100 {
  border-color: var(--gray-100);
}
.border-gray-200 {
  border-color: var(--gray-200);
}
.border-gray-300 {
  border-color: var(--gray-300);
}
.border-red-200 {
  border-color: var(--red-200);
}
.rounded {
  border-radius: 0.25rem;
}
.rounded-md {
  border-radius: 0.375rem;
}
.rounded-lg {
  border-radius: 0.5rem;
}
.rounded-full {
  border-radius: 9999px;
}
.flex {
  display: flex;
}
.inline-flex {
  display: inline-flex;
}
.flex-col {
  flex-direction: column;
}
.flex-wrap {
  flex-wrap: wrap;
}
.items-center {
  align-items: center;
}
.items-end {
  align-items: flex-end;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.flex-grow {
  flex-grow: 1;
}
.grid {
  display: grid;
}
.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-cols-12 {
  grid-template-columns: repeat(12, 1fr);
}
.w-3 {
  width: 0.75rem;
}
.w-8 {
  width: 2rem;
}
.w-9 {
  width: 2.25rem;
}
.w-16 {
  width: 4rem;
}
.w-28 {
  width: 7rem;
}
.w-full {
  width: 100%;
}
.h-3 {
  height: 0.75rem;
}
.h-4 {
  height: 1rem;
}
.h-5 {
  height: 1.25rem;
}
.h-8 {
  height: 2rem;
}
.transition-all {
  transition: all 0.2s;
}
.transition-colors {
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.duration-300 {
  transition-duration: 0.3s;
}
.cursor-pointer {
  cursor: pointer;
}
.cursor-move {
  cursor: move;
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.overflow-hidden {
  overflow: hidden;
}
.overflow-x-auto {
  overflow-x: auto;
}
.max-h-\[300px\] {
  max-height: 300px;
}
.min-h-\[500px\] {
  min-height: 500px;
}
.relative {
  position: relative;
}
.absolute {
  position: absolute;
}
.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}
.peer:focus ~ .peer-focus\:outline-none {
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.peer:focus ~ .peer-focus\:ring-2 {
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.5);
}
@media (max-width: 768px) {
  .main-container {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    margin-right: 0;
    margin-bottom: 1rem;
  }
  .content-area {
    width: 100%;
  }
  .element-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.control-btn-secondary.active {
  background-color: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.grid-cell-hover:hover {
  background-color: rgba(59, 130, 246, 0.1);
  transition: background-color 0.2s;
  cursor: pointer;
}
.code-output::-webkit-scrollbar {
  height: 8px;
}
.code-output::-webkit-scrollbar-track {
  background: var(--gray-800);
}
.code-output::-webkit-scrollbar-thumb {
  background: var(--gray-600);
  border-radius: 4px;
}
.code-output::-webkit-scrollbar-thumb:hover {
  background: var(--gray-500);
}
.code-output,
.code-output code,
.code-output code.language-markup {
  background: var(--gray-900) !important;
  color: var(--white) !important;
  font-family: monospace;
  min-height: 350px;
}
.code-output code[class*="language-"] .token.tag,
.code-output pre[class*="language-"] .token.tag,
.code-output .token.tag {
  color: #fc5bb6 !important;
  font-weight: bold !important;
}
.code-output code[class*="language-"] .token.attr-name,
.code-output pre[class*="language-"] .token.attr-name,
.code-output .token.attr-name {
  color: #ff6810 !important;
  font-weight: bold !important;
}
.code-output code[class*="language-"] .token.attr-value,
.code-output pre[class*="language-"] .token.attr-value,
.code-output code[class*="language-"] .token.string,
.code-output pre[class*="language-"] .token.string,
.code-output .token.attr-value,
.code-output .token.string {
  color: #50fa7b !important;
}
.code-output code[class*="language-"] .token.punctuation,
.code-output pre[class*="language-"] .token.punctuation,
.code-output .token.punctuation {
  color: #f8f8f2 !important;
}
.code-output code[class*="language-"] .token.comment,
.code-output pre[class*="language-"] .token.comment,
.code-output .token.comment {
  color: #5f74b4 !important;
  font-style: italic !important;
  background-color: rgba(98, 114, 164, 0.1) !important;
  padding: 2px 0 !important;
}
.code-output code,
.code-output code[class*="language-"],
.code-output pre[class*="language-"] {
  text-shadow: 0 1px rgba(0, 0, 0, 0.3) !important;
  letter-spacing: 0.5px !important;
}
::-webkit-scrollbar {
  display: none;
}
html {
  scrollbar-width: none;
}
body {
  -ms-overflow-style: none;
}
