.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background-color: #393939;
}

/* Make tabs full width */
.nav-tabs {
  display: flex;
  width: 100%;
  background-color: #0f5aaa;
  /* border-bottom: 2px solid #007bff; */
}
.sub-nav-tabs {
  background-color: #000000;
}
.nav-tabs .nav-item {
  /* flex: 1; */
  text-align: center;
  padding-inline: 20px;
}

.nav-pills {
  padding: 10px;
}
.nav-tabs .nav-link {
  width: 100%;
  color: #ffffff;
  /* background-color: #2674c6; */
  border: none;
  border-radius: 0;
  padding: 10px 10px;
  font-weight: normal;
}
.nav-link {
  color: #000;
}
.nav-link:hover {
  color: #6e6e6e;
}
.nav-tabs .nav-link:hover {
  background-color: #414141;
  color: #ffffff;
}
.nav-tabs .nav-link.active {
  /* background-color: #1b60aa; */
  background-color: #ffffff2e;
  color: white;
  font-weight: bold;
  border-bottom: 4px solid white;
}
.tab-content {
  background: #ffffff;
  /* border: 1px solid #007bff; */
  border-top: none;
  /* padding: 4px; */
}

/* Make tabs responsive */
@media (max-width: 767px) {
  .nav-tabs .nav-item {
    text-align: left; /* Align text to the left on small screens */
  }
}

#popup {
  display: none;
  position: fixed;
  bottom: 20px; /* Position 20px from the bottom */
  right: 20px; /* Position 20px from the right */
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  opacity: 0; /* Start with opacity 0 for fade-in */
  transition: opacity 1s ease-in-out; /* Fade-in effect */
}

/* Fade-in animation */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

/* Fade-out animation */
@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

nav .logo {
  display: flex;
  align-items: center;
}

nav .logo-image {
  width: 45px;
  height: 90px;
}

nav .logo-image img {
  width: auto;
  height: 60px;
  object-fit: cover;
  padding-left: 18px;
  margin-top: 10px;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 200px;
  background-color: #000;
  padding: 10px 0 10px 10px;
}

nav .menu-items {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 150px);
  justify-content: space-between;
}

nav .menu-items li {
  list-style: none;
}

nav .menu-items li a {
  display: flex;
  align-items: center;
  height: 50px;
  text-decoration: none;
}

nav .menu-items li.active a {
  border-top-left-radius: 5px;
  border-bottom-left-radius: 5px;
  position: relative;
}

nav .menu-items li a {
  color: white;
  font-size: 24px;
  min-width: 45px;
}
nav .menu-items li a i {
  color: white;
  font-size: 24px;
  min-width: 45px;
  text-align: center;
}

nav .menu-items li a .links {
  font-size: 16px;
  color: white;
}

nav .menu-items li.active a {
  background-color: #fff;
}

nav .menu-items li.active a:before {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  right: 0;
  top: -40px;
  border-radius: 10%;
  box-shadow: 20px 20px #fff;
  pointer-events: none;
}

nav .menu-items li.active a:after {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  right: 0;
  bottom: -40px;
  border-radius: 10%;
  box-shadow: 20px -20px #fff;
  pointer-events: none;
}

nav .menu-items li.active a .links {
  color: #000;
}

nav .menu-items li.active a i {
  color: #000;
}

.dashboard {
  position: relative;
  left: 200px;
  width: calc(100% - 200px);
  height: calc(100vh);
  background-color: #ffffff;
  /* padding: 14px 14px; */
}

.settingsTable {
  height: 100%;
}

#common-settings-tab,
#arrival-statistics-tab {
  margin-top: 11px;
}

#common-settings-title,
#arrival-statistics-title {
  border-radius: 5px;
  background-color: #393939;
}

#modal,
#modalIP {
  display: none; /* Hide the modal by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* semi-transparent background */
  justify-content: center;
  align-items: center;
}
#modalContent,
#modalContentIP {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  position: relative; /* For positioning the close icon */
}
/* Close button styling */
.close-icon {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
}
.close-icon:hover {
  color: #000;
}
#errorIPAddress {
  color: red;
}

.ethernetIP {
  cursor: pointer;
}
.dropdown-item:hover {
  background-color: rgb(235, 235, 235);
}
.dropdown-item:active {
  background-color: rgb(177, 177, 177);
}
