/* Reset & Base */
* {
  box-sizing: border-box;
  font-family: 'Inter', Arial, sans-serif;
  margin: 0;
  padding: 0;
}

/*body {*/
/*  background: linear-gradient(135deg, #e0eafc, #cfdef3);*/
/*  display: flex;*/
/*  justify-content: center;*/
/*  align-items: flex-start;*/
/*  min-height: 100vh;*/
/*  padding: 40px 20px;*/
/*}*/

/* Calculator Container */
.calculator-container {
  background: #ffffff;
  padding: 40px 30px;
  border-radius: 16px;
  max-width: 100%;
  width: 100%;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.calculator-container:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

h1 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2em;
  color: #1f3a93;
  letter-spacing: 0.5px;
}

/* Input Groups */
.input-group {
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
}

.input-group label {
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-size: 0.95em;
}

.input-group input,
.input-group select {
  padding: 12px 14px;
  font-size: 1em;
  border-radius: 10px;
  border: 1px solid #ccc;
  transition: all 0.3s ease;
  outline: none;
}

.input-group input:focus,
.input-group select:focus {
  border-color: #1f3a93;
  box-shadow: 0 0 8px rgba(31, 58, 147, 0.2);
  background-color: #f5f8ff;
}

.input-group input[readonly] {
  background: #f0f3f7;
  cursor: not-allowed;
}

/* Buttons */
.button-group {
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
  gap: 10px;
}

.button-group button {
  flex: 1;
  padding: 12px 15px;
  font-size: 1em;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  color: white;
  background: linear-gradient(135deg, #1f3a93, #4e73df);
  transition: all 0.3s ease;
  box-shadow: 0 6px 16px rgba(78, 115, 223, 0.3);
}

.button-group button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(78, 115, 223, 0.35);
}

/* Dynamic Result Text */
#result-text {
  margin-top: 28px;
  font-weight: 600;
  color: #1f3a93;
  font-size: 1.05em;
  text-align: center;
  min-height: 24px;
  transition: all 0.3s ease;
}

/* Custom Density Show/Hide */
#custom-density-group {
  transition: all 0.3s ease;
}

/* Responsive */
@media(max-width: 500px){
  .button-group {
    flex-direction: column;
  }
}