.qr-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  padding: 20px;
  background: #091825;
  color: #fff;
  width: 100%;
  border-radius: 10px;
  box-sizing: border-box;
}

.qr-controls, .qr-preview {
  background: #13294b;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.4);
}

.qr-section { margin-bottom: 20px; }
.qr-section h3 { margin-bottom: 10px; font-size: 16px; color: #fff; }

.qr-type-list { display: flex; flex-wrap: wrap; gap: 8px; }
.qr-type-btn {
  background: #1d3557;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 5px;
  color: #fff;
  font-size: 13px;
  transition: background 0.2s;
}
.qr-type-btn.active { background: #e63946; }
.qr-type-btn:hover { background: #457b9d; }

/* Input fields general */
#qr-input, textarea, select, .qr-multi-field input {
  width: 100%;
  padding: 8px;
  background: #0b1e35;
  border: 1px solid #457b9d;
  color: #fff;
  border-radius: 5px;
  margin-bottom: 10px;
  box-sizing: border-box;
}

/* Multi-field forms */
.qr-multi-field {
  display: grid;
  gap: 8px;
}

.qr-multi-field label {
  font-size: 13px;
  color: #a8c2e0;
  display: block;
  margin-bottom: 2px;
}

.qr-multi-field .row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.qr-multi-field .row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

/* WiFi hidden checkbox */
.qr-multi-field .checkbox-field {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: -5px;
}
.qr-multi-field .checkbox-field input {
  width: auto;
  margin: 0;
}

/* Frame Wrapper */
#qr-frame-wrapper {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 10px;
  background: #fff;
  border-radius: 10px;
  margin: 10px auto;
  border: 4px solid #000;
}

#qr-result { margin-top: 20px; text-align: center; }
#qr-result canvas { display: block; margin: 0 auto; }

/* Frame Text BELOW QR */
#qr-frame-text {
  margin-top: 8px;
  text-align: center;
  font-weight: bold;
  font-size: 14px;
  color: #000;
  background: none;
  padding: 0;
  border-radius: 0;
  position: static;
}

/* Custom Frame Text Input */
#custom-frame-text {
  margin-top: 5px;
  background: #0b1e35;
  border: 1px solid #457b9d;
  color: #fff;
  padding: 6px;
  border-radius: 5px;
  width: 100%;
}

/* Buttons */
.qr-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.qr-actions button {
  padding: 8px 15px;
  background: #1d3557;
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 5px;
  transition: background 0.2s;
  flex: 1;
  min-width: 120px;
  text-align: center;
}
.qr-actions button:hover { background: #457b9d; }

/* Tabs */
.qr-design-tabs {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
}

.design-tab {
  flex: 1;
  padding: 8px;
  background: #102540;
  color: #fff;
  cursor: pointer;
  border: none;
  text-align: center;
  transition: background 0.2s;
}

.design-tab.active {
  background: #1e3a5f;
  font-weight: bold;
}

.design-content .design-panel {
  display: none;
  margin-top: 10px;
}

.design-content .design-panel.active {
  display: block;
}

/* Mobile Responsiveness */
@media(max-width: 768px) {
  .qr-container { grid-template-columns: 1fr; }
  #qr-frame-text { font-size: 12px; }
}

@media(max-width: 600px) {
  .qr-container {
    grid-template-columns: 1fr;
    padding: 10px;
    gap: 10px;
  }

  .qr-type-list {
    flex-direction: column;
  }

  .qr-type-btn {
    width: 100%;
    text-align: center;
  }

  .qr-design-tabs {
    flex-direction: column;
  }

  .qr-actions button {
    width: 100%;
  }

  #qr-frame-wrapper {
    width: 100%;
    max-width: 300px;
  }

  .qr-multi-field .row-2,
  .qr-multi-field .row-3 {
    grid-template-columns: 1fr;
  }
}
