/* QR Code Generator Styles */
body {
  font-family: 'Inter', 'Poppins', sans-serif;
  background: #181a1b;
  color: #f5f5f5;
}
#qr-generator {
  background: #23272a;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12);
  padding: 2.5rem 2.5rem 2rem 2.5rem;
  margin: 2rem auto;
  max-width: 900px;
  display: flex;
  flex-direction: row;
  gap: 2.5rem;
  justify-content: center;
}
#qr-generator h2, #qr-generator h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
}
#qr-form {
  flex: 1 1 380px;
  min-width: 320px;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.customization-section {
  background: #202225;
  border-radius: 12px;
  padding: 1.2rem 1rem 1rem 1rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.shape-row, .border-row, .center-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.7rem;
  flex-wrap: wrap;
}
.shape-option, .border-option, .center-option {
  background: #181a1b;
  border: 2px solid #444;
  border-radius: 8px;
  color: #f5f5f5;
  padding: 0.5rem 1.1rem;
  cursor: pointer;
  transition: border 0.2s, background 0.2s;
  font-size: 1rem;
  min-width: 90px;
  margin-bottom: 0.2rem;
}
.shape-option.selected, .border-option.selected, .center-option.selected {
  border-color: #2ecc71;
  background: #23272a;
}
input[type="color"] {
  border: none;
  background: none;
  width: 2rem;
  height: 2rem;
  margin-right: 0.5rem;
}
input[type="text"] {
  background: #181a1b;
  color: #f5f5f5;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 0.3rem 0.6rem;
  width: 90px;
  margin-left: 0.5rem;
}
label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}
#qr-content {
  width: 100%;
  font-size: 1.05rem;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  border: 1px solid #444;
  background: #181a1b;
  color: #f5f5f5;
  margin-top: 0.2rem;
}
#generate-btn {
  width: 100%;
  padding: 0.7rem 0;
  font-size: 1.1rem;
  border-radius: 8px;
  background: #2ecc71;
  color: #181a1b;
  border: none;
  font-weight: 700;
  margin-top: 0;
  cursor: pointer;
  transition: background 0.2s;
}
#generate-btn:hover {
  background: #27ae60;
}
.qr-preview-section {
  flex: 1 1 320px;
  min-width: 280px;
  max-width: 340px;
  background: #202225;
  border-radius: 12px;
  padding: 2rem 1.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-top: 0;
}
#qr-preview {
  width: 240px;
  height: auto !important;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-radius 0.2s;
  overflow: auto;
}
.download-section {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}
.download-section button {
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  border-radius: 8px;
  background: #23272a;
  color: #2ecc71;
  border: 2px solid #2ecc71;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.download-section button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.download-section button:hover:not(:disabled) {
  background: #2ecc71;
  color: #181a1b;
}
/* Logo upload section */
#logo-upload {
  margin-bottom: 0.5rem;
}
#logo-preview-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
#logo-preview {
  max-width: 80px;
  max-height: 80px;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}
#remove-logo {
  background: #e74c3c;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}
#remove-logo:hover {
  background: #c0392b;
}
#logo-size-slider {
  margin-top: 0.3rem;
  margin-bottom: 0.5rem;
}
#logo-size-value {
  font-weight: 600;
  color: #2ecc71;
  margin-left: 0.3rem;
}

/* --- Responsive improvements --- */
@media (max-width: 1100px) {
  #qr-generator {
    padding: 1.2rem 0.5rem 1rem 0.5rem;
    gap: 1.2rem;
  }
}
@media (max-width: 900px) {
  #qr-generator {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 0.2rem 1rem 0.2rem;
    gap: 0.5rem;
  }
  #qr-form, .qr-preview-section {
    max-width: 100%;
    min-width: 0;
    padding: 1rem 0.2rem;
    margin: 0 auto 1.2rem auto;
  }
  .customization-section {
    padding: 0.7rem 0.5rem 0.5rem 0.5rem;
    margin-bottom: 0.7rem;
  }
  .shape-row, .border-row, .center-row {
    flex-wrap: wrap;
    gap: 0.3rem;
  }
  .shape-option, .border-option, .center-option {
    min-width: 44vw;
    max-width: 100%;
    font-size: 1.05rem;
    padding: 0.5rem 0.2rem;
  }
  #logo-preview {
    max-width: 60px;
    max-height: 60px;
  }
  #generate-btn, .download-section button {
    font-size: 1.05rem;
    padding: 0.7rem 0;
  }
}
@media (max-width: 600px) {
  #qr-generator {
    padding: 0.2rem 0.1rem 0.2rem 0.1rem;
  }
  .qr-preview-section, #qr-form {
    padding: 0.5rem 0.1rem;
  }
  h2, h3 {
    font-size: 1.05rem;
  }
  .shape-option, .border-option, .center-option {
    min-width: 90px;
    font-size: 0.98rem;
    padding: 0.4rem 0.1rem;
  }
  #generate-btn, .download-section button {
    font-size: 0.98rem;
    padding: 0.6rem 0;
  }
  .download-section {
    flex-direction: column;
    gap: 0.7rem;
    align-items: stretch;
  }
  .download-section button {
    width: 100%;
  }
  .reset-btn {
    font-size: 0.98rem;
    padding: 0.6rem 0;
    min-width: 90px;
    margin-left: 0.4rem;
  }
}

/* --- Title redesign for QR Code Generator --- */
#qr-generator-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #2ecc71;
  margin-top: 6rem;
  margin-bottom: 2.2rem;
  text-shadow: 0 2px 12px rgba(46,204,113,0.08);
  line-height: 1.1;
}
@media (max-width: 900px) {
  #qr-generator-title {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
  }
}
@media (max-width: 600px) {
  #qr-generator-title {
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
  }
}

@media (min-width: 900px) {
  .qr-preview-section {
    position: sticky;
    top: 2.5rem;
    align-self: flex-start;
    z-index: 2;
    transition: box-shadow 0.2s, background 0.2s;
  }
}

.reset-btn {
  padding: 0.7rem 0;
  font-size: 1.1rem;
  border-radius: 8px;
  background: #f39c12;
  color: #fff;
  border: none;
  font-weight: 700;
  margin-left: 0.7rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  min-width: 120px;
  box-shadow: 0 2px 8px rgba(243, 156, 18, 0.08);
}
.reset-btn:hover, .reset-btn:focus {
  background: #e67e22;
  color: #fff;
}
.reset-btn:active {
  background: #ca760c;
  color: #fff;
}
.pwa-standalone main {
  padding-top: 0px;
}
@media (max-width: 600px) {
  .reset-btn {
    font-size: 0.98rem;
    padding: 0.6rem 0;
    min-width: 90px;
    margin-left: 0.4rem;
  }
}

.button-row {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  justify-content: flex-start;
  align-items: stretch;
}
#generate-btn, .reset-btn {
  flex: 1 1 0;
  min-width: 120px;
  max-width: 100%;
  height: 48px;
}
.reset-btn {
  margin-left: 0;
}
@media (max-width: 600px) {
  .button-row {
    flex-direction: column;
    gap: 0.7rem;
  }
  #generate-btn, .reset-btn {
    min-width: 90px;
    height: 42px;
  }
} 