* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

button:focus {
  background-color: transparent;
  color: #333333;
}

/* .config-container {
            max-width: 600px;
            margin: 0 auto;
            background: white;
            border-radius: 8px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            overflow: hidden;
        } */

/* Tabs */
.tabs-header {
  display: flex;
  gap: 30px;
}

.tab-button {
  padding: 10px 50px;
  border: none;
  background: #fbfeff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  background-image: linear-gradient(180deg, #009cdf 0%, #054a81 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: all 0.3s ease;
  border-radius: 10px;
  position: relative;
  top: 2px;
}

.tab-button.active {
  color: #fff;
  -webkit-text-fill-color: #ffffff;
  background: white;
  background: linear-gradient(180deg, #009cdf 0%, #054a81 100%);
}

.tab-button:disabled {
  background: #fbfeff;
  cursor: not-allowed;
  background-image: linear-gradient(180deg, #009cdf 0%, #054a81 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tab-button:not(:disabled):hover:not(.active) {
  color: #fff;
  -webkit-text-fill-color: #ffffff;
  background: white;
  background: linear-gradient(180deg, #009cdf 0%, #054a81 100%);
}

/* Tab Content */
.tabs-content {
  padding: 20px 0px;
}

.form-group-container {
  display: flex;
  gap: 30px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.form-group select.selected,
.kw-selector select.selected {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  padding: 10px 40px 10px 12px;

  background: linear-gradient(
    180deg,
    rgba(0, 156, 223, 0.15) 21.15%,
    rgba(5, 74, 129, 0.15) 100%
  );
  background-repeat: no-repeat, no-repeat;
  background-position: center;

  transition: 0.3s ease;
  color: #000;
}

.form-group select.selected:focus,
.kw-selector select.selected:focus {
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  padding: 10px 40px 10px 12px;
  background-color: #f5f5f5;

  transition: 0.3s ease;
}

.form-group-container .form-group:first-child select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  padding: 10px 40px 10px 12px;
  /* right side space arrow ke liye */

  background-color: #d1fae5;

  color: #000;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Form Elements */
.form-group {
  margin-bottom: 20px;
}

.form-group:last-child {
  margin-bottom: 0;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  font-size: 14px;
  background: white;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;

  padding-right: 36px;
}

select:hover:not(:disabled) {
  background: linear-gradient(
    180deg,
    rgba(0, 156, 223, 0.15),
    rgba(5, 74, 129, 0.15)
  );
  background-repeat: no-repeat, no-repeat;
}

select:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

select:disabled {
  background-color: #f5f5f5;
  color: #999;
  cursor: not-allowed;
  opacity: 0.6;
  border-color: #e0e0e0;
}

select option {
  padding: 8px;
}

select option:first-child {
  color: #999;
}

/* Buttons */
.button-group {
  display: flex;
  gap: 12px;
  margin-top: 15px;
  /* padding-top: 16px; */
  /*     border-top: 1px solid #e0e0e0; */
}

button.generate-btn {
  padding: 12px 20px;
  background: linear-gradient(180deg, #009cdf 0%, #054a81 100%);

  color: white;
  border: none;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

button.generate-btn:hover:not(:disabled) {
  background: linear-gradient(180deg, #0085c7 0%, #043b66 100%);

  /* transform: translateY(-1px); */
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
}

button.generate-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Success Message */
.success-message {
  padding: 14px 16px;
  background: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: 6px;
  color: #155724;
  font-size: 14px;
  margin-top: 16px;
  display: none;
}

.success-message.show {
  display: block;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 480px) {
  .config-container {
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .tabs-content {
    padding: 16px;
  }

  .tab-button {
    font-size: 13px;
    padding: 12px;
  }

  button.generate-btn {
    font-size: 14px;
  }
}

.field-error {
  color: #ff4d4d;
  font-size: 13px;
  margin-top: 5px;
  display: none;
}

.field-error.show {
  display: block;
}

select.error {
  border: 1px solid #ff4d4d;
}

/* config shortcut */

.config-container {
  max-width: 900px;
  margin: 0 auto;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Select kW at top */
.kw-selector {
  /* margin-bottom: 20px; */
  display: flex;
	margin: 0px !important;
  gap: 20px;
}

.kw-selector .form-group {
  flex: 1;
  max-width: 250px;
}

.kw-selector select {
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  width: 100%;
}

/* Main Tabs */
.main-tabs-header {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
}

.main-tab-button {
  padding: 12px 30px;
  background: white;
  border: none;

  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: #666;
  transition: all 0.3s ease;
}

.main-tab-button:hover:not(:disabled) {
  color: #0066cc;
}

.main-tab-button.active {
  background:
    linear-gradient(
      180deg,
      rgba(0, 156, 223, 0.15) 21.15%,
      rgba(5, 74, 129, 0.15) 100%
    ),
    url("data:image/svg+xml;utf8,<svg fill='%23054A81' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat, no-repeat;

  color: #000;
}

.main-tab-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Main Tab Content */
.main-tab-content {
  display: none;
}

.main-tab-content.active {
  display: block;
}

/* Sub Tabs */
.sub-tabs-header {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  align-items: center;
  margin-top: 10px;
  flex-wrap: wrap;
}

.sub-tab-button {
  padding: 10px 20px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  color: #333;
  transition: all 0.3s ease;
}

.sub-tab-button:hover:not(:disabled) {
  border-color: #0066cc;
  color: #0066cc;

  background: linear-gradient(
    180deg,
    rgba(0, 156, 223, 0.15),
    rgba(5, 74, 129, 0.15)
  );
}

.sub-tab-button.active {
  background: white;
  border: 1px solid;

  border-image-slice: 1;

  color: #0066cc;
  font-weight: 600;

  background: linear-gradient(
    180deg,
    rgba(0, 156, 223, 0.15),
    rgba(5, 74, 129, 0.15)
  );
}

.sub-tab-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Sub Tab Content */
.sub-tab-content {
  display: none;
  /*     margin-bottom: 25px; */
}

.sub-tab-content.active {
  display: block;
}

/* Form Groups */
.form-group {
  margin-bottom: 0px;
}

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

.form-group select {
  width: 100%;
  padding: 10px 40px 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background-color: #d1fae5;
  appearance: none;

  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
}

.main-tab-button {
  position: relative;
  padding: 10px 50px;
  border-radius: 10px;
}
#dcdbTabBtn {
  margin-top: 10px;
  border: 1px solid #054a81;
}

.main-tab-button:hover {
  background: linear-gradient(180deg, #009cdf 0%, #054a81 100% 100%);
  padding: 10px 50px;
  border-radius: 10px;
  color: #fff;
  -webkit-text-fill-color: #fff;
}

.main-tab-button {
  padding: 10px 50px;
  border-radius: 10px;
}
.main-tab-button.active {
  background: linear-gradient(180deg, #009cdf 0%, #054a81 100% 100%);
  padding: 10px 50px;
  border-radius: 10px;

  color: #fff;
  -webkit-text-fill-color: #fff;
}

/* Arrow Separate */
/* .main-tab-button.active::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;

    background: url("data:image/svg+xml;utf8,<svg fill='%23054A81' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>") no-repeat center;
    
} */

.form-group select:hover:not(:disabled) {
  border-color: #0066cc;
}

.form-group select:focus {
  outline: none;
  border-color: #0066cc;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group select:disabled {
  background: #f5f5f5;
  color: #999;
  cursor: not-allowed;
}

/* Checkbox */
.checkbox-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0px;
}

.checkbox-group input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.checkbox-group label {
  margin: 0;
  font-weight: 500;
  cursor: pointer;
}

/* Buttons */
.button-group {
  margin-top: 0px;
  display: flex;
  gap: 10px;
}

.generate-btn {
  padding: 14px 30px;
  background: #0066cc;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.generate-btn:hover:not(:disabled) {
  background: #0052a3;
}

.generate-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}

/* Success Message */
.success-message {
  display: none;
  background: #d4edda;
  border: 1px solid #28a745;
  color: #155724;
  padding: 15px;
  border-radius: 4px;
  margin-top: 20px;
}

.success-message.show {
  display: block;
}

/* Number of Strings Section */
.strings-selector {
  margin-bottom: 30px;
}

.strings-selector .form-group {
  max-width: 300px;
}

/* Field error message (same as electrical_config) */
.field-error {
  color: #ff4d4d;
  font-size: 13px;
  margin-top: 5px;
  display: none;
}

.field-error.show {
  display: block;
}

.form-group select.error {
  border: 1px solid #ff4d4d;
}

.ug-thumb-overlay {
  border-radius: 5px;
}

.ug-thumb-overlay:hover {
  border-radius: 5px;
}
.ug-strip-panel .ug-strip-arrow-left.ug-skin-default,
.ug-strip-panel .ug-strip-arrow-right.ug-skin-default {
  background: #054a81;
}

/* select#dcdbStrings {
  margin: 11px 0px;
} */

.checkbox-group > div {
  display: flex;
  align-items: center;
  gap: 6px;
}

.kw-selector {
  margin-bottom: 20px;
  display: flex;
  gap: 20px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.radio-option input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  margin: 0;
}

.radio-option label {
  margin: 0;
  cursor: pointer;
}

#solar-dcdb-header {
  margin-top: 10px;
}

.field-note {
  display: none;
  font-size: 13px;
  color: #209864;
  margin-top: 4px;
  font-weight: 500;
}
.form-group:has(.select-wrapper select:not(:disabled):not(.error)) .field-note {
  display: block;
}

/* Custom Arrow Styles */
.select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.custom-arrow {
  position: absolute;
  right: 15px;
  pointer-events: none;
  transition: transform 0.3s ease;
  display: flex;
}
.select-wrapper select:focus ~ .custom-arrow,
.select-wrapper select:active ~ .custom-arrow {
  transform: rotate(180deg);
}

/* --- Solar Configurator UI Overhaul --- */

#solar-config-container {
  max-width: 800px;
  margin: 0 auto;
  font-family:
    -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  color: #333;
}

#solar-config-container .step-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

#solar-config-container .step-header {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  background: #fdfdfd;
  border-bottom: 1px solid #f0f0f0;
}

#solar-config-container .step-icon {
  width: 25px;
  height: 25px;
  background: #0076c0;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  margin-right: 15px;
  flex-shrink: 0;
}

#solar-config-container .step-title-wrap {
  display: flex;
  flex-direction: column;
}

#solar-config-container .step-title {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin: 0;
}

#solar-config-container .step-subtitle {
  font-weight: 500;
  color: #888;
  font-size: 14px;
  margin-left: 8px;
}

#solar-config-container .step-desc {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}

#solar-config-container .step-body {
  padding: 10px 15px;
  background: #ffffff;
}

/* Form groups and Selects */
#solar-config-container .form-group-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

#solar-config-container .form-group {
  flex: 1;
  min-width: 200px;
  margin-bottom: 0px;
}

