* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #07111f;
  color: white;
  overflow-x: hidden;
  min-height: 100vh;
}

.background {
  position: fixed;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  overflow: hidden;
  z-index: -5;

  background: linear-gradient(135deg, #07111f, #0d1f36, #062f2b);
}

.blur {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
}

.blur1 {
  width: 300px;
  height: 300px;

  background: #00ffc3;

  left: -100px;
  top: -100px;

  opacity: 0.18;
}

.blur2 {
  width: 350px;
  height: 350px;

  background: #1d4ed8;

  right: -120px;
  top: 80px;

  opacity: 0.22;
}

.blur3 {
  width: 260px;
  height: 260px;

  background: #00ff95;

  bottom: -90px;
  left: 30%;

  opacity: 0.15;
}

.particles {
  position: absolute;

  width: 100%;
  height: 100%;
}

.particles span {
  position: absolute;

  display: block;

  width: 7px;
  height: 7px;

  border-radius: 50%;

  background: #9fffe5;

  animation: float 15s linear infinite;

  opacity: 0.35;
}

.particles span:nth-child(1) {
  left: 5%;
  top: 10%;
}

.particles span:nth-child(2) {
  left: 15%;
  top: 70%;
}

.particles span:nth-child(3) {
  left: 30%;
  top: 25%;
}

.particles span:nth-child(4) {
  left: 45%;
  top: 85%;
}

.particles span:nth-child(5) {
  left: 60%;
  top: 20%;
}

.particles span:nth-child(6) {
  left: 75%;
  top: 55%;
}

.particles span:nth-child(7) {
  left: 90%;
  top: 18%;
}

.particles span:nth-child(8) {
  left: 82%;
  top: 88%;
}

.particles span:nth-child(9) {
  left: 55%;
  top: 65%;
}

.particles span:nth-child(10) {
  left: 38%;
  top: 45%;
}

.particles span:nth-child(11) {
  left: 22%;
  top: 92%;
}

.particles span:nth-child(12) {
  left: 95%;
  top: 60%;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-35px);
  }

  100% {
    transform: translateY(0px);
  }
}

.topbar {
  width: 95%;

  margin: 25px auto;

  display: flex;

  justify-content: space-between;

  align-items: center;

  padding: 22px 30px;

  border-radius: 22px;

  background: rgba(255, 255, 255, 0.08);

  backdrop-filter: blur(18px);

  border: 1px solid rgba(255, 255, 255, 0.12);

  box-shadow: 0 0 30px rgba(0, 255, 170, 0.08);
}

.logo {
  display: flex;

  align-items: center;

  gap: 18px;
}

.logo i {
  font-size: 42px;

  color: #34f5c5;
}

.logo h1 {
  font-size: 32px;

  font-weight: 700;
}

.logo p {
  font-size: 14px;

  color: #b6d4ff;

  margin-top: 3px;
}

.status-box {
  padding: 12px 22px;

  border-radius: 40px;

  background: #0d3b33;

  color: #7dffcb;

  font-weight: 600;

  display: flex;

  gap: 10px;

  align-items: center;
}
.dashboard {
  width: 95%;

  margin: 25px auto;

  display: grid;

  grid-template-columns: 340px 1fr;

  gap: 25px;

  align-items: start;
}

.glass {
  background: rgba(255, 255, 255, 0.08);

  backdrop-filter: blur(18px);

  border: 1px solid rgba(255, 255, 255, 0.12);

  border-radius: 24px;

  padding: 28px;

  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
}

.control-panel h2,
.lab-panel h2,
.report-panel h2 {
  font-size: 24px;

  margin-bottom: 25px;

  display: flex;

  align-items: center;

  gap: 12px;

  color: #7dffcb;
}

.input-group {
  margin-bottom: 22px;
}

.input-group label {
  display: flex;

  align-items: center;

  gap: 10px;

  margin-bottom: 10px;

  font-weight: 500;

  color: #d8e9ff;
}

select {
  width: 100%;

  padding: 14px;

  border: none;

  border-radius: 14px;

  background: #10263f;

  color: white;

  font-size: 15px;

  outline: none;
}

input[type="range"] {
  width: 100%;

  margin-top: 8px;

  accent-color: #22d3ee;

  cursor: pointer;
}

.range-value {
  margin-top: 8px;

  font-weight: 600;

  color: #7dffcb;
}

.start-btn {
  width: 100%;

  padding: 18px;

  margin-top: 10px;

  border: none;

  border-radius: 16px;

  background: linear-gradient(135deg, #10b981, #06b6d4);

  color: white;

  font-size: 17px;

  font-weight: 700;

  cursor: pointer;

  transition: 0.3s;

  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.35);
}

.start-btn:hover {
  transform: translateY(-3px);

  box-shadow: 0 18px 35px rgba(16, 185, 129, 0.45);
}

.lab-header {
  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-bottom: 25px;
}

