/* Conduit Fill Calculator Styles */
.conduit-fill-calculator-container {
  max-width: 800px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue",
    sans-serif;
  color: #333;
  box-sizing: border-box;
}

.conduit-fill-calculator * {
  box-sizing: border-box;
}

.conduit-fill-calculator {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin: 20px 0;
}

.conduit-fill-calculator h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 24px;
  color: #333;
}

.conduit-fill-calculator p {
  margin-top: 0;
  margin-bottom: 20px;
  color: #666;
}

.calculator-section,
.wire-section {
  margin-bottom: 25px;
}

.wire-section h3 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 18px;
  color: #333;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.conduit-select,
.wire-type,
.wire-size,
.wire-quantity {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
  font-size: 16px;
}

.wire-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
  position: relative;
}

.wire-row .form-group {
  flex: 1;
  min-width: 150px;
}

.remove-wire {
  background: none;
  border: none;
  color: #ff0000;
  cursor: pointer;
  font-size: 18px;
  position: absolute;
  right: -25px;
  top: 50%;
  transform: translateY(-50%);
}

.conduit-button {
  background-color: #f5f5f5;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 10px 15px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.conduit-button:hover {
  background-color: #e9e9e9;
}

.conduit-button.primary {
  background-color: #000000;
  color: #ffffff;
  border: 1px solid #000000;
}

.conduit-button.primary:hover {
  background-color: #333333;
}

.calculator-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
}

.results-section {
  background-color: #f9f9f9;
  border-radius: 6px;
  padding: 20px;
  display: none;
}

.result-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 16px;
}

.fill-status {
  text-align: center;
  margin: 15px 0;
  font-weight: bold;
  font-size: 18px;
}

.fill-meter-container {
  margin-top: 15px;
}

.fill-meter {
  height: 25px;
  background-color: #e9e9e9;
  border-radius: 4px;
  overflow: hidden;
}

.fill-meter-bar {
  height: 100%;
  width: 0;
  background-color: #4caf50;
  transition: width 0.5s ease;
}

.fill-meter-bar.warning {
  background-color: #ffc107;
}

.fill-meter-bar.danger {
  background-color: #f44336;
}

/* Responsive styles */
@media (max-width: 768px) {
  .conduit-fill-calculator {
    padding: 15px;
  }

  .wire-row {
    flex-direction: column;
    gap: 10px;
  }

  .wire-row .form-group {
    width: 100%;
  }

  .remove-wire {
    right: 0;
    top: 0;
    transform: none;
  }

  .calculator-actions {
    flex-direction: column;
  }

  .conduit-button {
    width: 100%;
  }
}
