/* Modern Dark Glassmorphism CSS Design System */
:root {
  --bg-dark: #0b0f19;
  --card-bg: rgba(22, 30, 49, 0.75);
  --border-color: rgba(255, 255, 255, 0.08);
  --primary-blue: #3b82f6;
  --primary-hover: #2563eb;
  --accent-emerald: #10b981;
  --accent-cyan: #06b6d4;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --font-main: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

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

body {
  background-color: var(--bg-dark);
  background-image:
    radial-gradient(at 0% 0%, rgba(59, 130, 246, 0.12) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(16, 185, 129, 0.1) 0px, transparent 50%);
  color: var(--text-primary);
  font-family: var(--font-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.25rem;
}

.badge-tag {
  font-size: 0.75rem;
  background: rgba(59, 130, 246, 0.2);
  color: var(--primary-blue);
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-btn.active {
  background: rgba(59, 130, 246, 0.15);
  color: var(--primary-blue);
  border-color: rgba(59, 130, 246, 0.3);
}

.github-btn {
  background: var(--card-bg);
  color: var(--text-primary);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  border: 1px solid var(--border-color);
  transition: background 0.2s;
}

.github-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* LAYOUT CONTAINER */
.container {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  flex: 1;
  width: 100%;
}

.hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: var(--text-secondary);
  max-width: 650px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* TAB PANELS */
.tab-panel {
  display: none;
}

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

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

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

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

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--border-color);
}

.card-header h2 {
  font-size: 1.1rem;
  font-weight: 600;
}

.step-indicator {
  font-size: 0.75rem;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  padding: 3px 10px;
  border-radius: 12px;
  font-weight: 600;
}

/* FORMS */
.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  font-weight: 500;
}

input[type="text"],
textarea {
  width: 100%;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.9rem;
  transition: border-color 0.2s;
}

input[type="text"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
}

.btn {
  width: 100%;
  padding: 12px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.primary-btn {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #2563eb 100%);
  color: white;
}

.primary-btn:hover {
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.secondary-btn {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
  margin-top: 1rem;
}

.secondary-btn:hover {
  background: rgba(16, 185, 129, 0.3);
}

/* QR CONTAINERS */
.qr-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  background: rgba(15, 23, 42, 0.4);
  border-radius: 12px;
  border: 1px dashed var(--border-color);
  margin-bottom: 1rem;
  padding: 1.5rem;
}

#qrcode-box img {
  border: 6px solid white;
  border-radius: 8px;
  max-width: 180px;
}

.placeholder-text {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
}

.code-view pre {
  background: #070a12;
  padding: 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 120px;
  overflow-y: auto;
  margin-top: 0.4rem;
}

/* UPLOAD ZONE */
.upload-zone {
  border: 2px dashed rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.05);
  border-radius: 12px;
  padding: 3rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.upload-zone:hover {
  border-color: var(--primary-blue);
  background: rgba(59, 130, 246, 0.1);
}

.upload-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.6rem;
}

.file-types {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
  margin-top: 0.4rem;
}

.hidden {
  display: none !important;
}

.footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}
