/* QR Generator Custom Styles */
.qr-app-container {
  padding: 4rem 0;
  background-color: var(--light);
}

.qr-header {
  margin-bottom: 3rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.qr-workspace {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 992px) {
  .qr-workspace {
    grid-template-columns: 350px 1fr;
  }
}

.card-shadow {
  background: var(--white);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
  border: 1px solid var(--border);
}

.control-group {
  margin-bottom: 1.5rem;
}

.control-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

.control-group input[type="text"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.control-group input[type="text"]:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Accordion */
.accordion {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid var(--border);
}
.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  width: 100%;
  padding: 1rem;
  background: var(--light);
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  transition: background 0.2s;
}
.accordion-header:hover {
  background: #f1f5f9;
}
.accordion-header i.fa-chevron-down {
  transition: transform 0.3s;
}
.accordion-header.active i.fa-chevron-down {
  transform: rotate(180deg);
}
.accordion-header span i {
  margin-right: 8px;
  color: var(--gray);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
  background: var(--white);
}
.accordion-content.open {
  max-height: 500px; /* arbitrary large max height */
  padding: 1rem;
}

/* Colors */
.color-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.color-picker-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 4px;
}
.color-picker-group input[type="color"] {
  width: 100%;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 6px;
  cursor: pointer;
  padding: 2px;
}

/* Selects & Styles */
.style-options label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 4px;
}
.style-options select {
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-family: inherit;
}
.mt-3 { margin-top: 1rem; }
.mt-2 { margin-top: 0.5rem; }
.w-100 { width: 100%; }

/* Range Input */
input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
}

/* Preview */
.qr-preview-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.qr-preview-container h3 {
  margin-bottom: 1.5rem;
}

.qr-canvas {
  background: #f8fafc;
  padding: 20px;
  border-radius: 12px;
  border: 2px dashed var(--border);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 340px;
  min-width: 340px;
}

.download-actions {
  margin-top: 2rem;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Utilities */
.btn-text {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
}
.btn-text:hover {
  text-decoration: underline;
}