:root {
  /* Dark Theme Base */
  --bg-primary: rgb(17, 17, 19);
  --bg-secondary: rgb(26, 28, 30);
  --bg-tertiary: rgb(38, 40, 42);

  /* Text Hierarchy */
  --text-primary: rgb(255, 255, 255);
  --text-secondary: rgb(218, 218, 218);
  --text-muted: rgb(161, 161, 170);

  /* Border System */
  --border-primary: rgb(63, 63, 63);
  --border-subtle: rgba(255, 255, 255, 0.1);

  /* Neon Green Accent */
  --accent-primary: rgb(218, 255, 1);
  --accent-hover: rgb(166, 190, 21);
  --accent-pressed: rgb(134, 155, 16);
  --accent-bg: rgba(218, 255, 1, 0.1);

  /* Secondary Accent */
  --accent-purple: rgb(127, 74, 142);
}



body {
  font-size: 20px;
  font-family: 'Inter', sans-serif !important;
  display: inline;
  margin: 0px !important;
}

.highlight {
  color: var(--accent-primary);
  font-size: 40px;
}

.bg-light {
  background-color: #f4f4f4 !important;
}

a,
button {
  cursor: pointer;
}

/*Nav br styling*/
.bg-dark {
  background-color: #000000;
  color: white;
}


.navbar {
  position: sticky;
  display: flex;
  top: 0px;
  background: rgba(17, 17, 19, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0px;
  z-index: 1000;
  width: 100%;
}

.navbar-nav {
  display: flex;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.2s;
  cursor: pointer;
  font-family: Inter, sans-serif;
}

.navbar li {
  list-style-type: none;
}

.navbar-collapse {
  position: fixed;
  right: 20px;
  text-align: right;
  /* margin-block-start: 0.5em; */
}

.nav-toggler {
  display: none;
}

.dropdown-item {
  font-size: small;
  border-bottom: 1px solid var(--accent-primary);
  padding: 16px;
}

@media (max-width: 800px) {
  .nav-toggler {
    display: flex;
    background-color: white;
    border-radius: 10px;
    width: 40px;
    height: 40px;
    margin: 10px;
  }

  .nav-toggler img {
    width: 40px;
    height: 40px;
  }

  .navbar-collapse {
    position: fixed;
    right: 5px;
    text-align: center;
    margin-block-start: 0.5em;
  }

  .navbar-nav {
    top: 60px;
    display: none;
    position: fixed;
    left: 0;
    width: 50%;
    padding-left: 0;
    margin-top: 0;
    border: 1px solid var(--accent-primary);
    background-color: #343a40;
    color: white;
  }

  .dropdown-toggle {
    display: grid;

  }

  .dropdown-toggle a {
    border-bottom: 1px solid var(--accent-primary);
  }

  .dropdown-menu {
    position: relative;
    left: 50%;
    top: 0px;
    width: 50%;
  }

  .dropdown-item {
    font-size: small;
    border-bottom: 1px solid var(--accent-primary);
    padding: 16px;
  }

  ul.centering {
    position: fixed;
    right: 5px;
  }

  .centering .nav-link,
  .navbar-brand .nav-link {
    padding-left: 0px;
    padding-right: 0px;
  }

  .showmenu {
    display: block !important;
    width: 40% !important;
    top: 70px !important;
  }

  a.dropdown-item {
    font-size: small;
    border: 1px solid var(--accent-primary);
    ;
  }
}

@media (max-width: 500px) {
  .navbar-nav {
    top: 60px;
    display: none;
    position: fixed;
    left: 0;
    width: 100%;
    padding-left: 0;
    margin-top: 0;
    border: 1px solid var(--accent-primary);
    background-color: #343a40;
    color: white;
  }
}

li {
  text-align: end;
}

li.navbar-brand {
  font-size: 20px;
  padding-block-start: 1em;
  margin-left: 0.5em;
}

li a {
  color: white;
  padding: 8px 16px;
  text-decoration: none;
}

li a.active {
  border: 1px solid var(--accent-primary);
  color: white;
}

li a:hover:not(.active) {
  border: 1px solid var(--accent-primary);
  color: white;
}

li.dropdown-toggle:hover .dropdown-menu {
  display: grid;
}

.dropdown-menu {
  background-color: #343a40 !important;
  border-bottom: 1px solid var(--accent-primary) !important;
  border-radius: 0px !important;
  color: white !important;
  margin-top: 5px;
  display: none;
}


/*Start swith on navber for tracking*/
.switch {
  position: relative;
  display: inline-block;
  width: 70px;
  height: 1em;
}

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

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #000;
  -webkit-transition: .4s;
  transition: .4s;
  padding-left: 4px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 0.9em;
  width: 33px;
  left: 4px;
  bottom: 0.05em;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked+.slider {
  background-color: #000000;
}

input:focus+.slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked+.slider:before {
  -webkit-transform: translateX(33px);
  -ms-transform: translateX(33px);
  transform: translateX(33px);
}

/*only switch is visibe in mobile view*/
@media (max-width: 500px) {
  .nav-link i {
    display: none;
  }
}

/* End of tracking with on navbar*/
/*END NAVBAR*/
h3,
h5 {
  margin: 0px;
  color: white;
}



/* The Modal (background) */
.modal {
  display: none;
  /* Hidden by default */
  position: fixed;
  /* Stay in place */
  z-index: 1000;
  /* Sit on top */
  left: 0;
  top: 0;
  width: 100%;
  /* Full width */
  height: 100%;
  /* Full height */
  overflow: auto;
  /* Enable scroll if needed */
  background-color: rgb(0, 0, 0);
  /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4);
  /* Black w/ opacity */
}

