.generator-main {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #b7bee0 0%, #c5b6d2d9 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.generator-container {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  padding: 40px;
  max-width: 550px;
  width: 100%;
}

.generator-header {
  text-align: center;
  margin-bottom: 30px;
}

.generator-header h1 {
  font-size: 28px;
  color: #333;
  margin-bottom: 8px;
}

.generator-header p {
  color: #666;
  font-size: 14px;
}

.input-group {
  margin-bottom: 25px;
}

.input-group label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 10px;
  font-size: 14px;
}

.input-group input {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 16px;
  transition: all 0.3s ease;
}

.input-group input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 25px;
}

.option {
  display: flex;
  flex-direction: column;
}

.option label {
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  font-size: 13px;
}

.option select,
.option input[type="color"] {
  padding: 10px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.option input[type="color"] {
  padding: 8px;
  height: 42px;
  cursor: pointer;
}

.option select:focus {
  outline: none;
  border-color: #667eea;
}

.qr-display {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 25px;
  min-height: 280px;
  background: #f8f9fa;
  border-radius: 15px;
  padding: 20px;
}

#qrcode {
  display: flex;
  justify-content: center;
  align-items: center;
}

#qrcode canvas {
  max-width: 100%;
  height: auto;
}

.placeholder {
  text-align: center;
  color: #999;
  font-size: 14px;
}

.button-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

button {
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-download {
  background: #ffd700;
  color: #120e0e;
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-download:active {
  transform: translateY(0);
}

.btn-clear {
  background: #d23c2b;
  color: #fff;
  border: none;
}

.btn-clear:hover {
  background: #6d405d;
}

.info {
  background: #f6f7f4;
  border-left: 4px solid #66964d;
  padding: 12px 15px;
  border-radius: 8px;
  font-size: 13px;
  color: #100707;
  margin-top: 25px;
}

.info strong {
  color: #1d2c71;
}

/* Responsive Design */
@media (max-width: 600px) {
  .generator-main {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin: 0;
  }
  
  .generator-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    max-width: 550px;
    width: 100%;
  }
  .generator-container {
      padding: 25px;
      border-radius: 15px;
  }

  .generator-header h1 {
      font-size: 24px;
  }

  .options {
      grid-template-columns: 1fr;
  }

  .button-group {
      grid-template-columns: 1fr;
  }

  .qr-display {
      min-height: 250px;
  }
}

.loading {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #667eea;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
      opacity: 1;
  }
  50% {
      opacity: 0.5;
  }
}