/* QR Code Generator - Specific Styles */

.qr-preview {
  margin: 24px 0 16px;
  padding: 24px;
  border: 2px dashed var(--border);
  border-radius: 16px;
  min-height: 300px;
  display: grid;
  place-items: center;
  background: var(--secondary-bg);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.qr-preview-wrap {
  position: relative;
}

.qr-preview-wrap .loader {
  position: absolute;
  top: 20px;
  right: 20px;
}

/* Minimalistic Form Container */
.qr-form-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 8px;
}

.qr-form-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.qr-form-section:hover {
  border-color: rgba(124, 58, 237, 0.3);
}

.qr-form-section-optional {
  border-style: dashed;
  opacity: 0.9;
}

.qr-form-section-optional:hover {
  opacity: 1;
}

.qr-form-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.qr-section-icon {
  font-size: 20px;
  line-height: 1;
}

.qr-form-section-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  flex: 1;
}

.qr-optional-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: rgba(124, 58, 237, 0.1);
  color: var(--accent);
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.qr-form-section-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Primary Input */
.qr-input-primary {
  width: 100%;
  padding: 14px 16px;
  font-size: 15px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--input-bg);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.qr-input-primary:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.qr-input-primary::placeholder {
  color: var(--muted);
}

/* Settings Grid */
.qr-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.qr-setting-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.qr-setting-item:focus-within {
  border-color: var(--accent);
  background: var(--input-bg);
}

.qr-setting-label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}

.qr-input-number {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  text-align: right;
  min-width: 0;
}

.qr-input-number:focus {
  outline: none;
}

.qr-setting-unit {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

/* Enhancement Items */
.qr-enhancement-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.qr-enhancement-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qr-enhancement-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}

.qr-enhancement-icon {
  font-size: 16px;
}

.qr-enhancement-hint {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* Form Actions */
.qr-form-actions {
  margin-top: 8px;
}

.qr-generate-btn {
  width: 100%;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 720px) {
  .qr-form-section {
    padding: 16px;
  }

  .qr-settings-grid {
    grid-template-columns: 1fr;
  }

  .qr-input-primary {
    padding: 12px 14px;
    font-size: 14px;
  }
}

/* Info Section and Features Section Styles */
.info-section {
  margin-top: 64px;
  padding: 48px 0;
}

.info-section h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 32px;
  color: var(--text);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.info-card {
  padding: 32px;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.info-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.info-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text);
}

.info-card p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.features-section {
  margin-top: 48px;
  padding: 48px 0;
}

.features-section h2 {
  text-align: center;
  margin-bottom: 32px;
  font-size: 32px;
  color: var(--text);
}

.features-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 0 auto;
}

.features-list li {
  padding: 16px 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.features-list li:last-child {
  border-bottom: none;
}

.features-list li strong {
  color: var(--accent);
}


.qr-loader-subtext {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
  opacity: 0.8;
}

@media (max-width: 720px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
  
  .info-section h2,
  .features-section h2 {
    font-size: 24px;
  }
  
  .qr-loader-text {
    font-size: 18px;
  }
  
  .qr-loader-subtext {
    font-size: 13px;
  }
}

