.cbqrcode-dashboard #cbqrcode-settings-form {
  margin-top: 20px;
}

.cbqrcode-dashboard #cbqrcode-settings-form .form-group input,
.cbqrcode-dashboard #cbqrcode-settings-form .form-group select {
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 18px;
  border: 1px solid #d9d9d9;
  border-radius: 6px;
  font-size: 1rem;
}

.cbqrcode-dashboard #cbqrcode-settings-form .form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 6px;
}

.cbqrcode-dashboard {
  max-width: 1200px;
  font-family: Arial, Helvetica, sans-serif;
  color: #333;
}

.cbqrcode-dashboard #cbqrcode-preview {
  background: white;
  padding: 10px;
  display: inline-block;
  border-radius: 5px;
  text-align: center;
  margin-top: 18px;
  border: 1.5px solid #eee;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cbqrcode-dashboard #cbqrcode-preview .cbqrcode-label {
  text-align: center;
  line-height: 1.2;
  margin-bottom: 5px;
}

.cbqrcode-dashboard .dashboard-header h1 {
  font-size: 2rem;
  margin-bottom: 24px;
}

.cbqrcode-dashboard .dashboard-cards {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.cbqrcode-dashboard .cbqrcode-status-card {
  max-width: 300px;
  background: transparent;
  box-shadow: none;
}

.cbqrcode-dashboard .status-box {
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-weight: 600;
}

.cbqrcode-dashboard .status-box.warning {
  background: #fff4e5;
  color: #b26a00;
  border: 1px solid #ffd59e;
}

.cbqrcode-dashboard .status-box.success {
  background: #e6f7e6;
  color: #237804;
  border: 1px solid #b7eb8f;
}

.cbqrcode-dashboard .sticky-header {
  position: sticky;
  top: 40px;
  border-radius: 7px;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px 18px 24px;
  box-shadow: 0 0 15px 5px rgb(0 0 0 / 0%);
}

.cbqrcode-dashboard .header-left {
  display: flex;
  align-items: center;
}

.cbqrcode-dashboard .plugin-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #222;
  letter-spacing: 0.01em;
}

.cbqrcode-dashboard .header-right {
  display: flex;
  align-items: center;
}

.cbqrcode-dashboard .header-submit-btn {
  background: #222;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 28px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.cbqrcode-dashboard .header-submit-btn:hover {
  background: #ffb900;
  color: #222;
  cursor: pointer;
}

.cbqrcode-dashboard .cbqrcode-form-row {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  font-size: 12px;
}

.cbqrcode-dashboard .cbqrcode-form-row label {
  flex: 0 0 170px;
  margin-right: 14px;
  font-weight: 500;
  color: #222;
  font-size: 12px;
  line-height: 1;
}

.cbqrcode-dashboard .cbqrcode-form-row input,
.cbqrcode-dashboard .cbqrcode-form-row select {
  flex: 1 1 0%;
  font-size: 12px;
  padding: 5px 8px;
  border-radius: 5px;
  border: 1px solid #d9d9d9;
  background: #fafbfc;
  line-height: 1;
  margin-bottom: 0;
  box-sizing: border-box;
  min-width: 0;
}

.cbqrcode-dashboard .cbqrcode-form-row select {
  width: 100% !important;
  max-width: 100% !important;
  flex: 1 1 0% !important;
}

.cbqrcode-dashboard .cbqrcode-color-cols {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
}

.cbqrcode-dashboard .cbqrcode-color-cols > div > label {
  display: inline-block;
  font-size: 14px;
}

.cbqrcode-dashboard .cbqrcode-color-label {
  display: block;
  font-size: 0.89rem;
  font-weight: 400;
  margin-bottom: 4px;
  color: #555;
}

.cbqrcode-dashboard .cbqrcode-input-unit-row {
  display: flex;
  align-items: center;
  width: 100%;
}

.cbqrcode-dashboard .cbqrcode-input-unit-row input {
  flex: 1;
}

.cbqrcode-dashboard .cbqrcode-input-unit-row .cbqrcode-unit-indicator {
  margin-left: 8px;
  min-width: 24px;
  text-align: right;
  color: #888;
  font-size: 12px;
}

.cbqrcode-dashboard .cbqrcode-tabs-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.cbqrcode-dashboard .cbqrcode-tabs-nav button {
  background: #f5f5f5;
  border: 1px solid #e0e0e0;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  padding: 10px 28px;
  font-size: 1rem;
  font-weight: 600;
  color: #222;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  outline: none;
  margin-bottom: -1px;
}