#solar-config-container select {
  width: 100%;
  padding: 12px 40px 12px 16px;
  border: 1px solid #dcdfe6;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  background: #dbeafe !important;
  background-image: none !important; /* overriding old linear gradients */
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

#solar-config-container select:hover:not(:disabled) {
  border-color: #0076c0;
}

#solar-config-container select:disabled {
  background-color: #f5f7fa !important;
  color: #999;
  cursor: not-allowed;
  border-color: #e4e7ed;
}

#solar-config-container .select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

#solar-config-container .custom-arrow {
  position: absolute;
  right: 16px;
  pointer-events: none;
  display: flex;
}

/* "Setup" Toggles */
#solar-config-container .setup-toggle-container {
  display: flex;
  gap: 15px;
}

#solar-config-container .setup-toggle-btn {
  flex: 1;
  padding: 9px;
  background: #ffffff;
  border: 1px solid #dcdfe6;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

#solar-config-container .setup-toggle-btn.active {
  background: #dbeafe;
  border: 1px solid #dbeafe;
  color: #333;
}

/* DCDB Toggles (Sub Tabs) */
#solar-config-container .dcdb-toggles {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  margin-bottom: 20px;
}

#solar-config-container .dcdb-type-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 10px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

#solar-config-container .dcdb-type-btn.active {
  background: #dbeafe;
  border: 1px solid #dbeafe;
}

