/* Base styles */
:root {
  --primary: #5755FF;
  --primary-dark: #4442cc;
  --primary-light: #7976FF;
  --secondary: #FF5757;
  --neutral-100: #f6f6f6;
  --neutral-200: #e9e9e9;
  --neutral-300: #d9d9d9;
  --neutral-600: #666666;
  --neutral-700: #444444;
  --neutral-800: #222222;
  --neutral-900: #111111;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 0.5rem;
  --transition: 0.2s ease;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  line-height: 1.6;
  color: var(--neutral-800);
  background-color: var(--neutral-100);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

button {
  cursor: pointer;
  font-family: inherit;
}

/* Header styles */
header {
  background: linear-gradient(to right, var(--primary), var(--primary-light));
  color: white;
  padding: 2rem 0;
  text-align: center;
  margin-bottom: 2rem;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  background: linear-gradient(to right, #ffffff, #f0f0ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

header p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Main app container */
.app-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  background-color: white;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .app-container {
    grid-template-columns: 1.5fr 1fr;
  }
}

/* QR Options section */
.qr-options {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.type-selector h2, .style-options h2, .qr-preview h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--neutral-800);
}

.type-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .type-buttons {
    grid-template-columns: repeat(3, 1fr);
  }
}

.type-button {
  background-color: var(--neutral-200);
  border: none;
  border-radius: var(--radius);
  padding: 0.75rem;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all var(--transition);
}

.type-button:hover {
  background-color: var(--neutral-300);
}

.type-button.active {
  background-color: var(--primary);
  color: white;
}

/* Input forms */
.input-forms {
  margin-top: 1rem;
}

.qr-form {
  display: none;
  animation: fadeIn 0.3s ease;
}

.qr-form.active {
  display: block;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--neutral-700);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--neutral-300);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(87, 85, 255, 0.2);
}

/* Style options */
.style-buttons {
  display: flex;
  gap: 0.75rem;
}

.style-button {
  background-color: var(--neutral-200);
  border: none;
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  font-weight: 500;
  transition: all var(--transition);
}

.style-button:hover {
  background-color: var(--neutral-300);
}

.style-button.active {
  background-color: var(--primary);
  color: white;
}

/* QR Preview section */
.qr-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#qr-container {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: white;
  padding: 1.5rem;
  border-radius: var(--radius);
  min-height: 300px;
  width: 100%;
  border: 1px solid var(--neutral-200);
  margin-bottom: 1.5rem;
}

#qr-code {
  display: flex;
  justify-content: center;
}

#qr-code img {
  max-width: 100%;
  height: auto;
}

.download-options {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  width: 100%;
}

.download-button {
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  padding: 0.75rem 1.25rem;
  font-weight: 500;
  transition: background-color var(--transition);
  min-width: 180px;
  text-align: center;
}

.download-button:hover {
  background-color: var(--primary-dark);
}

/* Footer styles */
footer {
  background-color: var(--neutral-800);
  color: white;
  padding: 2rem 0;
  text-align: center;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}