body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #0a0d25;
  color: white;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: #070b23;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Logo (left) */
.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #0ff;
}

.logo a {
  color: #0ff;
  text-decoration: none;
}

/* Center nav links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 7px;
}

.nav-links a {
  color: whitesmoke;
  text-decoration: none;
  font-size: 17px;
}

.nav-links a:hover {
  color: #0ff;
}

/* Right actions: login, signup, profile */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.signup-btn {
  background-color: #0ff;
  color: #000;
  padding: 6px 12px;
  border-radius: 5px;
  font-weight: bold;
  transition: 0.3s;
}

.nav-actions-links {
  color: whitesmoke;
  font-size: 17px;
}

.nav-actions a {
  text-decoration: none;
  white-space: nowrap;
}

.nav-actions a:hover {
  color: #0ff;
}

.signup-btn:hover {
  background-color: #00c9c9;
}

.hamburger {
  display: none; /* hide by default */
}

@media (max-width: 800px) {
  .hamburger {
    display: block;
    font-size: 28px;
    cursor: pointer;
    color: #0ff;
    z-index: 1001;
  }

  .mobile-nav {
    display: none;
    flex-direction: column;
    background-color: #070b23;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;

  }

  .mobile-nav.active {
    display: flex;
  }

  .mobile-nav .nav-links,
  .mobile-nav .nav-actions {
    display: flex !important; /* force show in mobile dropdown */
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
  }

  
  /* Force vertical layout */
  .nav-links,
  .nav-actions {
    position: static;      /* remove absolute from desktop */
    transform: none;       /* remove translateX from desktop */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a,
  .nav-actions a {
    display: block;
    width: 100%;
    padding: 10px 0;
    color: white;
    text-align: center;
  }

  /* Smaller signup button in mobile */
  .nav-actions .signup-btn {
    width: auto;
    min-width: 120px;
    max-width: 160px;
  }

  .mobile-nav a {
    color: white;
    padding: 0.75rem;
    text-align: center;
  }
}
.main-content {
  flex-grow: 1;
  padding: 50px;
  overflow-y: auto;
}

header {
  text-align: center;
  margin-bottom: 20px;
}

.steps {
  background-color: #1a1a1a;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0,255,0,0.05);
  max-width: 600px;
  margin: auto;
}

.steps label, .steps select, .steps button {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  font-size: 16px;
}

.steps button {
  padding: 10px;
  background-color: #263238;
  color: #80d8ff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.steps button:hover {
  background-color: #37474f;
}

.procedure {
  text-align: center;
  margin: 20px 0;
}

.procedure img {
  width: 100%;
  max-width: 300px;
  border-radius: 10px;
  margin-top: 10px;
}

.lab-area {
  margin: 30px auto;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 40px;
  padding: 20px;
  background-color: #1e1e1e;
  border-radius: 12px;
  max-width: 600px;
}

.beaker-container {
  width: 100px;
  height: 180px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  position: relative;
}

.beaker {
  width: 80px;
  height: 140px;
  background-color: transparent;
  border: 3px solid #90caf9;
  border-top: none;
  border-radius: 0 0 10px 10px;
  box-shadow: inset 0 0 20px rgba(0, 191, 255, 0.3);
  transition: background-color 0.5s;
  position: relative;
}

.beaker-liquid {
  width: 100%;
  height: 0%;
  background-color: #00bcd4;
  position: absolute;
  bottom: 0;
  left: 0;
  border-radius: 0 0 10px 10px;
  opacity: 0.6;
  transition: height 0.5s ease-in-out, background-color 0.5s ease;
  z-index: 0;
}

.crushed-particles {
  position: absolute;
  width: 100%;
  height: 20px;
  bottom: 0;
  background: radial-gradient(circle, #8e44ad 10%, transparent 70%) repeat-x;
  background-size: 10px 10px;
  opacity: 0;
  transition: opacity 0.5s;
  z-index: 1;
}

.droplets {
  position: absolute;
  top: -30px;
  left: 35%;
  width: 10px;
  height: 10px;
  background: #00bcd4;
  border-radius: 50%;
  animation: drip 0.8s linear infinite;
  display: none;
}

@keyframes drip {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(120px); opacity: 0; }
}

.test-tube {
  width: 60px;
  height: 140px;
  background-color: #607d8b;
  color: white;
  border-radius: 8px;
  text-align: center;
  line-height: 140px;
  font-weight: bold;
  cursor: grab;
}

.message {
  text-align: center;
  font-size: 16px;
  margin-top: 20px;
  color: #b9f6ca;
}

.filter-animation {
  animation: filterFall 1s ease-out forwards;
}

@keyframes filterFall {
  0% { background-color: #00bcd4; }
  100% { background-color: #80deea; }
}

#naming {
    justify-content: center;
}

/* ***************************************** */
.complete-btn {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  color: white;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 50px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  z-index: 1000;
}

.complete-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.btn-icon {
  font-size: 20px;
}

.btn-text {
  white-space: nowrap;
}