#solar-config-container .dcdb-type-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #f5f7fa;
}

#solar-config-container .dcdb-check {
  /* margin-bottom: 8px; */
}

#solar-config-container .dcdb-type-btn.active .dcdb-check svg circle {
  fill: #0076c0;
}
#solar-config-container .dcdb-type-btn:not(.active) .dcdb-check svg circle {
  fill: #dcdfe6;
}

#solar-config-container .dcdb-btn-text {
  font-size: 15px;
  font-weight: bold;
  color: #333;
  display: flex;
  margin-bottom: 4px;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  justify-content: center;
}
#solar-config-container .dcdb-btn-sub {
  font-size: 12px;
  color: #7f8c8d;
  font-weight: 500;
}

/* Radio Buttons for Side Configuration */
#solar-config-container .side-config-title {
  font-size: 14px;
  font-weight: 500;
  color: #555;
  margin-top: 24px;
  margin-bottom: 12px;
}

#solar-config-container .custom-radio-group {
  display: flex;
  gap: 15px;
}

#solar-config-container .custom-radio-btn {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

#solar-config-container .custom-radio-btn input[type="radio"] {
  display: none;
}

#solar-config-container .radio-circle {
  width: 16px;
  height: 16px;
  border: 2px solid #ccc;
  border-radius: 50%;
  margin-right: 10px;
  position: relative;
  display: inline-block;
  transition: all 0.2s;
}

