@font-face {
  font-family: 'GT America Compressed';
  src: url("/assets/GT-America-Compressed-Black-f1f0970b.woff2") format('woff2');
  font-weight: 900;
  font-style: normal;
}

@font-face {
  font-family: 'GT America Standard';
  src: url("/assets/GT-America-Standard-Medium-12e287a2.woff2") format('woff2');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'GT America Standard';
  src: url("/assets/GT-America-Standard-Regular-1292131b.woff2") format('woff2');
  font-weight: 400;
  font-style: normal;
}

html {
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
}

html::-webkit-scrollbar {
  display: none;
}

body {
  background: black;
  color: #00ff88;
  margin: 0;
  padding: 0;
  font-family: 'GT America Standard', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 150%;
  display: flex;
  flex-direction: column;
  height: 100vh;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

body::-webkit-scrollbar {
  display: none;
}

.content {
  position: relative;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  margin-top: clamp(40px, calc(6.4vw + 17px), 80px);
  margin-bottom: clamp(20px, calc(3.2vw + 8.5px), 40px);
  box-sizing: border-box;
}


.design-header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 10px 0;
  gap: 0;
  background: white;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wavy-background-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.design-header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  opacity: 0.8;
  z-index: 1;
  pointer-events: none;
}

.cable-status-dot {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
}

.cable-status-dot .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.cable-status-dot .dot.connected {
  background-color: #4a5568;
}

.cable-status-dot .dot.disconnected {
  background-color: #ef4444;
}

.cable-status-dot .dot.hidden {
  display: none;
}

.template-buttons {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  z-index: 2;
}

.template-buttons form {
  display: inline;
}

.template-buttons button {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: #444;
  padding: 3px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 11px;
  font-family: inherit;
  transition: all 0.2s ease;
}

.template-buttons button:hover {
  border-color: rgba(0, 102, 255, 0.5);
  color: #0066ff;
  background: rgba(0, 102, 255, 0.05);
}

.template-buttons button.selected {
  border-color: rgba(0, 102, 255, 0.35);
  color: rgba(0, 102, 255, 0.8);
  background: rgba(0, 102, 255, 0.08);
}

.visualizer-container {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 290px;
  min-height: 60px;
  z-index: 2;
}

.voice-active {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.voice-active:not(.hidden) {
  opacity: 1;
}

#visualizer {
  color: #4a5568;
}

.canvas-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.canvas-container canvas {
  display: block;
}

.play-button,
.stop-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: transparent;
  border: none;
  color: #4a5568;
  cursor: pointer;
  padding: 0;
  margin: 0;
  line-height: 0;
  font-size: 0;
  transition: all 0.2s ease;
}

.play-button {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(74, 85, 104, 0.15);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-button svg,
.stop-button svg {
  display: block;
}

.stop-button {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(74, 85, 104, 0.15);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.stop-button svg {
  width: 18px;
  height: 18px;
  border-radius: 2px;
}

.play-button:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(74, 85, 104, 0.3);
  box-shadow: 0 4px 12px rgba(74, 85, 104, 0.15);
  transform: translate(-50%, -50%) scale(1.05);
}

.stop-button:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(74, 85, 104, 0.3);
  box-shadow: 0 4px 12px rgba(74, 85, 104, 0.15);
  transform: translate(-50%, -50%) scale(1.05);
}

.play-button:active,
.stop-button:active {
  transform: translate(-50%, -50%) scale(0.95);
}

.hidden {
  display: none !important;
}

.side-button {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(74, 85, 104, 0.15);
  border-radius: 6px;
  padding: 8px 14px;
  height: 36px;
  box-sizing: border-box;
  color: #4a5568;
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

.side-button-icon {
  width: 14px;
  height: 14px;
}

.side-button:visited {
  color: #4a5568;
}

.side-button:hover {
  background: rgba(255, 255, 255, 0.5);
  border-color: rgba(74, 85, 104, 0.3);
  box-shadow: 0 4px 12px rgba(74, 85, 104, 0.15);
  transform: scale(1.03);
}

.voice-active:has(.canvas-container.stop-enabled) .side-button {
  opacity: 1;
  pointer-events: auto;
}

.canvas-container.stop-enabled .stop-button {
  pointer-events: auto;
}

.canvas-container.stop-enabled:hover .stop-button {
  opacity: 1;
}

.error-state {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #ef4444;
}

.error-state span {
  font-size: 12px;
  font-weight: 500;
  line-height: 14px;
}

.design-preview-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.design-preview {
  flex: 1;
  width: 100%;
  border: none;
  background: white;
}

