/* QR Code Generator Styles */
/* Hand On Web — handonweb.com */

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
}

.page-bg {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.qr-card {
  background: white;
  border-radius: 20px;
  width: 100%;
  max-width: 400px;
  padding: 32px;
  box-shadow: 0 25px 80px rgba(0,0,0,0.3);
}

/* Header */
.card-header {
  text-align: center;
  margin-bottom: 28px;
}

.icon-circle {
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    border: 1px solid #00000024;
}
.icon-circle img {
    max-width: 230px;
}

.card-header h1 {
  font-size: 22px;
  color: #1a1a2e;
  margin-bottom: 6px;
}

.card-header p {
  font-size: 14px;
  color: #888;
}

/* Input */
.input-group {
  margin-bottom: 24px;
}

.input-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #555;
  margin-bottom: 8px;
}

.input-wrapper {
  position: relative;
}

.input-wrapper input {
  width: 100%;
  padding: 12px 40px 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  color: #333;
}

.input-wrapper input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.clear-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: #e5e7eb;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.clear-btn:hover { background: #d1d5db; }

/* QR Preview */
.qr-preview {
  display: flex;
  justify-content: center;
  padding: 24px;
  background: #f8fafc;
  border-radius: 12px;
  margin-bottom: 20px;
  min-height: 200px;
  align-items: center;
}

#qr-output canvas {
  border-radius: 8px;
}

.qr-placeholder {
  color: #ccc;
  font-size: 14px;
}

/* Download button */
.actions {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.btn-download {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-download:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.btn-download:active {
  transform: translateY(0);
}

/* Footer */
.card-footer {
  text-align: center;
  font-size: 12px;
  color: #aaa;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

.card-footer a {
  color: #2563eb;
  text-decoration: none;
}
.card-footer a:hover { text-decoration: underline; }