@font-face {
    font-family: 'SolaimanLipi';
    src: url('../../fonts/SolaimanLipi.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'SolaimanLipi', sans-serif;
}

/* Default (Day Mode) */
body {
    background-color: #ffffff;
    color: #000000;
}

/* Night Mode */
body.night-mode {
    background-color: #1F2937;
    color: #ffffff;
}

body.night-mode a {
    color: #bb86fc;
}

/* Navbar Dark Mode */
.navbar-dark-mode {
    background-color: #0e0e0e; /* Dark background */
    color: #ffffff; /* Light text */
    border-bottom: 1px solid #333; /* Subtle border for dark mode */
}

.navbar-dark-mode .navbar-brand img {
    filter: brightness(0.8); /* Optional: dim logo for night mode */
}

.navbar-dark-mode .nav-link {
    color: #bbbbbb; /* Light gray for links */
}

.navbar-dark-mode .nav-link:hover {
    color: #ffffff; /* Highlight on hover */
}

.navbar-dark-mode .dropdown-menu {
    background-color: #1e1e1e; /* Dark dropdown background */
    border: 1px solid #333; /* Subtle border */
}

.navbar-dark-mode .dropdown-item {
    color: #bbbbbb;
}

.navbar-dark-mode .dropdown-item:hover {
    color: #ffffff;
    background-color: #333;
}


/* Toggle Switch Styles */
.custom-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 25px;
}

.custom-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

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

.card-light-mode {
    background-color: #f2f2f2; /* Light background color */
    color: #000; /* Dark text color */
}

.toggler-dark-mode {
    background-color: #444; /* Dark background color */
    border-color: #666; /* Dark border color */
    color: #fff; /* Light text color */
}

.toggler-light-mode {
    background-color: #fff; /* Light background color */
    border-color: #ccc; /* Light border color */
    color: #000; /* Dark text color */
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 25px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 2.5px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #007bff; /* Bootstrap Primary Color */
}

input:checked + .slider:before {
    transform: translateX(25px);
}

.label-icons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 70px;
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensures the body takes at least the full height of the viewport */
}

.content {
    flex: 1; /* Allow content to expand and fill available space */
}

.card-img-top {
    position: relative; /* Ensures the overlay can be positioned absolutely */
}

.middle-overlay {
    position: absolute;
    top: 100%; /* Centers vertically */
    left: 20%; /* Centers horizontally */
    transform: translate(-50%, -50%); /* Perfect centering */
    background-color: #f2f2f2; /* Semi-transparent background */
    padding: 10px 20px; /* Adds padding around the text */
    border-radius: 5px; /* Slightly rounded corners */
    margin-left: 20px;
}

.middle-overlay h6 {
    margin: 0; /* Removes default margin for the text */
    font-size: 14px; /* Adjusts text size */
}

footer {
    font-size: 18px;
    color: #333;
}

footer a {
    color: #333;
    text-decoration: none;
}

footer a:hover {
    color: #007bff;
    text-decoration: underline;
}

footer .form-control {
    max-width: 200px;
    display: inline-block;
}

footer hr {
    border-color: #ddd;
    margin: 20px 0;
}

footer .footer-bottom {
    background-color: #f1f1f1; /* Light gray background for the bottom footer */
    padding: 10px 0;
    color: #666; /* Slightly darker text for better contrast */
}

footer .footer-bottom a {
    color: #666; /* Match link color with text */
    text-decoration: none;
}

footer .footer-bottom a:hover {
    color: #007bff;
}

/* Overlay that covers the entire screen */
#overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Semi-transparent black background */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Search Box inside the overlay */
#searchBox {
  background: white;
  padding: 20px;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#searchInput {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  outline: none;
}

#closeSearch {
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #f44336;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#closeSearch:hover {
  background-color: #d32f2f;
}

/* Styling for the search icon in navbar */
.search-icon {
  cursor: pointer;
  font-size: 20px;
  padding: 8px;
  color: #333; /* Set color for better visibility */
}

/* Navbar adjustments */
.navbar-nav {
  align-items: center; /* Ensures the navbar items are aligned properly */
}
