[data-bs-theme="batcam"] {
    --body-background-color: #ECF0F1;
    --bottom-menu-background-color: #001f34;
    --bottom-menu-item-main-color: #BFBFBF;
    --bottom-menu-item-main-active-color: #131313;
    --bottom-menu-item-active-background-color: #FFFFFF;
    --bottom-menu-item-background-color: rgba(51, 51, 51, 0.8);
    --toggle-menu-background-color-collapse: #000000;
    --toggle-menu-background-color: #FFFFFF;
    --toggle-menu-main-color-collapse: #FFFFFF;
    --toggle-menu-main-color: #000000;
    --app-header-main-color: #141515;
    --loader-second-color: #005fa8;
    --loader-first-color: #001f34;
    --loader-background-color: rgba(252, 252, 252, 1);
}

html, body {
    font-family: "Roboto", sans-serif;
    font-size: 15px;
    line-height: 1.55rem;
    letter-spacing: -0.015rem;
    background: var(--body-background-color);
    width: 100%;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    overflow: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* BOTTOM MENU */
.bottom-menu {
    height: 65px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px;
    padding-right: 4px;
    margin-bottom: 20px;
    background-color: var(--bottom-menu-background-color);
    border-radius: 50px;
    border-width: 0;
    max-width: 78%;
    margin-left: auto;
    margin-right: auto;
    -webkit-box-shadow: 0px 10px 3px -4px rgba(0,0,0,0.09);
    box-shadow: 0px 10px 3px -4px rgba(0,0,0,0.09);
    opacity: 0;
    transition: max-width 0.3s, margin-right 0.3s ease, opacity 0.6s ease-in-out;
    z-index: 1000;
}

.bottom-menu-half {
    max-width: 36%;
}

.bottom-menu .item {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 56px;
    width: 100%;
    aspect-ratio: 1;
}

.bottom-menu .item iconify-icon {
    font-size: 1.8em;
    color: var(--bottom-menu-item-main-color);
    transition: color 0.3s ease, font-size 0.3s ease, transform 0.3s ease;
}

.bottom-menu .item iconify-icon::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    max-width: 45px;
    max-height: 45px;
    border-radius: 50%;
    background-color: var(--bottom-menu-item-background-color);
    transition: background-color 0.3s ease, transform 0.3s ease;
    z-index: -1;
}

.bottom-menu .item.active iconify-icon::before {
    background-color: var(--bottom-menu-item-active-background-color);
    max-width: 55px;
    max-height: 55px;
}

.bottom-menu .item.active iconify-icon {
    color: var(--bottom-menu-item-main-active-color);
    font-size: 3em;
}

.bottom-menu.nav {
    flex-wrap: nowrap;
}

.bottom-menu.collapsed {
    height: 70px;
    max-width: 70px;
    justify-content: center;
    margin-right: 12%;
    background-color: transparent; /* hide active item circle */
    box-shadow: none; /* hide active item circle */
    transition: max-width 0.2s ease; /* hide active item circle */
}

.bottom-menu .item {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.bottom-menu.collapsed .item {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    position: absolute;
    transition: none;
}

.bottom-menu.collapsed .item.active {
    opacity: 1;
    visibility: hidden; /* visible */
    transform: translateX(0);
    position: relative;
}

.bottom-menu.collapsed #toggle-menu {
    opacity: 1;
    visibility: visible;
    position: absolute;
    padding: 10px;
    left: 75px;

    /* Stile per il cerchio */
    width: 35px;
    height: 35px;
    background-color: var(--toggle-menu-background-color-collapse);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--toggle-menu-main-color-collapse);

    font-size: 1.4em;
    line-height: 1.4em;
    z-index: 997;
}

.bottom-menu:not(.collapsed) #toggle-menu {
    opacity: 1;
    visibility: visible;
    margin-left: 5px;
    margin-right: 2px;
    padding: 10px;

    /* Stile per il cerchio */
    width: 35px;
    height: 35px;
    background-color: var(--toggle-menu-background-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--toggle-menu-main-color);

    font-size: 2em;
    line-height: 2em;
    z-index: 999;
}
/* END BOTTOM MENU */

/* CAROUSEL */
.carousel {
    padding-top: 70px;
}

.carousel-inner {
    height: 100%;
}

.carousel-pane {
    background: var(--body-backgroud-color);
    padding: 3%;
}

.carousel-item {
    transition: transform 0.3s ease-in-out;
}
/* END CAROUSEL */

/* HEADER MENU */
.app-header {
    min-height: 56px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: env(safe-area-inset-top);
    left: 0;
    right: 0;
    background: var(--body-background-color);
    color: var(--app-header-main-color);
    width: 100%;
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.app-header:before {
    content: '';
    height: env(safe-area-inset-top);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1001;
}

.app-header .left,
.app-header .right {
    height: 56px;
    display: flex;
    align-items: center;
    position: absolute;
}

.app-header .left iconify-icon {
    font-size: 30px;
}

.app-header .right iconify-icon {
    font-size: 26px;
}

.app-header .left .header-button,
.app-header .right .header-button {
    min-width: 36px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--app-header-main-color);
    position: relative;
    text-decoration: none;
}

