/* Custom styles for the mixing calculator */

/* ServiceZoid Promo Banner Styles */
.sz-promo-container {
  background-color: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 24px;
  margin: 30px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.sz-promo-content {
  flex: 1 1 300px;
  margin-right: 20px;
}

.sz-promo-content h3 {
  margin-top: 0;
  margin-bottom: 8px;
  color: #0f172a;
  font-size: 1.25rem;
}

.sz-promo-content p {
  margin: 0;
  color: #334155;
  line-height: 1.5;
}

.sz-promo-action {
  flex: 0 0 auto;
  text-align: center;
  margin-top: 10px;
}

.sz-promo-button {
  display: inline-block;
  background-color: #0d6efd;
  color: #ffffff !important;
  padding: 12px 24px;
  text-decoration: none !important;
  border-radius: 6px;
  font-weight: 700;
  transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
  margin-bottom: 8px;
  box-shadow: 0 2px 4px rgba(13, 110, 253, 0.3);
}

.sz-promo-button:hover {
  background-color: #0b5ed7;
  color: #ffffff !important;
  text-decoration: none !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(13, 110, 253, 0.4);
}

.sz-promo-button:visited,
.sz-promo-button:active,
.sz-promo-button:focus {
  color: #ffffff !important;
  text-decoration: none !important;
}

.sz-promo-action small {
  display: block;
  color: #64748b;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .sz-promo-container {
    flex-direction: column;
    text-align: center;
  }

  .sz-promo-content {
    margin-right: 0;
    margin-bottom: 20px;
  }

  .sz-promo-action {
    margin-top: 0;
  }
}

/* Reduce button height and add spacing */
.calculator-container .btn {
  padding: 0.25rem 0.5rem;
  margin-right: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
  height: auto;
}

/* Specific styling for toggle buttons */
.calculator-container .btn-group .btn {
  padding: 0.2rem 0.4rem;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  height: calc(1.5em + 0.5rem + 2px); /* Match input height */
}

/* Style for active toggle button */
.calculator-container .btn-check:checked + .btn-outline-primary {
  background-color: #0d6efd;
  color: white;
  border-color: #0d6efd;
}

/* Fix border radius for toggle buttons */
.calculator-container .btn-group .btn:last-child {
  border-top-right-radius: 0.25rem !important;
  border-bottom-right-radius: 0.25rem !important;
}

/* Ensure radio buttons are completely hidden */
.calculator-container .btn-check {
  position: absolute;
  clip: rect(0, 0, 0, 0);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

/* Adjust spacing for component rows */
.component-row {
  margin-bottom: 1rem;
}

/* Ensure proper alignment in component rows */
.component-row .d-flex.align-items-center {
  height: auto;
  min-height: 32px;
}

/* Add spacing between inputs and buttons */
.component-row .me-3 {
  margin-right: 0.75rem !important;
}

/* Make remove button more compact */
.remove-component {
  padding: 0.15rem 0.5rem !important;
  font-size: 0.875rem !important;
  height: auto !important;
  line-height: 1.2 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Adjust add component button */
#addComponentBtn {
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
}

/* Adjust input group spacing and alignment */
.calculator-container .input-group {
  align-items: center;
  display: flex;
}

/* Ensure proper spacing between elements */
.calculator-container .ms-2 {
  margin-left: 0.75rem !important;
}

/* Adjust form control height */
.calculator-container .form-control-sm {
  height: calc(1.5em + 0.5rem + 2px);
  padding: 0.25rem 0.5rem;
}
