/**
 * MIT Living Wage Calculator Styles
 */

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

/* Title */
.mit-lwc-title {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
  font-size: 28px;
  font-weight: 600;
}

/* Form */
.mit-lwc-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.mit-lwc-form-group {
  display: flex;
  flex-direction: column;
}

.mit-lwc-form-group label {
  margin-bottom: 8px;
  font-weight: 500;
}

.mit-lwc-select {
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
  font-size: 16px;
  transition: border-color 0.3s;
}

.mit-lwc-select:focus {
  outline: none;
  border-color: #666;
}

.mit-lwc-select:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
}

/* Button */
.mit-lwc-button {
  padding: 12px 20px;
  background-color: #000000;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  width: 100%;
  margin-top: 22px;
}

.mit-lwc-button:hover {
  background-color: #333333;
  transform: translateY(-2px);
}

.mit-lwc-button:active {
  transform: translateY(0);
}

/* Results */
.mit-lwc-results {
  display: none;
  margin-top: 30px;
  padding: 20px;
  border: 1px solid #eee;
  border-radius: 8px;
  background-color: #f9f9f9;
}

.mit-lwc-results.active {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}

.mit-lwc-results-header {
  margin-bottom: 20px;
  text-align: center;
}

.mit-lwc-results-header h3 {
  font-size: 22px;
  margin-bottom: 5px;
  color: #333;
}

.mit-lwc-location-display {
  font-size: 16px;
  color: #666;
}

.mit-lwc-results-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.mit-lwc-results-section {
  text-align: center;
  padding: 15px;
  background-color: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.mit-lwc-results-section h4 {
  margin-bottom: 10px;
  font-size: 16px;
  color: #555;
}

.mit-lwc-living-wage,
.mit-lwc-minimum-wage,
.mit-lwc-poverty-wage {
  font-size: 24px;
  font-weight: 600;
  color: #333;
}

.mit-lwc-living-wage {
  color: #2e7d32;
}

/* Expenses Table */
.mit-lwc-expenses {
  margin-top: 30px;
}

.mit-lwc-expenses h4 {
  margin-bottom: 15px;
  font-size: 18px;
  color: #333;
}

.mit-lwc-expenses-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.mit-lwc-expenses-table th,
.mit-lwc-expenses-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.mit-lwc-expenses-table th {
  background-color: #f5f5f5;
  font-weight: 600;
  color: #333;
}

.mit-lwc-expenses-table td {
  color: #555;
}

.mit-lwc-expense-total-row {
  background-color: #f9f9f9;
}

.mit-lwc-expense-total {
  color: #2e7d32;
}

/* Disclaimer */
.mit-lwc-disclaimer {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
  font-size: 14px;
  color: #777;
}

.mit-lwc-disclaimer p {
  margin-bottom: 10px;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
  .mit-lwc-container {
    padding: 15px;
  }

  .mit-lwc-form {
    grid-template-columns: 1fr;
  }

  .mit-lwc-results-content {
    grid-template-columns: 1fr;
  }

  .mit-lwc-expenses-table th,
  .mit-lwc-expenses-table td {
    padding: 10px;
  }
}

@media screen and (max-width: 480px) {
  .mit-lwc-title {
    font-size: 24px;
  }

  .mit-lwc-results-section {
    padding: 10px;
  }

  .mit-lwc-living-wage,
  .mit-lwc-minimum-wage,
  .mit-lwc-poverty-wage {
    font-size: 20px;
  }
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