/* Modal Content/Box */
.modal-content {
  background-color: #fefefe;
  margin: 15% auto;
  right: 0;
  bottom: 0;

  /* 15% from the top and centered */
  padding: 0px;
  border: 1px solid #888;
  width: fit-content;
  /* Could be more or less, depending on screen size */
  border-radius: 12px;
}

@media (max-width: 872px) {
  .modal-content {
    background-color: var(--bg-secondary);
    margin: 20% auto;
    /* 15% from the top and centered */
    padding: 0px;
    border: 1px solid var(--accent-primary);
    width: fit-content;
    /* Could be more or less, depending on screen size */
    border-radius: 12px;
  }
}

@media (max-width: 500px) {
  .modal-content {
    background-color: var(--bg-secondary);
    margin: 35% auto;
    /* 15% from the top and centered */
    padding: 0px;
    border: 1px solid var(--accent-primary);
    width: fit-content;
    /* Could be more or less, depending on screen size */
    border-radius: 12px;
  }
}


.modal-header {
  border-bottom: 1px solid #000;
  height: 1em;
  background-color: var(--bg-primary);
  color: white;
  padding: 10px;
  border-radius: 10px 10px 0 0;
  border: 1px solid var(--accent-primary);
  unicode-bidi: isolate;
  display: flex;
  justify-content: space-between;
  /* width: fit-content; */

}

.modal-title {
  /* width: 90%; */
  width: fit-content;
}

.modal-body {
  background-color: var(--bg-tertiary);
  border: 1px solid var(--accent-primary);
  /* width: fit-content; */
}

.modal-footer {
  background-color: var(--bg-primary);
  font-size: 1em;
  text-align: center;
  width: 100%;
  height: 3em;
}

.modal-footer div {
  color: red;
}

.show {
  display: block !important;
}

.hide {
  display: none !important;
}

.close {
  color: #000;
  float: right;
  font-size: 20px;
  font-weight: bold;
  width: 10%;
  text-align: end;
  cursor: pointer;
}

.close span {
  color: white;
}



/*End modal*/

.container-fluid {
  padding-top: 1px;
}

/*Start Map*/
.map {
  height: 700px;
  width: 100%;
}

.olPopup {
  position: absolute;
  background-color: rgba(17, 17, 19, 0.95) !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2) !important;
  padding: 5px !important;
  border-radius: 10px !important;
  border: 1px solid var(--accent-primary) !important;
  width: 90px !important;
  height: 17px !important;
  /* bottom: 12px;
  left: -50px; */
  /* min-width: 280px; */
}

.olPopupContent {
  font-size: 12px !important;
  padding: 0 !important;
  overflow: hidden !important;
  text-align: center;
  word-wrap: break-word;
  width: 70px !important;
  height: 4em !important;
  color: #fff !important
}

/*Make sure attribution is in the bottom and not blocking view*/
.olControlAttribution {
  bottom: 5px ! important;
}

/*End Map*/


/*START forms in modals*/
form {
  text-align: center;
}

.form-control {
  border-radius: 5px;
  height: 3em;
  border: 1px solid #aaa;
  margin-right: 10px;
  margin-top: 10px;
  width: 90%;
}

.btn-holder {
  display: flex;
  padding: 10px;
  justify-content: space-around;
}

.btn-holder a {
  color: white;
}

.btn-holder button {
  background-color: var(--accent-primary);
  color: black;
}

/*for filter option*/
.btn-holder input {
  margin-right: 50px;
}

button {
  font-size: 0.7em;

}

.btn-primary {
  border-radius: 5px;
  background-color: #000080;
  color: white;
  height: 3em;
  border: 1px solid #aaa;
  width: 40%;
}

