body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  margin: 0;
  background: #0b0f19;
  color: #e8eefc;
  line-height: 1.5;
}

.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px;
}

.card {
  background: #121a2b;
  border: 1px solid #22304f;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
}

.header-card {
  background: linear-gradient(135deg, #1a2744 0%, #121a2b 100%);
}

h1 {
  margin: 0 0 4px 0;
  font-size: 28px;
  font-weight: 700;
}

h2 {
  margin: 0 0 16px 0;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}

label {
  display: block;
  margin: 16px 0 8px;
  font-weight: 500;
  color: #a9b8d8;
}

input, select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #22304f;
  background: #0b1324;
  color: #e8eefc;
  font-size: 15px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

input:focus, select:focus {
  outline: none;
  border-color: #2b6bff;
}

input[type="file"] {
  padding: 12px;
  background: #0b1324;
}

button {
  padding: 14px 24px;
  border-radius: 12px;
  border: 0;
  background: #2b6bff;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}

button:hover {
  background: #1a5ae8;
}

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

button.secondary {
  background: #233049;
  color: #a9b8d8;
}

button.secondary:hover {
  background: #2d3d5c;
  color: #fff;
}

.row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.row > * {
  flex: 1;
  min-width: 200px;
}

.small {
  color: #a9b8d8;
  font-size: 14px;
  line-height: 1.5;
}

code {
  background: #0b1324;
  padding: 4px 8px;
  border-radius: 6px;
  font-family: 'SF Mono', 'Consolas', monospace;
  font-size: 13px;
  border: 1px solid #22304f;
}

/* QR Code Container */
.qr-container {
  background: white;
  padding: 24px;
  display: inline-block;
  border-radius: 16px;
  margin: 20px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.qr-container img {
  display: block;
}

/* Instructions */
.instructions {
  background: #0a0f1a;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #22304f;
  font-size: 15px;
  line-height: 2;
}

.warning {
  margin-top: 16px;
  padding: 16px;
  background: rgba(255, 152, 0, 0.1);
  border: 1px solid rgba(255, 152, 0, 0.3);
  border-radius: 12px;
  color: #ffb74d;
  font-size: 14px;
}

/* Troubleshooting */
.troubleshoot {
  text-align: left;
  padding-left: 20px;
  margin: 0;
}

.troubleshoot li {
  margin: 12px 0;
}

/* Download Button */
.download-btn {
  display: inline-block;
  padding: 14px 28px;
  background: #233049;
  color: #87b3ff;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  transition: background 0.2s;
}

.download-btn:hover {
  background: #2d3d5c;
  color: #fff;
}

/* Status Grid */
.status-grid {
  display: grid;
  gap: 12px;
}

.status-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #0b1324;
  border-radius: 10px;
  border: 1px solid #22304f;
}

.status-label {
  color: #a9b8d8;
  font-size: 14px;
}

.status-value {
  font-weight: 600;
  font-size: 14px;
}

.status-value.ok {
  color: #4CAF50;
}

.status-value.missing {
  color: #ff9800;
}

/* Recent Downloads */
.recent-downloads {
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid #22304f;
  border-radius: 10px;
  background: #0b1324;
}

.download-entry {
  display: flex;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid #22304f;
}

.download-entry:last-child {
  border-bottom: none;
}

/* Responsive */
@media (max-width: 600px) {
  .container {
    padding: 16px;
  }

  .card {
    padding: 20px;
  }

  h1 {
    font-size: 24px;
  }

  .row {
    flex-direction: column;
  }

  .row > * {
    min-width: auto;
  }

  button.secondary {
    padding: 10px 16px;
    font-size: 14px;
  }
}
