.salary-calculator {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  width: 100%;
  margin: 0 auto;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.salary-calculator h1 {
  font-size: 1.5rem;
  color: #1f2937;
  margin-bottom: 1.5rem;
  text-align: center;
  animation: slideIn 0.5s ease-in-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.input-group {
  margin-bottom: 1.5rem;
  animation: fadeIn 0.5s ease-in-out;
}

.input-group label {
  display: block;
  font-size: 0.875rem;
  color: #4b5563;
  margin-bottom: 0.5rem;
}

.input-group input[type="number"],
.input-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  color: #1f2937;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group input[type="number"]:focus,
.input-group select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  outline: none;
}

.input-group input[type="range"] {
  width: 100%;
  margin-top: 0.5rem;
  transition: opacity 0.3s ease;
}

.input-group input[type="range"]:hover {
  opacity: 1;
}

.result {
  margin-top: 1.5rem;
  padding: 1rem;
  background-color: #f3f4f6;
  border-radius: 8px;
  animation: fadeIn 0.5s ease-in-out;
}

.result h2 {
  font-size: 1.25rem;
  color: #1f2937;
  margin-bottom: 1rem;
}

#resultText {
  font-size: 1rem;
  color: #4b5563;
  margin: 0.5rem 0;
  font-weight: bold;
  color: #10b981;
  animation: popIn 0.3s ease-in-out;
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}