.car-wasm-demo {
  margin: 3rem 0;
  border: 2px solid var(--highlight, #8c7a65);
  border-radius: 0.9rem;
  padding: 2rem;
  background: var(--background, #fdfbf7);
}

body.colorscheme-dark .car-wasm-demo {
  background: rgba(18, 18, 18, 0.5);
}

.car-wasm-demo h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  text-decoration: none;
  border-bottom: none;
}

.demo-header {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.demo-controls {
  align-self: flex-end;
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.restart-button {
  background: var(--highlight, #8c7a65);
  border: none;
  border-radius: 0.4rem;
  padding: 0.5rem 1rem;
  font-size: 1.4rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.restart-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.demo-file-button {
  background: var(--highlight, #8c7a65);
  border: none;
  border-radius: 0.4rem;
  padding: 0.5rem 1rem;
  font-size: 1.4rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.demo-file-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}




.privacy-notice {
  font-size: 1.4rem;
  color: #666;
  margin: 0.5rem 0;
  padding: 0.8rem 1rem;
  background: rgba(0, 0, 0, 0.03);
  border-left: 3px solid var(--highlight, #8c7a65);
  border-radius: 0.4rem;
}

body.colorscheme-dark .privacy-notice {
  color: #aaa;
  background: rgba(255, 255, 255, 0.05);
}

.status-indicator {
  text-align: center;
  padding: 1rem;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  color: #666;
}

body.colorscheme-dark .status-indicator {
  color: #aaa;
}

.status-text::before {
  content: "⏳ ";
}

.status-indicator.ready .status-text::before {
  content: "✓ ";
  color: #28a745;
}

.status-indicator.error .status-text::before {
  content: "✗ ";
  color: #dc3545;
}

.drop-zone {
  border: 2px dashed var(--highlight, #8c7a65);
  border-radius: 0.9rem;
  padding: 3rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(0, 0, 0, 0.02);
}

body.colorscheme-dark .drop-zone {
  background: rgba(255, 255, 255, 0.03);
}

.drop-zone:hover {
  border-color: var(--highlight, #8c7a65);
  background: rgba(140, 122, 101, 0.08);
  transform: translateY(-2px);
}

.drop-zone.drag-over {
  border-color: var(--highlight, #8c7a65);
  background: rgba(140, 122, 101, 0.12);
  border-width: 3px;
}

.drop-zone-content svg {
  opacity: 0.5;
  margin-bottom: 1rem;
}

.drop-text {
  font-size: 1.8rem;
  font-weight: 500;
  margin: 1rem 0 0.5rem 0;
}

.drop-subtext {
  font-size: 1.4rem;
  color: #666;
  margin: 0;
}

body.colorscheme-dark .drop-subtext {
  color: #aaa;
}

.output-container {
  margin-top: 2rem;
}

.output-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--highlight, #8c7a65);
}

.tab-button {
  background: transparent;
  border: none;
  padding: 0.8rem 1.6rem;
  font-size: 1.6rem;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s ease;
  color: inherit;
}

.tab-button:hover {
  background: rgba(140, 122, 101, 0.08);
}

.tab-button.active {
  border-bottom-color: var(--highlight, #8c7a65);
  font-weight: 600;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.output-pre {
  background: var(--code-bg, #f5f5f5);
  border: 1px solid var(--highlight, #8c7a65);
  border-radius: 0.6rem;
  padding: 1.6rem;
  font-size: 1.4rem;
  line-height: 1.8rem;
  overflow-x: auto;
  font-family: monospace;
  max-height: 50rem;
  overflow-y: auto;
}

body.colorscheme-dark .output-pre {
  background: rgba(0, 0, 0, 0.3);
}

.assets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.asset-card {
  border: 1px solid var(--highlight, #8c7a65);
  border-radius: 0.6rem;
  padding: 1.2rem;
  background: rgba(0, 0, 0, 0.02);
  transition: all 0.2s ease;
}

body.colorscheme-dark .asset-card {
  background: rgba(255, 255, 255, 0.03);
}

.asset-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.asset-preview {
  width: 100%;
  height: 150px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 0.4rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

body.colorscheme-dark .asset-preview {
  background: rgba(255, 255, 255, 0.05);
}

.asset-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.asset-preview-placeholder {
  color: #999;
  font-size: 1.2rem;
  text-align: center;
  padding: 1rem;
}

.asset-name {
  font-weight: 600;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  word-wrap: break-word;
}

.asset-meta {
  font-size: 1.2rem;
  color: #666;
  margin: 0.3rem 0;
}

body.colorscheme-dark .asset-meta {
  color: #aaa;
}

.asset-download {
  width: 100%;
  margin-top: 0.8rem;
  padding: 0.4rem 0.8rem;
  background: var(--highlight, #8c7a65);
  border: none;
  border-radius: 0.4rem;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.asset-download:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.asset-download:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}