/**
 * Wisconsin Paycheck Calculator Styles
 * Isolated styles to prevent theme conflicts
 */

.wi-paycheck-calculator-container {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue",
    sans-serif;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.wi-paycheck-calculator-container h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

.wi-paycheck-calculator-row {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 15px;
  gap: 20px;
}

.wi-paycheck-calculator-field {
  flex: 1;
  min-width: 200px;
}

.wi-paycheck-calculator-field label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #333;
}

.wi-paycheck-calculator-field input,
.wi-paycheck-calculator-field select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  background-color: #f9f9f9;
}

.wi-paycheck-calculator-field input:focus,
.wi-paycheck-calculator-field select:focus {
  outline: none;
  border-color: #666;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
}

.wi-paycheck-calculator-button-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

#wi-calculate-button,
#wi-reset-button {
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

#wi-calculate-button {
  background-color: #000000;
  color: #ffffff;
}

#wi-reset-button {
  background-color: #f0f0f0;
  color: #333;
}

#wi-calculate-button:hover {
  background-color: #333333;
}

#wi-reset-button:hover {
  background-color: #e0e0e0;
}

.wi-paycheck-calculator-results {
  margin-top: 30px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  border-left: 4px solid #000000;
}

.wi-paycheck-calculator-results h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #333;
}

.wi-paycheck-calculator-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}

.wi-paycheck-calculator-result-item {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  background-color: #ffffff;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wi-paycheck-calculator-result-total {
  grid-column: 1 / -1;
  background-color: #f0f0f0;
  font-weight: bold;
  font-size: 1.1em;
}

.wi-paycheck-calculator-result-label {
  font-weight: 500;
}

.wi-paycheck-calculator-result-value {
  font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .wi-paycheck-calculator-row {
    flex-direction: column;
    gap: 10px;
  }

  .wi-paycheck-calculator-field {
    min-width: 100%;
  }

  .wi-paycheck-calculator-results-grid {
    grid-template-columns: 1fr;
  }
}
