body { /* Base body styles */
  margin: 0; /* Margin for spacing */
  font-family: Arial, sans-serif; /* Font family for consistency */
  background: #f8f8ff; /* Background styling */
  color: #333; /* Text color */
}

/* Reset and Base Styles */
body { /* Base body styles */
  margin: 0; /* Margin for spacing */
  font-family: 'Poppins', sans-serif; /* Font family for consistency */
  background-color: #f9f9f9; /* Background styling */
  color: #333; /* Text color */
  padding-top: 70px;
}

h2, h3 {
  text-align: center; /* Text alignment */
}

/* Header */
.header-bar {
  position: fixed; /* Changed from sticky */
  top: 0;
  width: 100%;
  background-color: #a8c2ff;
  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; /* Display type */
  justify-content: space-between; /* Horizontal alignment */
  align-items: center; /* Vertical alignment */
  padding: 10px 20px; /* Padding for spacing */
  flex-wrap: wrap; /* Flexbox layout */
}

.logo-section {
  display: flex; /* Display type */
  align-items: center; /* Vertical alignment */
}

.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: #0015ff; /* Text color */
}

.nav-links {
  display: flex; /* Display type */
  gap: 10px; /* Gap between elements */
}

.nav-link {
  padding: 8px 16px; /* Padding for spacing */
  background-color: #0015ff; /* Background styling */
  color: white; /* Text color */
  text-decoration: none;
  border-radius: 6px; /* Border styling */
  font-weight: 700; /* Font weight */
  border: 2px solid #0015ff; /* Border styling */
}

.nav-link:hover {
  background-color: white; /* Background styling */
  color: #0015ff; /* Text color */
}
/* ===== 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: #0015ff; /* Text color */
}

.login-box input {
  width: 100%; /* Element width */
  padding: 0.8rem; /* Padding for spacing */
  margin-bottom: 1rem; /* Margin for spacing */
  border: 1px solid #0015ff; /* 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 #0015ff; /* 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 #0015ff; /* 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: #0015ff; /* 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: #0015ff; /* 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 */
}








/* Popup Overlay */
.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.3); /* slightly transparent */
  backdrop-filter: blur(6px);       /* ✅ Blur background */
  -webkit-backdrop-filter: blur(6px); /* ✅ Safari support */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  padding: 20px;               /* ✅ prevents touching edges */
  transition: opacity 0.3s ease, visibility 0.3s ease;
  box-sizing: border-box;      /* ✅ ensures padding doesn’t overflow */
}

.popup-overlay.show {
  opacity: 1;
  visibility: visible;
}

.popup-overlay.hide {
  opacity: 0;
  visibility: hidden;
}

/* Popup Card */
.popup-card {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  width: 100%;
  max-width: 400px;            /* ✅ wider on desktop, still responsive */
  text-align: center;
  box-shadow: 0px 6px 20px rgba(0,0,0,0.3);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.popup-overlay.show .popup-card {
  transform: scale(1);
}

.popup-card h2 {
  margin: 0;
  color: red;
  font-size: 22px;
}

.popup-card p {
  font-size: 16px;
  margin: 12px 0 0 0;         /* ✅ small spacing */
}

/* Buttons */
.popup-buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  gap: 10px;
  flex-wrap: wrap;             /* ✅ allow wrapping on narrow screens */
}

.btn-home, .btn-ok {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  min-width: 120px;
}

.btn-home {
  background: #0015ff;
  color: #fff;
}

.btn-ok {
  background: #0015ff;
  color: #fff;
}

.btn-home:hover { background: #2f40ff; }
.btn-ok:hover { background: #2f40ff; }

/* Fade animations */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes fadeOut {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(0.9); }
}

/* ✅ Extra: stack buttons vertically on very small screens */
@media (max-width: 350px) {
  .popup-buttons {
    flex-direction: column;
  }
  .btn-home, .btn-ok {
    width: 100%;
  }
}








/* 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: #bac6ff;
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background-color: #0015ff;
}

/* Arrows: Only WebKit allows this */
::-webkit-scrollbar-button:single-button {
  display: block;
  background-color: #bec0ff;
  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: #0015ff; /* Text color */
}

.footer-bar {
  background-color: #bac6ff; /* 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: 85% !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;
  }
}









/* Block common ad elements inside sidebar */
#sidebar ins,
#sidebar iframe,
#sidebar .adsbygoogle {
  display: none !important;
  visibility: hidden !important;
}

/* Sidebar title */
.sidebar-title {
  margin-top: 17px;   /* space below close button */
  margin-bottom: 0px;
  font-size: 20px;
  font-weight: bold;
  text-align: left;
  color: #333;
}

/* Divider line */
.sidebar-divider {
  height: 2px;
  background: #ccc;
  margin: 5px 0 20px;
}



/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 300px;
    height: 100vh; /* full viewport height */
  overflow-y: auto; /* allow scroll if content is longer */

  background: #f5f5f5;
  box-shadow: -2px 0 8px rgba(0,0,0,0.3);
  padding: 0px 20px;
  transition: right 0.3s ease;
  z-index: 9999;
}
.sidebar.open {
  right: 0;
  height: 100vh;
}

/* Sidebar links & buttons */
.sidebar a, .sidebar button:not(.close-btn) {
  display: block;
  margin: 15px 0;   /* consistent spacing */
  padding: 12px;
  text-align: center;
  border-radius: 6px;
  background:  #0015ff;
  color: #fff;
  text-decoration: none;
  transition: background 0.3s;
}
.sidebar a:hover, .sidebar button:not(.close-btn):hover {
  background: #005bb5;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
}
/* On mobile, move close button to 10px from top */
@media (max-width: 768px) {
  .close-btn {
    top: 10px;
    right: 15px;
  }
}
/* Default (light mode) */
.dark-mode-card {
  padding: 12px;
  background: #ddd;
  border-radius: 8px;
  margin: 15px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #000;
}

/* Dark mode version */
body.dark .dark-mode-card {
  background: #333;
  color: #fff;
}


.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}
.switch input { display: none; }
.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #ccc;
  border-radius: 34px;
  transition: 0.4s;
}
.slider:before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  border-radius: 50%;
  transition: 0.4s;
}
input:checked + .slider {
  background-color:  #0015ff;
}
input:checked + .slider:before {
  transform: translateX(26px);
}

/* Light / Dark */
body.light { background: #fff; color: #000; }
body.dark { background: #121212; color: #fff; }



.adsbygoogle {
  text-align: center;     /* center the ad horizontally */
  margin: 20px 0;         /* spacing above & below */
}

.adsbygoogle ins.adsbygoogle {
  display: inline-block;  /* makes it center correctly */
  max-width: 100%;        /* responsive */
}
