.qr-code-generator-widget {
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Fix jerking issue */
.qr-code-container {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 20px;
  transition: min-height 0.3s ease;
}

#qr-code-image {
  max-width: 300px;
  max-height: 300px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#qr-code-image.show {
  opacity: 1;
}

#qr-code-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

/* Presets - fix display */
.color-presets,
.design-presets,
.logo-presets,
.frame-presets,
.qr-presets,
.preset-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.color-preset-item,
.design-preset-item,
.logo-preset-item,
.frame-preset-item,
.qr-preset-item,
.preset-item {
  width: 60px;
  height: 60px;
  border: 2px solid #dee2e6;
  border-radius: 6px;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  position: relative;
}

.color-preset-item:hover,
.design-preset-item:hover,
.logo-preset-item:hover,
.frame-preset-item:hover,
.qr-preset-item:hover,
.preset-item:hover {
  border-color: #0d6efd;
  transform: scale(1.05);
}

.color-preset-item.active,
.design-preset-item.active,
.logo-preset-item.active,
.frame-preset-item.active,
.qr-preset-item.active,
.preset-item.active {
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

.reset-preset {
  background: #f8f9fa;
  color: #dc3545;
  font-size: 24px;
  font-weight: bold;
}

/* Frame preset items with SVG icons */
.preset-frame {
  width: 60px;
  height: 60px;
  border: 2px solid #dee2e6;
  border-radius: 6px;
  cursor: pointer;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  position: relative;
}

.preset-frame svg {
  display: block;
}

.preset-frame:hover {
  border-color: #0d6efd;
  transform: scale(1.05);
}

.preset-frame.active {
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
  background: #f0f7ff;
  color: #0d6efd;
}

.frame-color-row {
  display: flex;
  align-items: stretch;
  gap: 6px;
  width: 100%;
}

.frame-color-picker {
  width: 50px;
  min-width: 50px;
  height: 38px;
  padding: 2px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  cursor: pointer;
  box-sizing: border-box;
}

.frame-color-input {
  flex: 1;
  font-family: monospace;
  height: 38px;
  box-sizing: border-box;
}

.frame-color-reset {
  width: 38px;
  min-width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  background: #f8f9fa;
  color: #dc3545;
  font-size: 18px;
  cursor: pointer;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.frame-color-reset:hover {
  background: #e9ecef;
  border-color: #dc3545;
}

.section-label {
  display: inline-block;
  background-color: #c3e2ff;
  color: #0071dc;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: 20px;
  /* margin-bottom: 16px; */
  letter-spacing: 0.5px;
}

/* Styles for headers with stripe */
.color-block-header,
.pattern-section-header {
  position: relative;
  margin-bottom: 15px;
  padding-bottom: 8px;
}

.color-block-header h6,
.pattern-section-header h6 {
  display: inline-block;
  margin: 0;
  padding-right: 10px;
  background: #fff;
  position: relative;
  z-index: 1;
}

.color-block-header::after,
.pattern-section-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #dee2e6 20%, #dee2e6 80%, transparent 100%);
}

/* Color blocks */
.color-block {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.color-type-selector {
  margin-bottom: 15px;
  display: flex;
  gap: 10px;
}

.color-type-label {
  padding: 5px 12px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.color-type-label.active {
  background: #0d6efd;
  color: white;
  border-color: #0d6efd;
}

.color-type-label input[type=radio] {
  display: none;
}

/* Styles for color input */
.color-input {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.color-input input[type=color] {
  width: 60px;
  height: 40px;
  padding: 0;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  cursor: pointer;
}

.color-input input[type=text] {
  flex: 1;
  min-width: 100px;
  padding: 8px 12px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
}

/* Gradient settings */
.gradient-colors {
  margin-top: 10px;
}

.gradient-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px;
  background: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #e9ecef;
}

.gradient-preview-item,
.color-input-item,
.swap-item,
.reset-item,
.gradient-type-item,
.gradient-rotation-item {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

/* Gradient preview */
.gradient-preview {
  width: 40px;
  min-width: 40px;
  height: 40px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  background: linear-gradient(#000000, #ffffff);
}

.swap-colors {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  background: #f8f9fa;
  cursor: pointer;
  font-size: 18px;
}

.swap-colors:hover {
  background: #e9ecef;
}

.reset-color-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  background: #f8f9fa;
  cursor: pointer;
  color: #dc3545;
  font-size: 18px;
}

.reset-color-btn:hover {
  background: #e9ecef;
}

/* Gradient select and rotation */
.gradient-type-select,
.gradient-rotation-container {
  margin-bottom: 10px;
}

.gradient-rotation-container {
  white-space: nowrap;
}

.gradient-rotation-container input[type=range] {
  flex: 1;
}

.gradient-rotation-container .rotation-value {
  min-width: 40px;
  text-align: center;
  font-weight: bold;
}

/* Pattern sections */
.pattern-section {
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.pattern-section-header {
  margin-bottom: 15px;
}

.pattern-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.pattern-preset-item {
  width: 60px;
  height: 60px;
  border: 2px solid #dee2e6;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.pattern-preset-item:hover {
  border-color: #0d6efd;
  transform: scale(1.05);
}

.pattern-preset-item.active {
  border-color: #0d6efd;
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
}

.reset-pattern {
  background: #f8f9fa;
  color: #dc3545;
  font-size: 24px;
  font-weight: bold;
}

/* Hide sliders */
.design-sliders {
  display: none;
}

/* Logo upload button */
.logo-upload-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 120px;
  border: 2px dashed #dee2e6;
  border-radius: 8px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #f8f9fa;
  position: relative;
}

.logo-upload-button:hover {
  border-color: #0d6efd;
  background: #f0f7ff;
}

.logo-upload-button.drag-over {
  border-color: #0d6efd;
  background: #e8f4ff;
}

.logo-upload-button .upload-placeholder {
  text-align: center;
  pointer-events: none;
}

.logo-upload-button .upload-placeholder i {
  font-size: 32px;
  color: #6c757d;
  display: block;
  margin-bottom: 8px;
}

.logo-upload-button .upload-placeholder p {
  margin: 0;
  color: #495057;
  font-weight: 500;
}

.logo-upload-button .upload-placeholder small {
  display: block;
  margin-top: 4px;
}

.logo-upload-button .upload-dragover-indicator {
  display: none;
  text-align: center;
  pointer-events: none;
}

.logo-upload-button.drag-over .upload-placeholder {
  display: none;
}

.logo-upload-button.drag-over .upload-dragover-indicator {
  display: block;
}

.logo-upload-button.drag-over .upload-dragover-indicator i {
  font-size: 32px;
  color: #0d6efd;
  display: block;
  margin-bottom: 8px;
}

.logo-upload-button.drag-over .upload-dragover-indicator p {
  margin: 0;
  color: #0d6efd;
  font-weight: 500;
}

/* Logo preview below upload button */
#logo-preview {
  margin-top: 20px;
}

#logo-preview img {
  max-width: 100%;
  max-height: 120px;
  border-radius: 4px;
  border: 1px solid #dee2e6;
}

/* Tab content padding */
.tab-content > .tab-pane {
  padding-top: 20px;
}

/* Message type selector */
.message-type-selector {
  margin-bottom: 20px;
}

/* Fix tabs */
.settings-tabs {
  margin-bottom: 20px;
  border-bottom: 2px solid #dee2e6;
}

.settings-tabs .nav-link {
  border: none;
  color: #6c757d;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-top-left-radius: 0.85rem !important;
  border-top-right-radius: 0.85rem !important;
}

.settings-tabs .nav-link.active {
  color: #000000 !important;
  background-color: #ffc221 !important;
  border-bottom: 2px solid #0d6efd;
  margin-bottom: -2px;
  font-weight: 600;
}

/* Print block */
.print-section {
  margin-top: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.print-preview {
  margin-top: 20px;
  min-height: 200px;
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  padding: 15px;
}

.print-actions {
  margin-top: 15px;
  display: flex;
  gap: 10px;
}

/* Responsiveness */
@media (max-width: 768px) {
  .settings-column,
.result-column {
    margin-bottom: 30px;
  }
  .color-input {
    flex-direction: column;
    align-items: flex-start;
  }
  .color-input input[type=text] {
    width: 100%;
  }
  .gradient-controls {
    gap: 4px;
  }
  .qr-controls {
    flex-direction: column;
  }
  .qr-controls .btn {
    width: 100%;
    margin-bottom: 5px;
  }
  .color-text-input {
    min-width: 70px;
    max-width: 70px;
    width: 70px;
    font-size: 0.8rem;
  }
  .gradient-type-select .form-select {
    min-width: 90px;
    font-size: 0.8rem;
  }
  .gradient-rotation-input {
    width: 60px;
  }
  .gradient-rotation-container label {
    font-size: 0.8rem;
  }
}
@media (max-width: 576px) {
  .gradient-controls {
    flex-direction: column;
    align-items: stretch;
  }
  .gradient-preview-item,
.color-input-item,
.swap-item,
.reset-item,
.gradient-type-item,
.gradient-rotation-item {
    width: 100%;
    justify-content: center;
    margin-bottom: 8px;
  }
  .color-input-group {
    justify-content: center;
    width: 100%;
  }
  .color-text-input {
    flex-grow: 1;
    max-width: none;
    width: auto;
  }
}
/* Responsiveness - wrap on mobile */
@media (max-width: 992px) {
  .gradient-controls {
    gap: 6px;
  }
  .color-text-input {
    min-width: 80px;
    max-width: 80px;
    width: 80px;
  }
}
/* Styles for pattern preview */
.pattern-preview-section {
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

.pattern-preview-svg svg {
  width: 60px;
  height: 60px;
  display: block;
}

.pattern-preview-container {
  background: white;
  padding: 10px;
  border-radius: 6px;
}

.pattern-info {
  font-size: 0.85rem;
  color: #6c757d;
}

/* Color fields */
.color-input-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-control-color {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  cursor: pointer;
}

.color-text-input {
  min-width: 90px;
  max-width: 90px;
  width: 90px;
  font-family: monospace;
  font-size: 0.9rem;
  height: 40px;
}

.gradient-controls {
  margin-bottom: 10px;
}

.gradient-settings {
  padding: 8px;
  background: #f8f9fa;
  border-radius: 4px;
  border: 1px solid #e9ecef;
}

.gradient-type-select .form-select-sm {
  height: calc(1.5em + 0.5rem + 2px);
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
}

.gradient-rotation-input {
  text-align: center;
}

/* Buttons */
.swap-colors,
.reset-color-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 40px;
  height: 40px;
}

/* Make inputs more compact on mobile */
@media (max-width: 768px) {
  .color-text-input {
    min-width: 70px;
    max-width: 70px;
  }
  .gradient-settings {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}
/* CSS for visual feedback */
input[type=color] {
  transition: all 0.3s ease;
}

input[type=color]:focus {
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.25);
  border-color: #0d6efd;
}

/* Light placeholder for input fields */
.qr-code-generator-widget .form-control::placeholder {
  color: #c0c4c8;
  opacity: 1;
}

/* Animation on color change */
@keyframes colorChanged {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}
.color-changed {
  animation: colorChanged 0.3s ease;
}

/* Styles for gradient block */
.gradient-preview {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  background: linear-gradient(#000000, #ffffff);
}

.color-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gradient-settings {
  padding: 8px 12px;
  background: #f8f9fa;
  border-radius: 6px;
  border: 1px solid #e9ecef;
  height: 60px;
  align-items: center;
}

/* Gradient type */
.gradient-type-select .form-select {
  height: 40px;
  line-height: 40px;
  padding: 0.375rem 0.75rem;
  min-width: 100px;
}

/* Rotation */
.gradient-rotation-input {
  height: 40px;
  text-align: center;
  padding: 0.375rem;
  width: 70px;
}

/* Make all elements same height */
/* All elements same height */
.gradient-controls .gradient-preview,
.gradient-controls .form-control,
.gradient-controls .form-select,
.gradient-controls .btn {
  height: 40px;
  box-sizing: border-box;
}

/* Responsiveness */
@media (max-width: 768px) {
  .gradient-controls .d-flex {
    flex-direction: column;
    align-items: flex-start;
  }
  .color-input-group {
    width: 100%;
    justify-content: space-between;
  }
  .gradient-settings {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    height: auto;
  }
}
/* Additional styles for visual separation */
.gradient-controls > div {
  padding: 4px;
  background: white;
  border-radius: 4px;
  border: 1px solid #e9ecef;
}

/* Hover effect */
.gradient-controls > div:hover {
  border-color: #0d6efd;
  box-shadow: 0 0 0 1px rgba(13, 110, 253, 0.1);
}

/* Spacing between elements */
.gradient-controls > div:not(:last-child) {
  margin-right: 8px;
}

/* For mobile - remove horizontal margins */
@media (max-width: 576px) {
  .gradient-controls > div:not(:last-child) {
    margin-right: 0;
    margin-bottom: 8px;
  }
}
.qr-intro p:nth-child(2) {
  margin-top: 20px;
}

@media print {
  body * {
    visibility: hidden;
  }
  #print-preview, #print-preview * {
    visibility: visible;
  }
  #print-preview {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 20px;
    border: none;
    background: white;
  }
  #print-preview img {
    max-width: 100%;
    height: auto;
  }
}

/*# sourceMappingURL=qrCodeGenerator.css.map */
