/* Styles for the Text to QR Code generator */

:root {
  --primary: #9333ea;
  --primary-hover: #7e22ce;
  --secondary: #f9f5ff;
  --text-dark: #1f2937;
  --text-light: #4b5563;
  --border: #ddd;
}

.textqr-container {
  background: var(--secondary);
  max-width: 560px;
  margin: 1.5rem auto;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  font-family: Arial, sans-serif;
  color: var(--text-dark);
}

.textqr-container h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.6rem;
  color: var(--primary);
}

.textqr-desc {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: var(--text-light);
}

.textqr-row {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}

.textqr-row label {
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.textqr-row textarea {
  min-height: 120px;
  resize: vertical;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 1rem;
  font-family: sans-serif;
}

/* Style the select dropdown similarly to the textarea */
.textqr-row select {
  padding: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 1rem;
  font-family: sans-serif;
  background: #fff;
}

.textqr-row select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(147,51,234,0.2);
  outline: none;
}

.textqr-row textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(147,51,234,0.2);
  outline: none;
}

/* Error message styling */
.textqr-error {
  color: #e11d48; /* red */
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: none;
}

#textqr-generate,
#textqr-copy-string,
#textqr-download,
#textqr-share {
  display: inline-block;
  width: 100%;
  margin-top: 0.5rem;
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s;
}

#textqr-generate:hover,
#textqr-copy-string:hover,
#textqr-download:hover,
#textqr-share:hover {
  background: var(--primary-hover);
}

.textqr-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

#textqr-result {
  margin-top: 1.5rem;
  text-align: center;
}

#textqr-qrcode {
  margin-bottom: 0.5rem;
  display: inline-block;
}

#textqr-string {
  display: block;
  padding: 0.5rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 4px;
  word-break: break-all;
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.textqr-disclaimer {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-light);
  text-align: center;
}

@media (max-width: 600px) {
  .textqr-container {
    padding: 1rem;
  }
  #textqr-generate,
  #textqr-copy-string,
  #textqr-download,
  #textqr-share {
    font-size: 0.95rem;
    padding: 0.5rem;
  }
}