.btn-secondary {
  border-radius: 5px;
  background-color: #313131;
  color: white;
  height: 3em;
  border: 1px solid #aaa;
  width: 40%;
}

.btn-warning {
  border-radius: 5px;
  background-color: #FF9933;
  color: white;
  height: 3em;
  border: 1px solid #aaa;
}

.btn-link {
  font-size: 0.7em;
  margin: 1em;
  color: #4a4a4a;
  text-align: left;
}

@media (max-width: 500px) {
  .btn-link {
    font-size: 0.7em;
    margin-top: 1em;
    color: #4a4a4a;
    text-align: left;
  }
}

.with-label {
  display: block;
  margin-left: 1em;
}

.with-label .container {
  display: flex;
  justify-content: space-between;
  width: 90%;
}

.with-label a {
  font-size: 0.7em;
  white-space: nowrap;
  margin-top: 1.3em;
  color: white;
}

@media (max-width: 500px) {
  .with-label a {
    font-size: 0.5em;
    white-space: nowrap;
    margin-top: 1.3em;
  }
}

input {
  min-width: 200px;
  margin-right: 1em;
  margin-left: 1em;
}

.with-label input {
  margin-right: 1em;
}

select {
  margin-left: 1em;
  min-width: 200px;
}

textarea {
  margin-left: 1em;
}

.show-help {
  font-size: 0.7em;
  white-space: nowrap;
  color: #000;
}


textarea {
  height: 5em ! important;
}

#messageModal .modal-body p {
  margin-left: 10px;
  margin-right: 10px;
  display: flex;
}

/*END modals*/

/*START loading icon modal*/
.loadingmodal {
  display: none;
  position: fixed;
  z-index: 2000;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(255, 255, 255, .8) url('/css/FhHRx.gif') 50% 50% no-repeat;
}

/* When the body has the loading class, we turn
   the scrollbar off with overflow:hidden */
body.loading .loadingmodal {
  overflow: hidden;
}

/* Anytime the body has the loading class, our
   modal element will be visible */
body.loading .loadingmodal {
  display: block;
}

/*End loading icon modal*/


/*Home csss*/
.container {
  height: 100%;
  gap: 20px;
}

.top-card {
  background: #1a1c1e;
  background: var(--bg-secondary);
  border: 1px solid #ffffff1a;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  height: 100%;
  width: 80%;
  overflow: hidden;
  padding: 32px;
  margin-bottom: 32px;
  position: relative;
  transition: all .3s ease;
  text-align: center;
  justify-content: center;
}

.top-card:hover {
  border-color: #daff01;
  border-color: var(--accent-primary);
  box-shadow: 0 20px 40px #0000004d;
  transform: translateY(-4px);

}


.top-container {
  padding: 8px 16px;
  height: 30%;
  display: block;
}

.top-card ul {
  list-style: none;
  padding-top: 24px;
  margin: 0px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.top-card ul li {
  display: flex;
  align-items: start;
  text-align: center !important;
  gap: 12px;
  font-size: 20px;
  color: var(--text-secondary);
}


.left-container {
  padding: 8px 16px;
  height: 70%;
  width: 40%;
  color: #4a4a4a;
}

.right-container {
  padding: 8px 16px;
  height: 70%;
  width: 80%;
  padding-left: 16px;
  color: #4a4a4a;
  display: contents;
}

.map-home {
  height: 400px;
  width: 100%;
}



#searchForm p {
  text-align: left;
  color: #ffffff;
}

@media (max-width: 500px) {

  .top-card {
    display: inline-block !important;
  }

  .top-card ul li {
    display: flex;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    align-items: start;
    text-align: start !important
  }

  .top-card ul {
    margin-block-start: 10px;
    padding-inline-start: 10px;
  }



  .left-container {
    padding: 4px 8px;
    height: 70%;
    width: 100%;
    background-color: #4a4a4a;
  }

  .right-container {
    padding: 4px 8px;
    height: 70%;
    width: 100%;
    padding-left: 0px;
    background-color: #4a4a4a;
  }

  #search {
    margin-top: 1em;
  }

  #searchForm p {
    text-align: center;
  }
}

.bottom-bar {
  display: flex !important;
  justify-content: space-evenly !important;
  align-items: center !important;
  padding-top: 5px !important;
  padding-bottom: 5px !important;
  border-top: 1px solid var(--accent-primary) !important;
}

.copyright {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

.bottom-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.bottom-link {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.divider {
  color: var(--text-muted);
}

.msg-card {
  font-size: small;
  border: 1px solid var(--accent-purple);
  background-color: #4a4a4a;
}