* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  min-height: 100vh;
  padding: 20px;
  color: #e0e0e0;
}

.container {
  max-width: 700px;
  margin: 0 auto;
  background: #2a2a2a;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

h1 {
  color: #e0e0e0;
  text-align: center;
  margin-bottom: 40px;
  font-size: 2em;
}

h2 {
  color: #ff6b6b;
  margin-top: 30px;
  margin-bottom: 20px;
  font-size: 1.3em;
  border-bottom: 2px solid #ff6b6b;
  padding-bottom: 10px;
}

.section {
  margin-bottom: 30px;
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  color: #b0b0b0;
  font-weight: 500;
}

.input-group input {
  width: 100%;
  padding: 12px;
  background: #1a1a1a;
  border: 2px solid #404040;
  border-radius: 8px;
  font-size: 16px;
  color: #e0e0e0;
  transition: border-color 0.3s;
}

.input-group input:focus {
  outline: none;
  border-color: #ff6b6b;
}

.input-group select {
  width: 100%;
  padding: 12px;
  background: #1a1a1a;
  border: 2px solid #404040;
  border-radius: 8px;
  font-size: 16px;
  color: #e0e0e0;
  transition: border-color 0.3s;
  cursor: pointer;
}

.input-group select:focus {
  outline: none;
  border-color: #ff6b6b;
}

.input-group select option {
  background: #1a1a1a;
  color: #e0e0e0;
}

/* Button Group and Buttons */
.button-group {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.button-group button {
  flex: 1;
  padding: 15px;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.calculate-btn {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(238, 90, 36, 0.3);
}

.calculate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(238, 90, 36, 0.5);
}

.calculate-btn:active {
  transform: translateY(0);
}

.reset-btn {
  background: #404040;
  color: #b0b0b0;
  border: 2px solid #505050;
  font-size: 16px;
}

.reset-btn:hover {
  background: #505050;
  color: #e0e0e0;
  transform: translateY(-1px);
}

.reset-btn:active {
  transform: translateY(0);
}

.results {
  margin-top: 40px;
  padding: 30px;
  background: #1a1a1a;
  border-radius: 15px;
  border: 2px solid #ff6b6b;
  animation: slideIn 0.5s ease;
}

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

.results.hidden {
  display: none;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  margin-bottom: 10px;
  background: #2a2a2a;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.result-item:hover {
  transform: translateX(5px);
}

.result-item.highlight {
  background: linear-gradient(135deg, #3a2a2a 0%, #4a2a2a 100%);
  border: 2px solid #ff6b6b;
}

.result-label {
  font-weight: 600;
  color: #b0b0b0;
}

.result-value {
  font-size: 1.3em;
  font-weight: bold;
  color: #ff6b6b;
  margin-right: 8px;
}

.result-unit {
  color: #808080;
  font-size: 0.9em;
}

.button-group {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

  h1 {
    font-size: 1.5em;
  }

  .result-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}
