:root {
  --bg: #0b0f14;
  --card: rgba(255, 255, 255, 0.06);
  --glass: rgba(255, 255, 255, 0.04);
  --primary: #5dd9c1;
  --accent: #3a8dff;
  --text: #ffffff;
  --radius: 1rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Lexend Deca', sans-serif;
}

body {
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 1rem;
}

.layout {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center; /* horizontally center cards */
  align-items: flex-start;
  width: 100%;
  max-width: 900px;
  margin-top: 1.5rem; /* add spacing between header and cards */
}

.card {
  background: var(--card);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

h1 {
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.input-group {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

input[type="text"],
select {
  flex: 1 1 200px;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  border: none;
  outline: none;
  background: var(--glass);
  color: var(--text);
  backdrop-filter: blur(6px);
  font-size: 1rem;
  cursor: pointer;
}

select:hover,
input[type="text"]:hover {
  background: rgba(255,255,255,0.08);
}

button {
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  background: var(--primary);
  color: var(--bg);
  font-weight: 600;
  transition: all 0.3s ease;
}

button:hover {
  transform: translateY(-2px);
  background: var(--accent);
}

.qr-container,
.barcode-container {
  margin: 1rem 0;
  padding: 1rem;
  background: var(--glass);
  border-radius: var(--radius);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  max-width: 100%;
}

.download-group {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.download-btn {
  flex: 1 1 150px;
  margin-top: 0.5rem;
}

/* Placeholder text color for QR, Barcode, and Data Matrix */
.qr-container p,
.barcode-container text {
  color: #888;
  font-weight: 500;
  font-size: 1rem;
}

/* Footer styling */
.footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text);
  opacity: 0.7;
  font-weight: 500;
}

.footer .heart {
  color: #e25555;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .layout {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .card {
    padding: 1.5rem;
  }

  h1 {
    font-size: 1.4rem;
  }

  input[type="text"],
  select {
    font-size: 0.95rem;
  }

  button {
    padding: 0.5rem 0.8rem;
    font-size: 0.95rem;
  }

  .download-btn {
    flex: 1 1 100%;
  }

  .layout {
    margin-top: 1rem; /* add a little top margin for mobile */
  }

  .site-header { /* if you have a specific header wrapper */
    margin-top: 1rem; /* small top spacing for mobile */
  }
}

/* Barcode SVG responsiveness */
.barcode-container svg {
  width: 100%;
  height: auto;
}

.site-header {
  width: 100%;
  text-align: center;
  margin-bottom: 1rem;
  color: #FFFFFF);
}

.header-title {
  font-size: 1.8rem;
  font-weight: 600;
  display: inline-flex;       /* horizontal alignment */
  align-items: center;        /* vertically center pill with text */
  gap: 0.5rem;                /* spacing between title and pill */
}

.version-pill {
  background: var(--accent);
  color: var(--bg);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;     /* rounded pill shape */
  border-radius: 0.6rem;      /* rounded corners */
}

.site-subtitle {
  font-size: 1rem;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  margin-top: 0.3rem;
}