.cbqrcode-dashboard .cbqrcode-tabs-nav button.active,
.cbqrcode-dashboard .cbqrcode-tabs-nav button:hover {
  background: #fff;
  color: #ffb900;
  border-bottom: 2px solid #ffb900;
  z-index: 2;
}

.cbqrcode-dashboard .cbqrcode-tab-content {
  background: #fff;
  border-radius: 0 12px 12px 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 32px 32px 24px 32px;
  margin-bottom: 24px;
  min-height: 320px;
  display: none;
}

.cbqrcode-dashboard .cbqrcode-tab-content h2 {
  font-size: 1.3rem;
  margin: 0;
  color: #222;
}

.cbqrcode-dashboard .cbqrcode-tab-content p,
.cbqrcode-dashboard .cbqrcode-tab-content label {
  font-size: 1rem;
}

.cbqrcode-dashboard .cbqrcode-tab-content a {
  color: #ffb900;
  text-decoration: underline;
}

.cbqrcode-dashboard .cbqrcode-tab-content a:hover {
  color: #222;
}

.cbqrcode-dashboard .cbqrcode-appearance-cols {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 24px;
  justify-content: space-between;
}

.cbqrcode-dashboard .cbqrcode-appearance-cols form {
  flex: 1 1 0%;
  min-width: 320px;
  max-width: 700px;
}

.cbqrcode-dashboard .cbqrcode-appearance-preview {
  margin-top: 0;
  background: #fff;
  max-width: 350px;
}

.cbqrcode-dashboard .cbqrcode-appearance-preview h3 {
  margin: 0;
}

.cbqrcode-dashboard .cbqrcode-form-row-posttypes label,
.cbqrcode-dashboard .cbqrcode-form-row-urlmode label {
  width: 100%;
  max-width: 100%;
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
  display: block;
}

.cbqrcode-dashboard .cbqrcode-form-row-checkboxes {
  display: block;
  flex-wrap: unset;
  gap: unset;
  margin-bottom: 18px;
}

.cbqrcode-dashboard .cbqrcode-form-row-checkboxes label {
  display: inline-flex;
  align-items: center;
  margin-right: 32px;
  font-size: 1rem;
  font-weight: 400;
  min-width: unset;
  cursor: pointer;
  user-select: none;
}

.cbqrcode-dashboard .cbqrcode-form-row-checkboxes input[type="checkbox"] {
  accent-color: unset;
  margin-right: 5px;
}

.cbqrcode-dashboard .cbqrcode-form-row.cbqrcode-form-row-urlmode-select {
  min-height: 30px;
}

@media (max-width: 600px) {
  .cbqrcode-dashboard .sticky-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 10px;
  }

  .cbqrcode-dashboard .header-right {
    margin-top: 10px;
    width: 100%;
    justify-content: flex-end;
  }

  .cbqrcode-dashboard .cbqrcode-form-row {
    flex-direction: column;
    align-items: stretch;
  }

  .cbqrcode-dashboard .cbqrcode-form-row label {
    margin-bottom: 6px;
    margin-right: 0;
  }

  .cbqrcode-dashboard .cbqrcode-color-cols {
    flex-direction: column;
    gap: 8px;
  }

  .cbqrcode-dashboard .cbqrcode-form-row-checkboxes {
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 900px) {
  .cbqrcode-dashboard .cbqrcode-appearance-cols {
    flex-direction: column;
    gap: 24px;
  }

  .cbqrcode-dashboard .cbqrcode-appearance-preview {
    max-width: 100%;
    width: 100%;
  }
}

.cbqrcode-dashboard .cbqrcode-media-upload-wrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.cbqrcode-dashboard .cbqrcode-media-horizontal {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.cbqrcode-dashboard .cbqrcode-selected-image-name {
  flex: 1;
  color: #666;
  font-style: italic;
  min-height: 20px;
}

.cbqrcode-dashboard .cbqrcode-media-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
}

.cbqrcode-dashboard .cbqrcode-media-preview img {
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cbqrcode-dashboard .cbqrcode-no-image {
  width: 100px;
  height: 100px;
  border: 2px dashed #ddd;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 12px;
  text-align: center;
  background-color: #fafafa;
}

.cbqrcode-dashboard .cbqrcode-media-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}

.cbqrcode-dashboard .cbqrcode-media-buttons .button {
  padding: 6px 12px;
  height: auto;
  line-height: 1.4;
}
