:root {
  --preview-bg: #121212;
  --preview-text: #e0e0e0;
  --preview-link: #5099de;
  --preview-accent: #1e1e1e;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #111;
  color: #fff;
  margin: 0;
  padding: 40px 20px;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.stars, .twinkling {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  display: block;
  z-index: 0;
}

.stars {
  background: #111 url('data:image/svg+xml;utf8,<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg"><circle cx="20" cy="20" r="1" fill="white" opacity="0.3"/><circle cx="150" cy="50" r="1.5" fill="white" opacity="0.5"/><circle cx="80" cy="150" r="1" fill="white" opacity="0.2"/><circle cx="180" cy="180" r="2" fill="white" opacity="0.6"/></svg>') repeat top center;
}

.twinkling {
  background: transparent url('data:image/svg+xml;utf8,<svg width="400" height="400" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.8"/><circle cx="300" cy="100" r="1" fill="white" opacity="0.4"/><circle cx="200" cy="300" r="1.5" fill="white" opacity="0.7"/></svg>') repeat top center;
  animation: move-twink-back 100s linear infinite;
}

@keyframes move-twink-back {
  from {background-position: 0 0;}
  to {background-position: -10000px 5000px;}
}

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 800px;
  padding: 40px;
  box-sizing: border-box;
}

.neu-flat {
  background: #111;
  box-shadow: -8px -8px 20px rgba(255,255,255,0.03), 8px 8px 20px rgba(0,0,0,0.9);
  border-radius: 20px;
}

.neu-pressed {
  background: #111;
  box-shadow: inset -4px -4px 10px rgba(255,255,255,0.03), inset 4px 4px 10px rgba(0,0,0,0.8);
  border-radius: 16px;
}

.header {
  text-align: left;
  margin-bottom: 40px;
}

.logo-wrapper {
  width: 80px;
  height: 80px;
  margin: 0 0 20px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.header h1 {
  font-size: 32px;
  margin: 0 0 10px 0;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.header p {
  color: #aaa;
  font-size: 16px;
}

.content-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.preview-section {
  padding: 24px;
  background-color: var(--preview-bg);
  color: var(--preview-text);
  border: 1px solid var(--preview-accent);
  transition: all 0.3s ease;
  overflow: hidden;
}

.preview-section h3 {
  margin-top: 0;
  color: var(--preview-text);
}

.preview-section a {
  color: var(--preview-link);
}

.preview-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.preview-table th, .preview-table td {
  border: 1px solid var(--preview-accent);
  padding: 10px;
  text-align: left;
}

.controls-section {
  padding: 24px;
}

.controls-section h3 {
  margin-top: 0;
  margin-bottom: 20px;
}

.theme-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.theme-btn {
  padding: 12px 16px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
  box-shadow: -3px -3px 8px rgba(255,255,255,0.03), 3px 3px 8px rgba(0,0,0,0.8);
  transition: all 0.2s;
  text-align: left;
}

.theme-btn:hover {
  color: #ccc;
}

.theme-btn:active, .theme-btn.active {
  box-shadow: inset -2px -2px 5px rgba(255,255,255,0.03), inset 2px 2px 5px rgba(0,0,0,0.8);
  color: #fff;
}

.instructions {
  padding: 24px;
  margin-bottom: 32px;
}

.instructions h2 {
  margin-top: 0;
  font-size: 20px;
}

.steps-list {
  padding-left: 20px;
  color: #bbb;
  font-size: 15px;
  margin-bottom: 24px;
}

.steps-list li {
  margin-bottom: 12px;
}

.download-link {
  color: #60a5fa;
  text-decoration: none;
  font-weight: 600;
}

.download-link:hover {
  text-decoration: underline;
}

code {
  background: #222;
  padding: 2px 6px;
  border-radius: 4px;
  color: #e0e0e0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.neu-btn {
  padding: 14px 24px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: -4px -4px 10px rgba(255,255,255,0.03), 4px 4px 10px rgba(0,0,0,0.8);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.neu-btn:hover {
  color: #ccc;
}

.neu-btn:active {
  box-shadow: inset -3px -3px 8px rgba(255,255,255,0.03), inset 3px 3px 8px rgba(0,0,0,0.8);
}

.footer {
  text-align: left;
  font-size: 14px;
  color: #888;
  border-top: 1px solid #222;
  padding-top: 20px;
  margin-top: 40px;
}

.footer p {
  margin: 5px 0;
}

.footer a {
  color: #888;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.footer a:hover {
  color: #fff;
}

.copyright {
  font-size: 12px;
  color: #555;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  body {
    padding: 10px;
  }
  
  .container {
    padding: 10px;
    border-radius: 16px;
  }
  
  .content-wrapper {
    grid-template-columns: 1fr;
  }
  
  .header h1 {
    font-size: 26px;
  }
  
  .actions {
    flex-direction: column;
  }
  
  .neu-btn {
    justify-content: center;
  }
}
