body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #e0f7fa, #e8eaf6);
  color: #222;
  margin: 0;
  padding: 0;
}


.navbar {
  padding: 1rem;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 999;
}
.navbar-brand {
  font-size: 1.6rem;
  font-weight: 700;
  color: #003366;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 5%;
}
.nav-link {
  color: #003366 !important;
  margin: 0 12px;
  font-weight: 500;
  position: relative;
}
.nav-link:hover {
  color: #004aad !important;
}
.btn-login {
  background-color: #004aad;
  color: #fff;
  border-radius: 30px;
  padding: 8px 22px;
  font-weight: 600;
  transition: 0.3s;
  text-decoration: none;
}
.btn-login:hover {
  background-color: #003366;
}


.nav-item.dropdown:hover .dropdown-menu {
  display: block;
  margin-top: 0;
}
.dropdown-menu {
  border-radius: 10px;
  border: none;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}
.dropdown-item {
  color: #003366;
  padding: 10px 18px;
  font-weight: 500;
}
.dropdown-item:hover {
  background-color: #004aad;
  color: #fff;
}


.main {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 90vh;
  padding: 20px;
}
.container {
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  max-width: 900px;
  width: 100%;
  transition: 0.3s;
}
.controls {
  flex: 1 1 300px;
}
.controls label {
  display: block;
  margin-top: 20px;
  font-weight: 500;
  color: #333;
}
.controls input[type="range"] {
  width: 100%;
  margin-top: 10px;
  cursor: pointer;
  accent-color: #4f46e5;
}
.value-box {
  display: inline-block;
  margin-left: 10px;
  background: #eef2ff;
  color: #4338ca;
  padding: 5px 12px;
  border-radius: 8px;
  font-weight: 600;
}
.result {
  margin-top: 25px;
  background: #f9fafb;
  border-radius: 10px;
  padding: 15px;
  font-size: 15px;
  font-weight: 500;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
}
.result span {
  display: block;
  margin-top: 8px;
}
.result strong {
  color: #111827;
}
.chart-container {
  flex: 1 1 250px;
  display: flex;
  justify-content: center;
  align-items: center;
}
canvas {
  width: 260px !important;
  height: 260px !important;
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
    text-align: center;
  }
  .controls label {
    text-align: left;
  }
}
