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

/* Container */
.ipc-calculator-container {
  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);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue",
    sans-serif;
}

/* Title */
.ipc-calculator-title {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

/* Form */
.ipc-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ipc-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
}

.ipc-form-group {
  flex: 1;
  min-width: 200px;
}

.ipc-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #333;
}

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

.ipc-form input:focus,
.ipc-form select:focus {
  outline: none;
  border-color: #666;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.ipc-form-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}

.ipc-form button {
  padding: 12px 24px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

#ipc-calculate-btn {
  background-color: #000000;
  color: #ffffff;
}

#ipc-calculate-btn:hover {
  background-color: #333333;
}

#ipc-reset-btn {
  background-color: #f0f0f0;
  color: #333;
}

#ipc-reset-btn:hover {
  background-color: #e0e0e0;
}

/* Results */
.ipc-results {
  margin-top: 30px;
  padding: 20px;
  border-radius: 8px;
  background-color: #f9f9f9;
}

.ipc-results h3 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

.ipc-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 15px;
}

.ipc-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);
}

.ipc-net-pay {
  grid-column: 1 / -1;
  background-color: #f0f7ff;
  font-weight: bold;
  font-size: 1.1em;
}

.ipc-result-label {
  font-weight: 500;
}

.ipc-result-value {
  font-weight: 600;
}

/* Pay Period Summary */
.ipc-pay-period-summary {
  margin-top: 20px;
}

.ipc-pay-period-summary h4 {
  margin-bottom: 10px;
  text-align: center;
}

.ipc-pay-periods {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}

.ipc-pay-period {
  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);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .ipc-form-row {
    flex-direction: column;
    gap: 15px;
  }

  .ipc-form-group {
    width: 100%;
  }

  .ipc-results-grid {
    grid-template-columns: 1fr;
  }

  .ipc-pay-periods {
    grid-template-columns: 1fr;
  }
}