.app-header .left .header-button .btn,
.app-header .right .header-button .btn {
    font-size: 16px;
    height: 32px;
    padding: 0 14px;
    font-weight: 400;
}

.app-header .left .header-button:active,
.app-header .right .header-button:active {
    opacity: 0.6;
}

.app-header .left {
    left: 8px;
    top: 0;
}

.app-header .right {
    right: 8px;
    top: 0;
}

.app-header .left span {
    font-size: 0.9em;
    font-weight: 300;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.app-header .right span {
    font-size: 0.9em;
    font-weight: 300;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.app-header .left .header-button .d-none + span {
    padding-left: 8px;
}

.app-header .right .header-button .d-none + span {
    padding-right: 8px;
}

.app-header .page-title .logo {
    display: block;
    height: 45px;
    width: auto;
}

.second-header {
    position: fixed;
    left: 0;
    top: 56px;
    right: 0;
    padding-bottom: 6px;
    margin-top: env(safe-area-inset-top);
    z-index: 999;
    align-content: center;
}

.second-header::-webkit-scrollbar {
    display: none;
}

.nav-background-wrapper {
    position: fixed;
    top: 55px;
    left: 0;
    right: 0;
    width: 100%;
    min-height: 55px;
    background: var(--body-background-color);
    z-index: 1000;
}

.scroll-btn {
    position: fixed;
    border: none;
    padding: 2px 5px;
    cursor: pointer;
    top: 62px;
    color: #696969;
    transition: color 0.1s ease;
    z-index: 1002;
}

.scroll-btn-background {
    position: fixed;
    border: none;
    padding: 2px 5px;
    cursor: pointer;
    top: 68px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #000000;
    transition: color 0.1s ease;
    z-index: 1001;
}

.scroll-btn:active {
    color: #333333; /* Colore ancora più scuro quando il pulsante è cliccato */
}

.scroll-btn.left {
    left: 0;
}

.scroll-btn-background.left {
    left: 10px;
}

.scroll-btn.right {
    right: 0;
}

.scroll-btn-background.right {
    right: 10px;
}

/* END HEADER MENU */

/* LOADER */
.loader {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: var(--loader-background-color);
    z-index: 999999999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
}

.spinner {
    position: relative;
    top: calc(50% - 20px);
    left: calc(50% - 20px);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: transparent;
    border: 0.40rem solid var(--loader-second-color);
    border-top: 0.40rem solid var(--loader-first-color);
    animation: 1.5s spin cubic-bezier(0.17, 0.49, 0.96, 0.76) infinite;
    z-index: 9999;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
/* END LOADER */

/* DASHBOARD CARD */
.card.dashboard-card:active {
    box-shadow: inset 0 0 100px 100px rgba(255, 255, 255, 0.1);
}

.card.dashboard-card:hover {
    box-shadow: inset 0 0 100px 100px rgba(255, 255, 255, 0.1);
}

.animate-card {
    opacity: 0;
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;
}

.animate-card.active {
    opacity: 1;
    transform: translate(0);
}

.animate-card-top {
    transform: translateY(-100%);
}

.animate-card-left {
    transform: translateX(100%);
}

.animate-card-bottom {
    transform: translateY(100%);
}

.animate-card-right {
    transform: translateX(-100%);
}

.dashboard-animate-opacity {
    opacity: 0;
    transition: opacity 0.6s ease 0.4s;
}

.animate-card.active .dashboard-animate-opacity {
    opacity: 1;
}
/* ALERT */
.animate-card-alert {
    opacity: 0;
    transition: transform 0.6s ease-out, opacity 0.6s ease-out;
}

.animate-card-alert.active {
    opacity: 1;
    transform: translate(0);
}

.animate-card-alert-top {
    transform: translateY(-100%);
}

.animate-card-alert-left {
    transform: translateX(100%);
}

.animate-card-alert-bottom {
    transform: translateY(100%);
}

.animate-card-alert-right {
    transform: translateX(-100%);
}

.animate-opacity-alert {
    opacity: 0;
    transition: opacity 0.6s ease 0.4s;
}

.animate-card-alert.active .animate-opacity-alert {
    opacity: 1;
}
/* END DASHBOARD CARD */

/* LEAFTLET MAP */
.leaflet-style {
    width: 100%;
    opacity: 0;
    border-radius: 20px;
    border: transparent;
    transition: 0.6s ease-in;
}

.leaflet-top.leaflet-right .leaflet-control-layers {
    border: 0;
}

.leaflet-top.leaflet-left .leaflet-control {
    border: 0;
}

.leaflet-top.leaflet-right .leaflet-control-layers-expanded {
    border-radius: 10px;
    padding: 5px;
}

.leaflet-control-layers-list .leaflet-control-layers-base label {
    padding: 10px;
}

.leaflet-top.leaflet-left .leaflet-control-zoom.leaflet-bar a {
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 20px;
    margin: 5px 0;
}

.full-height-div.leaflet-container img.leaflet-tile {
    mix-blend-mode: normal;
}

.leaflet-popup-content {
    text-align: center;
}

/* END LEAFTLET CARD */

/* DASHBOARD TABS */
.wide-block {
    padding-left: 16px;
    padding-right: 16px;
}

.nav-tabs.capsuled {
    align-items: center;
    justify-self: center;
    z-index: 1003;
    border: 0;
}

.nav-tabs.capsuled .nav-item .nav-link {
    color: #4F5050;
    font-weight: 500;
    font-size: 13px;
    border: 0 !important;
    line-height: 1.2em;
    width: 100%;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 4px !important;
    text-align: center;
}

.nav-tabs.capsuled .nav-item .nav-link.active {
    color: #141515;
}

.tab-content {
    border-radius: 6px;
    padding-bottom: 9px;
    margin-top: 22px;
}
/* END DASHBOARD TABS */

/* SWAL */
.custom-swal-popup {
    aspect-ratio: 1;
    border-radius: 25px;
    max-height: 90vh;
    width: 320px;
}

.custom-swal-title {
    align-content: center;
    font-size: 1.5em;
    padding: 0;
}

.custom-swal-icon {
    margin: 1.5em auto 0;
}

#swal2-html-container {
    padding: 0 5px 15px 0;
    align-content: center;
}

.custom-swal-confirm-button {
    width: 96%;
    margin: 0 auto;
    padding: 10px;
    border-radius: 25px;
    box-sizing: border-box;
    position: absolute;
    bottom: 7px;
    left: 7px;
    outline: none;
}

.swal-button:focus {
    box-shadow: none;
}
/* END SWAL */

/* CUSTOM CHECKBOX */
.custom-checkbox {
    width: 30px;
    height: 30px;
    border-radius: 50% !important;
    appearance: none;
    cursor: pointer;
    position: relative;
    margin-right: 10px;
}

.custom-checkbox:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
/* END CHECKBOX */


/* CONTACT CARD */
.card.contact-card:active {
    box-shadow: inset 0 0 100px 100px rgba(222, 222, 222, 0.1);
}

.card.contact-card:hover {
    box-shadow: inset 0 0 100px 100px rgba(222, 222, 222, 0.1);
}
/* END CONTACT CARD */

/* ROTATION */
@keyframes rotateAnimation {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
/* END ROTATION */

/* CUSTOM CHECKBOX */
.custom-check.form-check-input:focus {
    border-color: rgba(0, 0, 0, 0.25);
    outline: 0;
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba(0,0,0,0.25)'/></svg>");
}
.custom-check.form-check-input:checked {
    background-color: #008000;
    border-color: #008000;
    border: none;
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba(255,255,255,1.0)'/></svg>");
}
.custom-check.form-check-input:not(:checked) {
    background-color: #880808;
    border-color: #880808;
    border: none;
    background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba(255,255,255,1.0)'/></svg>");
}
/* END CUSTOM CHECKBOX */

/* NOTIFICATION DOT */
.notification-dot {
    display: none;
    position: absolute;
    top: 22px;
    right: 6px;
    width: 10px;
    height: 10px;
    background-color: red;
    border-radius: 50%;
}
/* END NOTIFICATION DOT */

/* REQUEST BUTTON */
#requestReport {
    background-color: #176D2B;
    border-color: #183831;
}
/* END REQUEST BUTTON */

/* LABEL TRANSPARENT */
.label-transparent::after{
    background: none !important;
}
/* END LABEL TRANSPARENT */

/* HIDE CONTROL WHEN POPUP OPEN */
.leaflet-control {
    transition: opacity 0.2s;
}

.leaflet-container:has(.leaflet-popup)
:is(.leaflet-control-container, .leaflet-control-container *) {
    pointer-events: none;
}

.leaflet-container:has(.leaflet-popup) .leaflet-control {
    opacity: 0;
}
/* END HIDE CONTROL WHEN POPUP OPEN */

/* CARD EXIT ANIMATION */
@keyframes fadeOutShrink {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.5);
    }
}

.card-exit {
    animation: fadeOutShrink 0.3s ease forwards;
}
/* END CARD EXIT ANIMATION */

/* BACK TO TOP */
.back-to-top {
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    font-size: 26px;
    position: fixed;
    border-radius: 50%;
    bottom: 96px;
    right: 12px;
    opacity: 0;
    transform: translateY(100px);
    transition: all .3s ease;
    z-index: 5;
    color: #2a2829;
    background-color: #fff;
    border: 2px solid var(--loader-second-color);
}

.back-to-top-show {
    opacity: 1;
    transform: translateY(0);
}
/* BACK TO TOP END */

/* ACCORDION ICON */
.rotate-180 {
    transform: rotate(180deg);
}
.transition-transform {
    transition: transform 0.3s ease;
}
/* ACCORDION ICON END */