/* Body and Container Styling */
body {
  background: #121212;
  color: #e0e0e0;
  font-family: "Arial", sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  transition: background 0.3s ease;
}

.container {
  text-align: center;
  padding: 20px;
}

/* Title and Paragraph Styling */
h1 {
  font-size: 2rem;
  color: #00bcd4;
  margin-bottom: 15px;
  text-shadow: 1px 1px 0 #000;
}

p {
  font-size: 1rem;
  margin-bottom: 20px;
}

/* List Styling */
ul {
  list-style-type: none;
  padding: 0;
}

ul li {
  margin: 10px 0;
}

/* Button Styling */
button,
.styled-button {
  background: #00bcd4;
  border: 1px solid #444;
  color: #fff;
  padding: 12px 25px;
  border-radius: 8px;
  font-size: 1.1rem;
  cursor: pointer;
  margin-top: 15px;
  transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
  font-family: "Arial", sans-serif;
  display: inline-block;
  text-align: center;
}

button:hover,
.styled-button:hover {
  background: #0097a7;
  box-shadow: 0 0 10px #0097a7;
  transform: translateY(-2px);
}

/* Calculator Styling */
.calculator {
  background: linear-gradient(to bottom right, #1e1e1e, #2a2a2a);
  border: 1px solid #444;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  width: 350px;
  text-align: center;
  transition: transform 0.2s;
}

.calculator:hover {
  transform: scale(1.02);
}

label {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #f0f0f0;
}

input[type="number"],
input[type="text"],
select {
  width: 100%;
  max-width: 300px;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #666;
  border-radius: 8px;
  background: #2a2a2a;
  color: #e0e0e0;
  text-align: center;
  font-family: "Arial", sans-serif;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

input[readonly] {
  background: #3a3a3a;
}

input[type="number"]:focus,
input[type="text"]:focus,
select:focus {
  border-color: #00bcd4;
  outline: none;
  box-shadow: 0 0 5px #00bcd4;
}

/* Navbar Styling */
.navbar {
  background: #1e1e1e;
  padding: 15px 20px;
  width: 100%;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

/* Hide Navbar on Home Page */
.home .navbar {
  display: none;
}

.navbar ul {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 0;
  padding: 0;
}

.navbar li {
  list-style: none;
}

.navbar a {
  text-decoration: none;
  color: #e0e0e0;
  font-size: 1.1rem;
  padding: 10px 15px;
  transition: background 0.3s, color 0.3s;
}

.navbar a:hover {
  background: #00bcd4;
  color: #fff;
  border-radius: 8px;
}

/* Additional Styles for Input Fields */
.checkbox-container {
  margin-top: 15px;
}

.checkbox-container input[type="checkbox"] {
  margin-right: 10px;
}

.checkbox-container label {
  font-size: 1rem;
  color: #e0e0e0;
}

#loading,
#results {
  text-align: center;
  margin-top: 15px;
}

.hidden {
  display: none;
}

.spinner {
  border: 4px solid rgba(0, 0, 0, 0.2);
  border-radius: 50%;
  border-top: 4px solid #00bcd4;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 220px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 5px;
  padding: 10px;
  position: absolute;
  z-index: 1;
  bottom: 125%; /* Position tooltip above the text */
  left: 50%;
  margin-left: -110px;
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.tooltip .tooltiptext::after {
  content: "";
  position: absolute;
  top: 100%; /* Arrow points down */
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #333 transparent transparent transparent;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive Calculator */
@media (max-width: 768px) {
  .calculator {
    width: 90%;
    padding: 20px;
  }
}

@media (max-width: 480px) {
  .calculator {
    width: 100%;
  }
}
