* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", Arial, Helvetica, sans-serif;
  background: #1a1a1a;
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
}

.container {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.content {
  display: flex;
  height: 100vh;
  gap: 0;
}

.form-section,
.code-section,
.preview-section {
  background: #2a2a2a;
  padding: 24px;
  border-right: 1px solid #3a3a3a;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  flex: 1;
  min-width: 250px;
}

.resize-handle {
  width: 5px;
  background: #3a3a3a;
  cursor: col-resize;
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s;
}

.resize-handle:hover {
  background: #4a4a4a;
}

.resize-handle:active {
  background: #5a5a5a;
}

.preview-section {
  border-right: none;
}

h2 {
  margin-bottom: 16px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 12px;
  border-bottom: 1px solid #3a3a3a;
}

.form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  margin-bottom: 6px;
  color: #a0a0a0;
  font-weight: 500;
  font-size: 13px;
}

input[type="text"],
input[type="url"],
input[type="color"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #3a3a3a;
  background: #1a1a1a;
  color: #ffffff;
  border-radius: 4px;
  font-size: 13px;
  transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="url"]:focus {
  outline: none;
  border-color: #666666;
}

input[type="color"] {
  height: 40px;
  cursor: pointer;
  padding: 4px;
}

button {
  width: 100%;
  padding: 12px;
  background: #3a3a3a;
  color: #ffffff;
  border: 1px solid #4a4a4a;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

button:hover {
  background: #4a4a4a;
  border-color: #5a5a5a;
}

button:active {
  transform: scale(0.98);
}

.output {
  background: #1a1a1a;
  padding: 16px;
  border: 1px solid #3a3a3a;
  border-radius: 4px;
  font-family: "Courier New", monospace;
  font-size: 11px;
  color: #d4d4d4;
  height: calc(100vh - 180px);
  overflow-y: auto;
  word-wrap: break-word;
  white-space: pre-wrap;
  flex: 1;
}

.output::-webkit-scrollbar {
  width: 8px;
}

.output::-webkit-scrollbar-track {
  background: #1a1a1a;
}

.output::-webkit-scrollbar-thumb {
  background: #3a3a3a;
  border-radius: 4px;
}

.output::-webkit-scrollbar-thumb:hover {
  background: #4a4a4a;
}

.copy-btn {
  margin-top: 12px;
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  flex-shrink: 0;
}

.copy-btn:hover {
  background: #3a3a3a;
}

.preview-iframe {
  width: 100%;
  height: calc(100vh - 100px);
  border: 1px solid #3a3a3a;
  border-radius: 4px;
  background: white;
  flex: 1;
  overflow: hidden;
}

.preview-iframe iframe {
  border: none;
}

@media (max-width: 1200px) {
  .content {
    grid-template-columns: 1fr;
    height: auto;
  }

  .form-section,
  .code-section,
  .preview-section {
    border-right: none;
    border-bottom: 1px solid #3a3a3a;
    height: auto;
    min-height: 400px;
  }

  body {
    overflow: auto;
  }
}
