body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #f8f8ff;
  color: rgb(0, 0, 0);
  padding-top: 70px;

  /* 👇 Add these lines 👇 */
  position: relative;
  z-index: 0;
}
/* Header */
.header-bar {
  position: fixed; /* Changed from sticky */
  top: 0;
  width: 100%;
  background-color: #d8c9ff;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: top 0.3s ease;
}

.header-hidden {
  top: -100px; /* Pushes header out of view */
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  flex-wrap: wrap;
}
.logo-section {
  display: flex;
  align-items: center;
}
.logo {
  height: 50px; /* Element height */
  width: 50px; /* Element width */
  border-radius: 6px; /* Border styling */
  margin-right: 10px; /* Margin for spacing */
}

.site-title {
  font-size: 28px; /* Font size */
  font-weight: 600; /* Font weight */
  margin: 0; /* Margin for spacing */
  color: #785cc1; /* Text color */
}

.nav-links {
  display: flex;
  gap: 10px;
}
.nav-link {
  padding: 8px 16px;
  background-color: #785cc1;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 700;
  border: 2px solid #785cc1;
}
.nav-link:hover {
  background-color: white;
  color: #785cc1;
}

/* ===== Login Page ===== */
.login-box {
  max-width: 400px; /* Element width */
  margin: 5rem auto; /* Margin for spacing */
  padding: 2rem; /* Padding for spacing */
  background: white; /* Background styling */
  border-radius: 15px; /* Border styling */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Shadow for depth */
  text-align: center; /* Text alignment */
}

.login-box h2 {
  margin-bottom: 1.5rem; /* Margin for spacing */
  color: #785cc1; /* Text color */
}

.login-box input {
  width: 100%; /* Element width */
  padding: 0.8rem; /* Padding for spacing */
  margin-bottom: 1rem; /* Margin for spacing */
  border: 1px solid #785cc1; /* Border styling */
  border-radius: 8px; /* Border styling */
  font-size: 1rem; /* Font size */
}
.email-wrapper {
  width: 100%; /* Element width */
  max-width: 300px; /* Element width */
  margin-bottom: 0rem; /* Margin for spacing */
}

.email-wrapper input {
 width: 100%; /* Element width */
  padding: 0.7rem 2.5rem 0.7rem 3.7rem; /* Padding for spacing */
  border: 1px solid #785cc1; /* Border styling */
  border-radius: 6px; /* Border styling */
  font-size: 1rem; /* Font size */
}

.password-wrapper {
  position: relative; /* Positioning */
  width: 100%; /* Element width */
  max-width: 300px; /* Element width */
}

.password-wrapper input {
  width: 100%; /* Element width */
  padding: 0.7rem 2.5rem 0.7rem 3.7rem; /* Padding for spacing */
  border: 1px solid #785cc1; /* Border styling */
  border-radius: 6px; /* Border styling */
  font-size: 1rem; /* Font size */
}

.toggle-icon {
  position: absolute; /* Positioning */
  right: -80px;
  top: 40%;
  transform: translateY(-50%);
  cursor: pointer; /* Mouse cursor style */
}

.toggle-icon img {
  width: 25px; /* Element width */
  height: 25px; /* Element height */
}

.login-box button {
  background: #785cc1; /* Background styling */
  color: white; /* Text color */
  border: none; /* Border styling */
  padding: 0.8rem 2rem; /* Padding for spacing */
  font-size: 1rem; /* Font size */
  border-radius: 8px; /* Border styling */
  cursor: pointer; /* Mouse cursor style */
  width: 100%; /* Element width */
}

.back-home {
  display: inline-block; /* Display type */
  margin-top: 1rem; /* Margin for spacing */
  color: #785cc1; /* Text color */
  text-decoration: none;
  font-size: 0.9rem; /* Font size */
}


.form-section {
  max-width: 500px; /* Element width */
  margin: 2rem auto; /* Margin for spacing */
  background: #fff; /* Background styling */
  padding: 1rem; /* Padding for spacing */
  border-radius: 12px; /* Border styling */
  box-shadow: 0 0 10px #ccc; /* Shadow for depth */
}
/* Force vertical scrollbar */
html {
  height: 100%;
  overflow-y: scroll !important;
}

/* Force vertical scrollbar */
html {
  height: 100%;
  overflow-y: scroll !important;
}

/* Webkit Browsers (Chrome, Edge, Brave, Opera, newer Safari) */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #ffffff;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background-color: #d8c9ff;
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #785cc1;
}

