* {
  margin: 0;
  padding: 0;
}

body {
  background-color: #f1f2f3;
}

.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1560px;
  min-width: 1240px;
  margin: 25px auto;
  color: #333;
}

.container * {
  box-sizing: border-box;
}

header {
  text-align: center;
  margin-bottom: 25px;
}

header h1 {
  font-size: 2.2rem;
  margin-bottom: 5px;
}

header p {
  font-size: 1rem;
  opacity: 0.9;
  max-width: 95%;
  margin: 0 auto;
}

.container h2{
  font-size: 22px;
  line-height: 1;
  margin-bottom: 15px;
}

.main-content {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.settings-panel,.preview-panel{
  width: 450px;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
}

.panel-box{
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 20px;
}

.preview-panel {
  flex: 1;
  width: calc(100% - 470px);
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #34495e;
}

input[type="number"],
input[type="text"],
select,
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box;
}

textarea {
  min-height: 250px;
  resize: vertical;
  font-size: 15px;
  line-height: 1.5;
  font-family: monospace;
}

.buttons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

button {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-generate {
  background-color: #3498db;
  color: white;
}

.btn-generate:hover {
  background-color: #2980b9;
}

.btn-download {
  background-color: #2ecc71;
  color: white;
}

.btn-download:hover {
  background-color: #27ae60;
}

.btn-reset {
  background-color: #e74c3c;
  color: white;
}

.btn-reset:hover {
  background-color: #c0392b;
}

.btn-disabled {
  background-color: #bdc3c7 !important;
  cursor: not-allowed;
}

.preview-area {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  background-color: white;
  min-height: 690px;
  max-height: 690px;
  overflow-y: auto;
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.qr-item {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  background-color: #f9f9f9;
}

.qr-item p {
  margin: 10px 0 0;
  font-size: 14px;
  word-break: break-all;
}

.notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 15px 25px;
  background-color: #2c3e50;
  color: white;
  border-radius: 5px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1000;
}

.notice.show {
  opacity: 1;
}

footer {
  font-size: 14px;
  text-align: center;
  color: #7f8c8d;
}

.features {
  display: flex;
  gap: 20px;
  text-align: left;
  margin-bottom: 25px;
}

.feature {
  flex: 1;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
}

.feature h3 {
  color: #2c3e50;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.counter {
  margin-top: 5px;
  font-size: 14px;
  color: #7f8c8d;
  text-align: right;
}

.progress-bar {
  width: 100%;
  height: 20px;
  background-color: #ecf0f1;
  border-radius: 10px;
  margin: 10px 0;
  overflow: hidden;
}

.progress {
  height: 100%;
  background-color: #3498db;
  width: 0%;
  transition: width 0.3s;
}

.loading {
  text-align: center;
  padding: 20px;
}

.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: #3498db;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
