@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&display=swap");

:root{
    --header-height: 4rem;
    --footer-height: 6rem;
    --nav-width: 68px;
    --device-list-loading: 32px;
    --device-list-search: 38px;
    --toolbar-maps-height: 46px;
    --device-map-toolbar: 44px;
    --first-color: #384045;
    --first-color-light: #95999b;
    --white-color: #F7F6FB;
    --body-font: 'Nunito', sans-serif;
    --normal-font-size: 1rem;
    --z-fixed: 100
    --bs-btn-hover-color: #0000FF !important;
}
*,::before,::after{
    box-sizing: border-box
}

.btn:hover {
  color: #0000FF !important;
}

html {
  height: -webkit-fill-available;
}

body{
    position: relative;
    margin: var(--header-height) 0 0 0;
    padding: 0 1rem;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    transition: .5s
    min-height: 100vh;
    min-height: -webkit-fill-available;
    background-color: #F8F9FA;
}
a{
    text-decoration: none;
}
.header{
    width: 100%;
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    background-color: var(--white-color);
    z-index: var(--z-fixed);
    transition: .5s
}
.header_toggle{
    color: var(--first-color);
    font-size: 1.5rem;
    cursor: pointer
}
.header_img{
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    border-radius: 50%;
    overflow: hidden
}
.header_img img{
    width: 40px
}
.l-navbar{
    position: fixed;
    top: 0;
    left: -30%;
    width: var(--nav-width);
    height: 100vh;
    background-color: var(--first-color);
    padding: .5rem 1rem 0 0;
    transition: .5s;
    z-index: var(--z-fixed)
}
.nav{
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden
}
.nav_logo, .nav_link{
    display: grid;
    grid-template-columns: max-content max-content;
    align-items: center;
    column-gap: 1rem;
    padding: .5rem 0 .5rem 1.5rem
}
.nav_logo{
    margin-bottom: 2rem
}
.nav_logo-icon{
    font-size: 1.25rem;
    color: var(--white-color)
}
.nav_logo-name{
    color: var(--white-color);
    font-weight: 700
}
.nav_link{
    position: relative;
    color: var(--first-color-light);
    margin-bottom: 1.5rem;
    transition: .3s
}
.nav_link:hover{
    color: var(--white-color)
}
.nav_icon{
    font-size: 1.25rem
}
.show{
    left: 0
}
.body-pd{
    padding-left: calc(var(--nav-width) + 1rem)
}
.active{
    color: var(--white-color)
}
.active::before{
    content: '';
    position: absolute;
    left: 0;
    width: 2px;
    height: 32px;
    background-color: var(--white-color)
}
.height-100 {
    height:100vh
}

@media screen and (min-width: 768px){
    body{
        margin: calc(var(--header-height) + 1rem) 0 0 0;
        padding-left: calc(var(--nav-width) + 2rem)
    }
    .header{
        height: calc(var(--header-height) + 1rem);
        padding: 0 2rem 0 calc(var(--nav-width) + 2rem)
    }
    .header_img{
        width: 40px;
        height: 40px
    }
    .header_img img{
        width: 45px
    }
    .l-navbar{
        left: 0;
        padding: 1rem 1rem 0 0
    }
    .body-pd{
        padding-left: calc(var(--nav-width) + 188px)
    }

    #nav-bar.show{
        width: calc(var(--nav-width) + 156px)
    }
}

#vadtrack-login-container {
  height: calc(100vh - var(--header-height) - var(--footer-height));
}

#vadtrack-map, .vadtrack-container {
  height: calc(100vh - var(--header-height) - var(--footer-height) - var(--toolbar-maps-height));
}

.vadtrack-map-container {
  height: calc(100vh - var(--header-height) - var(--footer-height) - var(--toolbar-maps-height) - var(--device-map-toolbar));
}

#devicesList {
  height: calc(100vh - var(--header-height) - var(--footer-height) - var(--device-list-loading) - var(--device-list-search));
}

.search-container {
  position: relative;
  flex-grow: 1;
}

.search-container input {
  padding-right: 2.5rem;
}

.search-container .bx {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
}

.bxs-cog {
  font-size: 1.5rem;
  color: #afb2b4;
  cursor: pointer;
  margin-left: 10px;
}

.stats-container {
  display: flex;
  justify-content: space-around;
  margin-top: 10px;
}

.stat-item {
  text-align: center;
  cursor: pointer;
}

.stat-number {
  font-size: 1.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: #888;
}

.stat-bar {
  height: 4px;
  background-color: transparent;
  margin-top: 5px;
}

.stat-bar.active {
  background-color: #007bff;
}

.container-km {
	font-size: .7rem;
	gap: .5rem;
}

