:root {
  --bg: #090d16;
  --card-bg: rgba(22, 27, 34, 0.85);
  --card-border: rgba(255, 255, 255, 0.08);
  --text-primary: #f0f6fc;
  --text-secondary: #8b949e;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --danger: #ef4444;
  --danger-hover: #dc2626;
  --success: #10b981;
  --warning: #f59e0b;
}

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

body {
  background-color: var(--bg);
  background-image: 
    radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.15) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(139, 92, 246, 0.15) 0px, transparent 50%);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  min-height: 100vh;
  padding: 40px 20px;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
}

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

.badge {
  display: inline-block;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 9999px;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

h1 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 650px;
  margin: 0 auto;
}

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

@media (max-width: 840px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-title svg {
  width: 20px;
  height: 20px;
  fill: var(--accent);
}

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

label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

input[type="text"],
input[type="number"],
select {
  width: 100%;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}

input:focus, select:focus {
  border-color: var(--accent);
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-primary);
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

button {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
  border: none;
  outline: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-danger {
  background: var(--danger);
  color: white;
}

.btn-danger:hover {
  background: var(--danger-hover);
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}

.status-panel {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
}

.status-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 13px;
}

.status-row:last-child {
  border-bottom: none;
}

.status-key {
  color: var(--text-secondary);
}

.status-val {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-weight: 600;
  color: var(--text-primary);
}

.progress-bar-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin-top: 12px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.1s linear, background-color 0.2s ease;
}

.progress-bar-fill.warning {
  background: var(--danger);
}

pre {
  background: #0d1117;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 16px;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 12px;
  color: #e6edf3;
  line-height: 1.5;
}

.info-alert {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: #93c5fd;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Top Navigation Bar */
.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  margin-bottom: 32px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
}

.nav-logo {
  font-size: 22px;
}

.nav-title {
  font-weight: 700;
  font-size: 16px;
  color: #f0f6fc;
  letter-spacing: -0.3px;
}

.nav-version {
  font-size: 11px;
  font-weight: 600;
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(59, 130, 246, 0.35);
  padding: 2px 8px;
  border-radius: 9999px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-link {
  color: #8b949e !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
  padding: 6px 10px;
}

.nav-link:hover {
  color: #f0f6fc !important;
}

.nav-github-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #238636;
  background: linear-gradient(180deg, #2ea043 0%, #238636 100%);
  color: #ffffff !important;
  text-decoration: none !important;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.nav-github-btn:hover {
  background: linear-gradient(180deg, #3fb950 0%, #2ea043 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(46, 160, 67, 0.4);
}

.nav-gh-name {
  font-size: 11px;
  opacity: 0.85;
  font-weight: 400;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  padding-left: 8px;
  margin-left: 2px;
}

/* Hero Action Buttons */
.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.hero-btn-primary {
  background: #2563eb;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.3);
}

.hero-btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.45);
}

.hero-btn-github {
  background: rgba(255, 255, 255, 0.08);
  color: #f0f6fc !important;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
}

.hero-btn-github:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

.hero-gh-badge {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.12);
  padding: 2px 8px;
  border-radius: 6px;
  color: #93c5fd;
}

/* Footer GitHub Card */
.footer-github-card {
  max-width: 680px;
  margin: 0 auto 28px;
  background: rgba(22, 27, 34, 0.95);
  border: 1px solid rgba(56, 139, 253, 0.35);
  border-radius: 12px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.footer-gh-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-gh-title {
  font-weight: 700;
  font-size: 14px;
  color: #f0f6fc;
}

.footer-gh-desc {
  font-size: 12px;
  color: #8b949e;
  margin-top: 3px;
}

.footer-gh-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #238636;
  background: linear-gradient(180deg, #2ea043 0%, #238636 100%);
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none !important;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.footer-gh-btn:hover {
  background: linear-gradient(180deg, #3fb950 0%, #2ea043 100%);
  transform: translateY(-1px);
}

.demo-footer {
  text-align: center;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 13px;
}

.demo-footer a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

.demo-footer a:hover {
  color: #60a5fa;
  text-decoration: underline;
}

.footer-links {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links .dot {
  color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 680px) {
  .footer-github-card {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .footer-gh-left {
    flex-direction: column;
    text-align: center;
  }
  .footer-gh-btn {
    justify-content: center;
  }
  .nav-gh-name {
    display: none;
  }
}