/* Arrows: Only WebKit allows this */
::-webkit-scrollbar-button:single-button {
  display: block;
  background-color: #785cc1;
  height: 12px;
  width: 100%;
  background-position: center;
  background-repeat: no-repeat;
}

/* Up Arrow */
::-webkit-scrollbar-button:single-button:decrement {
  height: 10px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
  background-color: transparent;
  background-image: url("../media/up-arrow.png"); /* Replace with correct path */
  /* Make it an up arrow */
}

/* Down Arrow */
::-webkit-scrollbar-button:single-button:increment {
  height: 10px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
  background-color: transparent;
  background-image: url("../media/down-arrow.png"); /* Use original image */
}

/* Footer */
.footer {
  background-color: #f0f0f0; /* Background styling */
  padding: 50px 10px; /* Padding for spacing */
  text-align: center; /* Text alignment */
  margin-top: 60px; /* Margin for spacing */
  width: 100%;  /* Ensure full width */ /* Element width */
  box-sizing: border-box;  /* Prevent any overflow */ /* Border styling */
}

.features {
  display: flex; /* Display type */
  justify-content: center; /* Horizontal alignment */
  gap: 10px; /* Gap between elements */
  flex-wrap: wrap; /* Flexbox layout */
  margin-bottom: 20px; /* Margin for spacing */
}

.feature-item {
  display: flex; /* Display type */
  flex-direction: column; /* Flexbox layout */
  align-items: center; /* Vertical alignment */
  max-width: 100px; /* Element width */
}

.feature-item img {
  width: 40px; /* Element width */
  margin-bottom: 10px; /* Margin for spacing */
}

.useful-links ul {
  list-style: none;
  padding: 0; /* Padding for spacing */
  display: flex; /* Display type */
  justify-content: center; /* Horizontal alignment */
  flex-wrap: wrap; /* Flexbox layout */
  gap: 20px; /* Gap between elements */
  font-weight: 600; /* Font weight */
  font-size: 15px; /* Font size */
}

.useful-links a {
  text-decoration: none;
  color: #785cc1; /* Text color */
}

.footer-bar {
  background-color: #d8c9ff; /* Background styling */
  padding: 8px; /* Padding for spacing */
  color: #333; /* Text color */
  font-weight: 500; /* Font weight */
  font-size: 14px; /* Font size */
  position: fixed;  /* Make sure it's at the bottom */ /* Positioning */
  bottom: 0;  /* Stick to the bottom */
  left: 0;
  width: 100%;  /* Ensure it's full width */ /* Element width */
  text-align: center; /* Text alignment */
  z-index: 1000; /* Layer order */
}

a {
  text-decoration: none;
}
.feature-item {
  display: flex; /* Display type */
  justify-content: center; /* Horizontal alignment */
  align-items: center; /* Vertical alignment */
  flex-direction: column; /* Flexbox layout */
  padding: 1rem; /* Padding for spacing */
  text-align: center; /* Text alignment */
  transition: transform 0.2s ease-in-out; /* Smooth transitions */
}

.feature-item a {
  display: flex; /* Display type */
  flex-direction: column; /* Flexbox layout */
  align-items: center; /* Vertical alignment */
  text-decoration: none;
  color: inherit; /* Text color */
  transition: transform 0.2s ease-in-out; /* Smooth transitions */
}

.feature-item img {
  width: 40px; /* Element width */
  height: 40px; /* Element height */
  margin-bottom: 0.5rem; /* Margin for spacing */
}

.feature-item a:hover {
  transform: scale(1.08);
}


/* ✅ Final fix: Make login responsive on mobile */
@media (max-width: 600px) { /* Element width */
  .login-box {
    width: 90% !important; /* Element width */
    margin: 20px auto !important; /* Margin for spacing */
    padding: 20px !important; /* Padding for spacing */
  }

  .login-box input,
  .login-box button,
  .email-wrapper input,
  .password-wrapper input {
    width: 100% !important; /* Element width */
    padding-left: 1rem !important; /* Padding for spacing */
    padding-right: 1rem !important; /* Padding for spacing */
    box-sizing: border-box !important; /* Border styling */
  }

  .email-wrapper,
  .password-wrapper {
    max-width: 100% !important; /* Element width */
    width: 100% !important; /* Element width */
  }

  .toggle-icon {
    right: 20px !important;
  }
}