/* 🌍 GLOBAL */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: white;
  min-height: 100vh;

  background:
    linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.75)),
    url('bg2.jpeg');

  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

/* hide page initially */
body.loading .center{
  visibility:hidden;
}

/* 🌟 CENTER (HOME PAGE) */
.center {
  display:flex;
  justify-content:center;
  align-items:center;
  height:100vh;
  animation:fadeUp 1s ease;
}

/* 💎 GLASS CARD */
.glass {
  background:rgba(255,255,255,0.05);
  padding:40px 60px;
  border-radius:20px;
  backdrop-filter:blur(12px);
  box-shadow:0 20px 50px rgba(0,0,0,0.5);
  text-align:center;
}

/* 🔰 LOGO */
.logo-box{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
}

.logo{
  width:50px;
  height:50px;
}

/* 🏷 TITLE */
.title{
  font-size:60px;
  font-weight:bold;
}

.aqua-part{color:#00CED1;}
.life-part{color:#21B20C;}

.subtitle{
  font-size:18px;
  color:#94a3b8;
  margin-top:10px;
}

/* 📦 FORM */
.form-group{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:15px;
  margin-top:20px;
}

/* 🔽 PREMIUM DROPDOWN */
.select-wrapper{
  position:relative;
  width:240px;
}

select{
  width:100%;
  padding:14px 18px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.2);
  font-size:16px;
  background:rgba(255,255,255,0.08);
  color:white;
  cursor:pointer;
  backdrop-filter:blur(10px);
  outline:none;
  appearance:none;
  transition:0.3s;
}

select:hover,
select:focus{
  border:1px solid #6df1d2;
  box-shadow:0 0 15px rgba(141, 179, 241, 0.888);
}

select option{
  background:#0f172a;
  color:white;
}

/* 🔘 BUTTON */
button{
  padding:12px 25px;
  border-radius:12px;
  border:none;
  background:linear-gradient(45deg,#9ff3cb,#59abf3);
  cursor:pointer;
  transition:0.3s;
}

button:hover{
  transform:translateY(-3px);
  box-shadow:0 8px 20px rgba(77,233,171,0.4);
}

/* ================================= */
/* 📊 DASHBOARD */
/* ================================= */

.container{
  padding:20px;
}

/* 🔝 TOP BAR */
.top-bar{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

/* 🧾 CARDS */
.cards{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:15px;
  margin-top:20px;
}

.card{
  background:rgba(255,255,255,0.05);
  padding:20px;
  border-radius:12px;
  text-align:center;
  transition:0.3s;
}

/* 🔥 CARD HOVER */
.card:hover{
  transform:translateY(-8px) scale(1.05);
  box-shadow:0 10px 30px rgba(115,106,246,0.6);
}

/* 🟢 GOOD */
.card.good:hover{
  box-shadow:0 10px 30px rgba(34,197,94,0.6);
  border:1px solid #22c55e;
}

/* 🟡 MEDIUM */
.card.medium:hover{
  box-shadow:0 10px 30px rgba(234,179,8,0.6);
  border:1px solid #eab308;
}

/* 🔴 BAD */
.card.bad:hover{
  box-shadow:0 10px 30px rgba(239,68,68,0.6);
  border:1px solid #ef4444;
}

/* ❤️ HEALTH */
.health{
  font-size:22px;
  margin-top:15px;
}

.green{color:#22c55e;}
.yellow{color:#eab308;}
.red{color:#ef4444;}

/* 📊 CHARTS */
.charts-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
  margin-top:30px;
}

.chart-box{
  background:#020617;
  padding:20px;
  border-radius:12px;
}

canvas{
  height:260px!important;
}

/* 🗺 MAP */
#map{
  height:280px;
  margin-top:20px;
  border-radius:12px;
}

/* ⏳ LOADER */
#loader{
  position:fixed;
  width:100%;
  height:100%;
  background:#0f172a;
  display:flex;
  justify-content:center;
  align-items:center;
}

.spinner{
  width:50px;
  height:50px;
  border:5px solid #1e293b;
  border-top:5px solid #22c55e;
  border-radius:50%;
  animation:spin 1s linear infinite;
}

@keyframes spin{
  100%{transform:rotate(360deg);}
}

/* ✨ ANIMATION */
@keyframes fadeUp{
  from{
    opacity:0;
    transform:translateY(40px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}

/* ================================= */
/* 📱 MOBILE RESPONSIVE */
/* ================================= */

@media (max-width:768px){

  .glass{
    padding:25px;
  }

  .title{
    font-size:40px;
  }

  .subtitle{
    font-size:14px;
  }

  .container{
    padding:12px;
  }

  .top-bar{
    flex-direction:column;
    gap:10px;
    text-align:center;
  }

  .top-bar button{
    width:100%;
    max-width:220px;
  }

  .cards{
    grid-template-columns:repeat(2,1fr);
    gap:10px;
  }

  .card{
    padding:12px;
    font-size:14px;
  }

  .charts-row{
    grid-template-columns:1fr;
  }

  canvas{
    height:200px!important;
  }

  #map{
    height:200px;
  }

  button{
    width:100%;
  }

}

/* ================================= */
/* 💡 SUGGESTIONS SECTION */
/* ================================= */

#suggestions{
  margin-top:20px;
  padding:18px;
  border-radius:12px;
  background:rgba(255,255,255,0.05);
  line-height:1.6;
}

#suggestions h3{
  margin-top:0;
  color:#38bdf8;
}

#suggestions ul{
  padding-left:20px;
}

#suggestions li{
  margin-bottom:6px;
}

/* ================================= */
/* 🌊 WATER RIPPLE LOADER */
/* ================================= */

#loadingScreen{
  position:fixed;
  width:100%;
  height:100%;
  top:0;
  left:0;
  background:#020617;
  display:none;
  justify-content:center;
  align-items:center;
  flex-direction:column;
  z-index:9999;
}

/* 🌊 WATER BOWL LOADER */

.bowl{
  width:120px;
  height:120px;
  border:6px solid #38bdf8;
  border-radius:50%;
  position:relative;
  overflow:hidden;
}

.water{
  position:absolute;
  bottom:0;
  width:100%;
  height:0%;
  background:linear-gradient(#38bdf8,#0ea5e9);
  animation:fillWater 4s ease-in-out forwards;
}

@keyframes fillWater{
  0%{height:0%;}
  100%{height:100%;}
}
