/* Resetting some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  /* Body styling */
  body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f9f9f9;
    padding-top: 50px; /* For header spacing */
    padding-bottom: 50px; /* For footer spacing */
  }

  /* Header styling */
  .header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: #000080;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    z-index: 2000;
  }

  .header .logo {
    font-size: 1.8em;
    font-weight: bold;
    color: white;
  }

  .header .logo .emoji {
    filter: brightness(0) invert(1); /* Makes emojis appear white */
    font-size: large;
  }


  .header .actions {
    display: flex;
    gap: 15px;
    align-items: center;
  }

  .header .actions .icon,
  .header .actions .button {
    color: white;
    text-decoration: none;
    font-size: 1.1em;
  }

  .main-content {
    flex: 1;
    padding: 15px;
  }

  /* Footer styling */
  .footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: #000080;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 2000;
  }

  .footer .footer-icon {
    color: white;
    font-size: 1.3em;
    text-decoration: none;
  }

  .footer .footer-icon:hover,
  .header .actions .button:hover {
    color: #ddd;
  }

  .fixed-tabs {
    position: sticky; /* Sticky positioning to keep it visible at the top */
    top: 0; /* Stick to the top of the viewport */
    z-index: 1020; /* Ensure it stays above other content */
    background-color: white; /* White background to cover content behind */
    border-bottom: 1px solid #dee2e6; /* Optional: Add a subtle bottom border */
  }

  .main-content {
    padding-top: 60px; /* Add padding to avoid content overlapping the tabs */
  }

  /* Popup container */
  .popup {
    position: fixed;
    bottom: 70px; /* Positioned above footer */
    right: 20px;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1050; /* Above other elements */
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95);
    transition: all 0.3s ease-in-out;
    width: auto; /* Adjusted to fit content */
    min-width: 150px; /* Ensure minimum width */
    overflow: visible;
  }

  .popup.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
  }


  /* Overlay for modal behavior */
  .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Black with 80% opacity */
    z-index: 1040; /* Below the popup menu but above the rest */
    visibility: hidden; /* Initially hidden */
    opacity: 0; /* Transparent */
    transition: opacity 0.3s ease;
  }

  /* Show the overlay */
  .modal-overlay.show {
    visibility: visible;
    opacity: 1;
  }


  /* Loader CSS*/
  /* From Uiverse.io by SelfMadeSystem */ 
.absolute {
    position: absolute;
  }
  
  .inline-block {
    display: inline-block;
  }
  
  .loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Lower than header and footer */
  }
  
  
  
  .w-2 {
    width: 0.5em;
  }
  
  .dash {
    animation: dashArray 2s ease-in-out infinite,
      dashOffset 2s linear infinite;
  }
  
  .spin {
    animation: spinDashArray 2s ease-in-out infinite,
      spin 8s ease-in-out infinite,
      dashOffset 2s linear infinite;
    transform-origin: center;
  }
  
  @keyframes dashArray {
    0% {
      stroke-dasharray: 0 1 359 0;
    }
  
    50% {
      stroke-dasharray: 0 359 1 0;
    }
  
    100% {
      stroke-dasharray: 359 1 0 0;
    }
  }
  
  @keyframes spinDashArray {
    0% {
      stroke-dasharray: 270 90;
    }
  
    50% {
      stroke-dasharray: 0 360;
    }
  
    100% {
      stroke-dasharray: 270 90;
    }
  }
  
  @keyframes dashOffset {
    0% {
      stroke-dashoffset: 365;
    }
  
    100% {
      stroke-dashoffset: 5;
    }
  }
  
  @keyframes spin {
    0% {
      rotate: 0deg;
    }
  
    12.5%,
    25% {
      rotate: 270deg;
    }
  
    37.5%,
    50% {
      rotate: 540deg;
    }
  
    62.5%,
    75% {
      rotate: 810deg;
    }
  
    87.5%,
    100% {
      rotate: 1080deg;
    }
  }
  
  #loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }
  
  #loader {
    transition: opacity 0.5s ease; /* 0.5 seconds fade-out */
    opacity: 1; /* Fully visible by default */
  }
  
  #loader.hidden {
    opacity: 0; /* Fully invisible */
    pointer-events: none; /* Prevent interactions */
  }
  
  /* Side Navbar */
.side-navbar {
  position: fixed;
  top: 0;
  right: -250px; /* Start off-screen */
  width: 250px;
  height: 100%;
  background-color: #000080;
  color: white;
  transition: right 0.3s ease-in-out;
  box-shadow: -4px 0 10px rgba(0, 0, 0, 0.3);
  z-index: 1050;
}

.side-navbar-content {
  padding: 20px;
}

.side-navbar ul {
  list-style: none;
  padding: 0;
}

.side-navbar ul li {
  padding: 15px 0;
}

.side-navbar ul li a {
  color: white;
  text-decoration: none;
  font-size: 1.2em;
}

.side-navbar ul li a:hover {
  color: #ffc800;
}

/* Close button */
#close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  border: none;
  background: none;
  color: white;
  cursor: pointer;
}

/* Active class for opening the sidebar */
.side-navbar.open {
  right: 0;
}

.emoji-white {
  filter: brightness(0) invert(1);
}

/* Overlay for background dim effect */
#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8); /* 80% black opacity */
  z-index: 998; /* Below the sidebar but above main content */
  display: none; /* Hidden by default */
  transition: opacity 0.3s ease-in-out;
}

/* Show overlay when active */
#overlay.active {
  display: block;
  opacity: 1;
}

/* Side Navbar Styling */
.side-navbar {
  position: fixed;
  top: 0;
  right: -250px; /* Initially off-screen */
  width: 250px;
  height: 100%;
  background: #000080;
  color: white;
  z-index: 1000; /* Above the overlay */
  transition: right 0.3s ease-in-out;
  box-shadow: -2px 0px 5px rgba(0, 0, 0, 0.5);
}

.side-navbar-content {
  padding: 20px;
}

#close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  position: absolute;
  top: 10px;
  right: 10px;
}

/* Show sidebar and overlay when active */
.side-navbar.open {
  right: 0;
}

/* Styling the list items for the side navbar */
.side-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-nav-list li {
  margin-bottom: 20px;
}

.side-nav-list a {
  text-decoration: none;
  color: white;
  display: block;
}

.icon-text {
  display: flex;
  align-items: center; /* Vertically align icon and text */
  gap: 15px; /* Add spacing between icon and text */
}

.icon-text i {
  font-size: xx-large; /* Adjust icon size */
  color: white;
}

.icon-text span {
  font-size: 18px; /* Adjust text size */
  font-weight: normal; /* Adjust font weight */
}

.emoji {
  font-family: Arial;
  font-weight: bold;
  color: white;
}

.emoji-white {
  font-size: 13px;
}
