@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

* {
  box-sizing: border-box;
}

.cal-con {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  padding-top: 40px;
  padding-bottom:40px;
}

.container1 {
  background: #ffffff;
  padding: 30px;
  border-radius: 20px;
  max-width: 1000px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.container1:hover {
  transform: scale(1.01);
}

h1 {
  text-align: center;
  
  font-size: 26px;
  color: #2c3e50;
}

form {
  display: flex;
  flex-direction: column;
}

label {
  margin-top: 12px;
  font-weight: 600;
  color: #34495e;
}

input {
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.3s;
}

input:focus {
  border-color: #3498db;
  outline: none;
}

button {
  margin-top: 20px;
  background: linear-gradient(135deg, #42a5f5, #478ed1);
  color: white;
  padding: 12px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s;
}

button:hover {
  background: linear-gradient(135deg, #1e88e5, #2568b4);
}

#result {
  margin-top: 25px;
  text-align: center;
  font-weight: 600;
  font-size: 17px;
  color: #2e7d32;
  white-space: pre-line;
}

canvas {
  margin-top: 30px;
  background: #fdfdfd;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  width:100%;
  height:100%;
}
/* Score colors */
.score-low {
  color: #e74c3c; /* red */
}

.score-mid {
  color: #f39c12; /* orange */
}

.score-high {
  color: #27ae60; /* green */
}

/* Icon animations */
@keyframes bounceIcon {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

#result i {
  margin-right: 8px;
  color: #3498db;
  min-width: 20px;
  animation: bounceIcon 1s ease infinite;
}

 .band-9 { background-color: #2ecc71; color: white; }      /* Green */
  .band-8 { background-color: #27ae60; color: white; }
  .band-7 { background-color: #f1c40f; color: black; }      /* Yellow */
  .band-6 { background-color: #f39c12; color: white; }      /* Orange */
  .band-5 { background-color: #e67e22; color: white; }
  .band-4, .band-3 { background-color: #e74c3c; color: white; } /* Red */