#solar-config-container
  .custom-radio-btn
  input[type="radio"]:checked
  ~ .radio-circle {
  border-color: #0076c0;
}

#solar-config-container
  .custom-radio-btn
  input[type="radio"]:checked
  ~ .radio-circle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: #0076c0;
  border-radius: 50%;
}

#solar-config-container .custom-radio-btn.active,
#solar-config-container .custom-radio-btn:has(input[type="radio"]:checked) {
  background: #dbeafe;
  border-color: #dbeafe;
  color: #333;
}

#solar-config-container
  .custom-radio-btn
  input[type="radio"]:disabled
  ~ .radio-circle {
  border-color: #e4e7ed;
  background-color: #f5f7fa;
}

/* Submit Button */
#solar-config-container .custom-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0076c0;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
  box-shadow: 0 4px 12px rgba(0, 118, 192, 0.2);
}

#solar-config-container .custom-submit-btn:hover:not(:disabled) {
  background: #005b92;
}

#solar-config-container .custom-submit-btn:disabled {
  background: #a0c4d8;
  cursor: not-allowed;
  box-shadow: none;
}

#solar-config-container .btn-arrow-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #ffffff;
  border-radius: 50%;
  margin-left: 12px;
}

#solar-config-container select.selected {
  background-color: #dbeafe !important;
  border-color: #dcdfe6;
  color: #333;
}

/* Cleanup existing redundant displays inside steps if not needed */
#solar-config-container .kw-selector .form-group {
  max-width: 100%;
}

#solar-config-container .flex-row {
  display: flex;
  gap: 15px;
}

/* ===== Step Lock UX ===== */

/* Locked card — grayed header + reduced body opacity */
#solar-config-container .step-card.step-locked .step-header {
  background: #f3f4f6;
  border-bottom-color: #e5e7eb;
}

#solar-config-container .step-card.step-locked .step-icon {
  background: #9ca3af;
}

#solar-config-container .step-card.step-locked .step-title,
#solar-config-container .step-card.step-locked .step-subtitle,
#solar-config-container .step-card.step-locked .step-desc {
  color: #9ca3af;
}

#solar-config-container .step-card.step-locked .step-body {
  opacity: 0.45;
  pointer-events: none;
}

