/*
* BMI Calculator 
* A simple web app to calculate BMI.
* Author: Aditya Chauhan
* Website: https://cloudxtech.io/
*/

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background: linear-gradient(270deg, #ff6ec4, #7873f5, #4ade80, #facc15, #f87171);
  background-size: 1000% 1000%;
  animation: gradientBG 20s ease infinite;
}

@keyframes gradientBG {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.container {
  background: rgba(255, 255, 255, 0.95);
  padding: 35px 30px;
  border-radius: 25px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  width: 450px;
  text-align: center;
  backdrop-filter: blur(6px);
}

h1 {
  margin-bottom: 20px;
  color: #222;
  font-size: 26px;
  letter-spacing: 1px;
}

.input-group {
  margin: 18px 0;
  text-align: left;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  color: #444;
}

input {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #ccc;
  font-size: 15px;
  transition: border 0.3s ease;
}

input:focus {
  border: 1px solid #7873f5;
  outline: none;
}

.toggle {
  margin: 12px 0;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.toggle button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 10px;
  background: #f0f0f0;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.toggle button.active {
  background: linear-gradient(135deg, #7873f5, #74abe2);
  color: white;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

button.calculate {
  width: 100%;
  padding: 14px;
  margin-top: 18px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #ff6ec4, #7873f5);
  color: white;
  font-size: 17px;
  font-weight: bold;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.3s ease;
}

button.calculate:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.result {
  margin-top: 25px;
  font-size: 20px;
  font-weight: bold;
  color: #222;
  padding: 12px;
  border-radius: 14px;
  background: #f9fafb;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.05);
}
