body {
      margin: 0;
      font-family: Arial, sans-serif;
      background: #f4f6f9;
    }

    header {
      background: #2c3e50;
      color: white;
      padding: 15px;
      text-align: center;
      font-size: 20px;
    }
    h3{
  text-align: center;
}
    .page-title {
      text-align: center;
  font-size: 26px;
  font-weight: 600;
  margin-top: 3%;
  color: #2c3e50;
  margin-bottom: 7%;
    }
    .dept-banner {
        text-align: center;
        padding: 6px;
        background-color: #F5DEB3;
        color: #8B4513;
        font-size: 15px;
        font-weight: 500;
        letter-spacing: 0.5px;
        border-bottom: 1px solid rgba(139, 69, 19, 0.2);
    }
    footer {
      background: #2c3e50;
      color: white;
      text-align: center;
      padding: 10px;
      position: fixed;
      bottom: 0;
      width: 100%;
    }

    .container {
  display: flex;
  flex-direction: column; /* 🔥 KEY FIX */
  align-items: center;
  padding: 20px;
}

    .card {
      background: white;
      padding: 30px;
      border-radius: 10px;
      width: 350px;
      margin-bottom: 15px;
      box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }

    input {
      width: 95%;
      padding: 10px;
      margin: 8px 0;
      border-radius: 5px;
      border: 1px solid #ccc;
    }

    button {
      width: 100%;
      padding: 10px;
      border: none;
      border-radius: 5px;
      background: #3498db;
      color: white;
      font-size: 15px;
      cursor: pointer;
    }

    button:disabled {
      background: #95a5a6;
    }

     .user-info {
  margin-top: 15px;
  padding: 15px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid #e3e8ee;
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.info-row:last-child {
  border-bottom: none;
}

.info-row span {
  font-size: 16px;
}

.info-row b {
  min-width: 100px;
  color: #2c3e50;
}

.info-row p {
  margin: 0;
  color: #555;
  font-size: 14px;
  word-break: break-word;
}

    /* POPUP */
    #overlay {
      display: none;
      position: fixed;
      top: 0; left: 0;
      width: 100%;
      height: 100%;
      backdrop-filter: blur(5px);
      background: rgba(0,0,0,0.4);
      z-index: 10;
    }

    #popup {
      display: none;
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      background: white;
      padding: 25px;
      border-radius: 10px;
      text-align: center;
      z-index: 11;
      box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    }
.guide-floating {
  position: fixed;
  bottom: 70px; /* above footer */
  right: 20px;
  z-index: 1000;
}

.guide-floating button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: #27ae60;
  color: white;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: 0.3s;
}

.guide-floating button:hover {
  background: #219150;
  transform: scale(1.1);
}

/* Tooltip */
.tooltip-text {
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  background: #2c3e50;
  color: #fff;
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}

.guide-floating:hover .tooltip-text {
  opacity: 1;
}

#workBtn {
  margin-top: 10px;
  background: #27ae60;
}

#workBtn:hover {
  background: #219150;
}

#workForm input,
#workForm select {
  margin-top: 8px;
}

#workCard {
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px);}
  to { opacity: 1; transform: translateY(0);}
}

#submitWorkBtn:disabled {
  background: #95a5a6;
  cursor: not-allowed;
}

    /* MOBILE RESPONSIVE */
@media (max-width: 600px) {

  .container {
    padding: 15px;
    height: auto;
    align-items: flex-start;
  }

  .card {
    width: 100%;
    padding: 20px;
    border-radius: 8px;
  }

  header {
    font-size: 16px;
    padding: 12px;
  }

  footer {
    font-size: 12px;
    padding: 8px;
    position: static; /* prevents overlap */
  }

  .info-row {
    flex-direction: column;
    gap: 2px;
  }

  .info-row b {
    min-width: unset;
    font-size: 13px;
  }

  .info-row p {
    font-size: 13px;
  }

  button {
    font-size: 14px;
    padding: 10px;
  }

  input {
    font-size: 14px;
  }

  #popup {
    width: 85%;
    padding: 20px;
  }

}