/* Lock icon shown in header when card is locked */
#solar-config-container .step-lock-icon {
  display: none;
  margin-left: auto;
  color: #9ca3af;
}

#solar-config-container .step-card.step-locked .step-lock-icon {
  display: flex;
  align-items: center;
}

#solar-config-container .step-card.step-locked {
  cursor: not-allowed;
}

/* Shake animation when user clicks a locked card */
@keyframes solar-shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-6px); }
  40%       { transform: translateX(6px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}

#solar-config-container .step-card.step-shake {
  animation: solar-shake 0.4s ease;
}

/* Toast / hint message */
#solar-step-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1e293b;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 30px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 99999;
  white-space: nowrap;
}

#solar-step-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}




/* --- Single Phase UI Overhaul (Copied from Solar) --- */
/* --- Solar Configurator UI Overhaul --- */

#electrical-config-container {
  max-width: 800px;
  margin: 0 auto;
  font-family:
    -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  color: #333;
}

#electrical-config-container .step-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  margin-bottom: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
  overflow: hidden;
}

#electrical-config-container .step-header {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  background: #fdfdfd;
  border-bottom: 1px solid #f0f0f0;
}

#electrical-config-container .step-icon {
  width: 25px;
  height: 25px;
  background: #0076c0;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  margin-right: 15px;
  flex-shrink: 0;
}

#electrical-config-container .step-title-wrap {
  display: flex;
  flex-direction: column;
}

#electrical-config-container .step-title {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin: 0;
}

#electrical-config-container .step-subtitle {
  font-weight: 500;
  color: #888;
  font-size: 14px;
  margin-left: 8px;
}

#electrical-config-container .step-desc {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}

#electrical-config-container .step-body {
  padding: 16px 15px;
  background: #ffffff;
}

/* Form groups and Selects */
#electrical-config-container .form-group-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

#electrical-config-container .form-group {
  flex: 1;
  min-width: 200px;
  margin-bottom: 0px;
}

#electrical-config-container select {
  width: 100%;
  padding: 12px 40px 12px 16px;
  border: 1px solid #dcdfe6;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  background: #dbeafe !important;
  background-image: none !important; /* overriding old linear gradients */
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease;
}

#electrical-config-container select:hover:not(:disabled) {
  border-color: #0076c0;
}

#electrical-config-container select:disabled {
  background-color: #f5f7fa !important;
  color: #999;
  cursor: not-allowed;
  border-color: #e4e7ed;
}

#electrical-config-container .select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

#electrical-config-container .custom-arrow {
  position: absolute;
  right: 16px;
  pointer-events: none;
  display: flex;
}

/* "Setup" Toggles */
#electrical-config-container .setup-toggle-container {
  display: flex;
  gap: 15px;
}

#electrical-config-container .setup-toggle-btn {
  flex: 1;
  padding: 9px;
  background: #ffffff;
  border: 1px solid #dcdfe6;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #555;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

#electrical-config-container .setup-toggle-btn.active {
  background: #dbeafe;
  border: 1px solid #dbeafe;
  color: #333;
}

/* DCDB Toggles (Sub Tabs) */
#electrical-config-container .dcdb-toggles {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  margin-bottom: 20px;
}

#electrical-config-container .dcdb-type-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 10px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

#electrical-config-container .dcdb-type-btn.active {
  background: #dbeafe;
  border: 1px solid #dbeafe;
}

#electrical-config-container .dcdb-type-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: #f5f7fa;
}

#electrical-config-container .dcdb-check {
  /* margin-bottom: 8px; */
}

#electrical-config-container .dcdb-type-btn.active .dcdb-check svg circle {
  fill: #0076c0;
}
#electrical-config-container .dcdb-type-btn:not(.active) .dcdb-check svg circle {
  fill: #dcdfe6;
}

#electrical-config-container .dcdb-btn-text {
  font-size: 15px;
  font-weight: bold;
  color: #333;
  display: flex;
  margin-bottom: 4px;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  justify-content: center;
}
#electrical-config-container .dcdb-btn-sub {
  font-size: 12px;
  color: #7f8c8d;
  font-weight: 500;
}