.ai-state {
  padding: 10px 18px;

  border-radius: 30px;

  background: #0f766e;

  font-weight: 600;

  color: #bfffe8;
}

.flask-area {
  display: flex;

  justify-content: center;

  align-items: center;

  margin: 35px 0;
}

.flask {
  width: 140px;

  height: 180px;

  border: 5px solid #dbeafe;

  border-radius: 0 0 40px 40px;

  position: relative;

  overflow: hidden;

  background: rgba(255, 255, 255, 0.04);
}

.liquid {
  position: absolute;

  left: 0;

  bottom: 0;

  width: 100%;

  height: 20%;

  background: linear-gradient(180deg, #fde047, #f59e0b);

  transition: 1s;
}

.progress-area {
  margin-top: 25px;
}

.progress-bar {
  width: 100%;

  height: 14px;

  background: #16324b;

  border-radius: 20px;

  overflow: hidden;
}

.progress-fill {
  width: 0%;

  height: 100%;

  background: linear-gradient(90deg, #10b981, #38bdf8);

  transition: 1s;
}

#progressText {
  margin-top: 10px;

  color: #cbd5e1;

  font-size: 14px;
}
.analysis-cards {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 20px;

  margin-top: 35px;
}

.card {
  background: rgba(255, 255, 255, 0.06);

  border: 1px solid rgba(255, 255, 255, 0.08);

  border-radius: 20px;

  padding: 22px;

  text-align: center;

  transition: 0.35s;
}

.card:hover {
  transform: translateY(-8px);

  box-shadow: 0 18px 35px rgba(0, 255, 170, 0.18);
}

.card i {
  font-size: 34px;

  margin-bottom: 15px;

  color: #34f5c5;
}

.card h3 {
  font-size: 18px;

  margin-bottom: 10px;

  color: #ffffff;
}

.card p {
  font-size: 20px;

  font-weight: 700;

  color: #8ef9d5;

  word-break: break-word;
}

.report-panel {
  grid-column: 1 / -1;

  margin-top: 10px;
}

.analysis-text {
  margin: 20px 0;

  padding: 20px;

  background: rgba(255, 255, 255, 0.05);

  border-left: 5px solid #10b981;

  border-radius: 14px;

  line-height: 1.8;

  color: #dbeafe;
}

.paper-box {
  margin-top: 30px;

  padding: 22px;

  background: rgba(255, 255, 255, 0.05);

  border-radius: 18px;

  border: 1px solid rgba(255, 255, 255, 0.08);
}

.paper-box h3 {
  display: flex;

  align-items: center;

  gap: 10px;

  margin-bottom: 15px;

  color: #7dffcb;
}

.paper-box p {
  margin-bottom: 18px;

  line-height: 1.6;

  color: #d6e7ff;
}

.paper-btn {
  display: inline-block;

  padding: 12px 24px;

  border-radius: 14px;

  background: linear-gradient(135deg, #2563eb, #06b6d4);

  color: white;

  text-decoration: none;

  font-weight: 600;

  transition: 0.3s;
}

.paper-btn:hover {
  transform: translateY(-3px);

  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
}

#uvChart {
  margin-top: 25px;

  width: 100%;

  height: 350px;

  background: rgba(255, 255, 255, 0.04);

  border-radius: 20px;

  padding: 15px;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #07111f;
}

::-webkit-scrollbar-thumb {
  background: #1fbfa8;

  border-radius: 20px;
}

::-webkit-scrollbar-thumb:hover {
  background: #39e7cb;
}
@keyframes glow {
  0% {
    box-shadow: 0 0 10px rgba(52, 245, 197, 0.15);
  }

  50% {
    box-shadow: 0 0 30px rgba(52, 245, 197, 0.45);
  }

  100% {
    box-shadow: 0 0 10px rgba(52, 245, 197, 0.15);
  }
}

.flask {
  animation: glow 3s infinite;
}

.start-btn:active {
  transform: scale(0.98);
}

.card {
  animation: fadeUp 0.8s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;

    transform: translateY(25px);
  }

  to {
    opacity: 1;

    transform: translateY(0);
  }
}

.glass {
  transition: 0.35s;
}

.glass:hover {
  transform: translateY(-4px);

  border-color: rgba(52, 245, 197, 0.25);
}

@media (max-width: 1100px) {
  .dashboard {
    grid-template-columns: 1fr;
  }

  .analysis-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .topbar {
    flex-direction: column;

    gap: 18px;

    text-align: center;
  }

  .logo {
    flex-direction: column;
  }

  .analysis-cards {
    grid-template-columns: 1fr;
  }

  .glass {
    padding: 20px;
  }

  .logo h1 {
    font-size: 26px;
  }

  .logo p {
    font-size: 13px;
  }

  .start-btn {
    font-size: 16px;

    padding: 16px;
  }

  .flask {
    width: 110px;

    height: 150px;
  }

  .report-panel {
    padding: 18px;
  }

  #uvChart {
    height: 260px;
  }
}

html {
  scroll-behavior: smooth;
}