/* Radio Buttons for Side Configuration */
#electrical-config-container .side-config-title {
  font-size: 14px;
  font-weight: 500;
  color: #555;
  margin-top: 24px;
  margin-bottom: 12px;
}

#electrical-config-container .custom-radio-group {
  display: flex;
  gap: 15px;
}

#electrical-config-container .custom-radio-btn {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}

#electrical-config-container .custom-radio-btn input[type="radio"] {
  display: none;
}

#electrical-config-container .radio-circle {
  width: 16px;
  height: 16px;
  border: 2px solid #ccc;
  border-radius: 50%;
  margin-right: 10px;
  position: relative;
  display: inline-block;
  transition: all 0.2s;
}

#electrical-config-container
  .custom-radio-btn
  input[type="radio"]:checked
  ~ .radio-circle {
  border-color: #0076c0;
}

#electrical-config-container
  .custom-radio-btn
  input[type="radio"]:checked
  ~ .radio-circle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: #0076c0;
  border-radius: 50%;
}

#electrical-config-container .custom-radio-btn.active,
#electrical-config-container .custom-radio-btn:has(input[type="radio"]:checked) {
  background: #dbeafe;
  border-color: #dbeafe;
  color: #333;
}

#electrical-config-container
  .custom-radio-btn
  input[type="radio"]:disabled
  ~ .radio-circle {
  border-color: #e4e7ed;
  background-color: #f5f7fa;
}

/* Submit Button */
#electrical-config-container .custom-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0076c0;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
  box-shadow: 0 4px 12px rgba(0, 118, 192, 0.2);
}

#electrical-config-container .custom-submit-btn:hover:not(:disabled) {
  background: #005b92;
}

#electrical-config-container .custom-submit-btn:disabled {
  background: #a0c4d8;
  cursor: not-allowed;
  box-shadow: none;
}

#electrical-config-container .btn-arrow-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #ffffff;
  border-radius: 50%;
  margin-left: 12px;
}

#electrical-config-container select.selected {
  background-color: #dbeafe !important;
  border-color: #dcdfe6;
  color: #333;
}

/* Cleanup existing redundant displays inside steps if not needed */
#electrical-config-container .kw-selector .form-group {
  max-width: 100%;
}

#electrical-config-container .flex-row {
  display: flex;
  gap: 15px;
}

/* ===== Step Lock UX ===== */

/* Locked card — grayed header + reduced body opacity */
#electrical-config-container .step-card.step-locked .step-header {
  background: #f3f4f6;
  border-bottom-color: #e5e7eb;
}

#electrical-config-container .step-card.step-locked .step-icon {
  background: #9ca3af;
}

#electrical-config-container .step-card.step-locked .step-title,
#electrical-config-container .step-card.step-locked .step-subtitle,
#electrical-config-container .step-card.step-locked .step-desc {
  color: #9ca3af;
}

#electrical-config-container .step-card.step-locked .step-body {
  opacity: 0.45;
  pointer-events: none;
}

/* Lock icon shown in header when card is locked */
#electrical-config-container .step-lock-icon {
  display: none;
  margin-left: auto;
  color: #9ca3af;
}

#electrical-config-container .step-card.step-locked .step-lock-icon {
  display: flex;
  align-items: center;
}

#electrical-config-container .step-card.step-locked {
  cursor: not-allowed;
}

/* Shake animation when user clicks a locked card */
@keyframes solar-shake {
  0%, 100% { transform: translateX(0); }
  20%       { transform: translateX(-6px); }
  40%       { transform: translateX(6px); }
  60%       { transform: translateX(-4px); }
  80%       { transform: translateX(4px); }
}

#electrical-config-container .step-card.step-shake {
  animation: solar-shake 0.4s ease;
}

/* Toast / hint message */
#solar-step-toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1e293b;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: 30px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 99999;
  white-space: nowrap;
}

#solar-step-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}



