/********** Template CSS **********/
:root {
    --azul-metodo: #2A868A;
    --secondary: #191C24;
    --light: #6C7293;
    --dark: #000000;
}

/*** Bootstrap Override - Primary Color com Azul Metodo ***/
.text-primary {
    color: var(--azul-metodo) !important;
}

.bg-primary {
    background-color: var(--azul-metodo) !important;
}

.border-primary {
    border-color: var(--azul-metodo) !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    transition: .5s;
}

.btn-primary {
    background-color: var(--azul-metodo) !important;
    border-color: var(--azul-metodo) !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #237570 !important;
    border-color: #237570 !important;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
    border-radius: 50px;
}


/*** Layout ***/
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 250px;
    height: 100vh;
    overflow-y: auto;
    background: var(--secondary);
    transition: 0.5s;
    z-index: 999;
}

.content {
    margin-left: 250px;
    min-height: 100vh;
    background: var(--dark);
    transition: 0.5s;
}

@media (min-width: 992px) {
    .sidebar {
        margin-left: 0;
    }

    .sidebar.open {
        margin-left: -250px;
    }

    .content {
        width: calc(100% - 250px);
    }

    .content.open {
        width: 100%;
        margin-left: 0;
    }
}

@media (max-width: 991.98px) {
    .sidebar {
        margin-left: -250px;
    }

    .sidebar.open {
        margin-left: 0;
    }

    .content {
        width: 100%;
        margin-left: 0;
    }
}


/*** Navbar ***/
.navbar-brand h3,
.navbar-brand h2,
.navbar-brand h3 i,
.navbar-brand h2 i {
    color: var(--azul-metodo) !important;
}

.sidebar .navbar .navbar-nav .nav-link {
    padding: 7px 20px;
    color: var(--light);
    font-weight: 500;
    border-left: 3px solid var(--secondary);
    border-radius: 0 30px 30px 0;
    outline: none;
}

.sidebar .navbar .navbar-nav .nav-link:hover,
.sidebar .navbar .navbar-nav .nav-link.active {
    color: var(--azul-metodo);
    background: var(--dark);
    border-color: var(--azul-metodo);
}

.sidebar .navbar .navbar-nav .nav-link i {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
    border-radius: 40px;
}

.sidebar .navbar .navbar-nav .nav-link:hover i,
.sidebar .navbar .navbar-nav .nav-link.active i {
    background: var(--secondary);
}

.sidebar .navbar .dropdown-toggle::after {
    position: absolute;
    top: 15px;
    right: 15px;
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    transition: .5s;
}

.sidebar .navbar .dropdown-toggle[aria-expanded=true]::after {
    transform: rotate(-180deg);
}

.sidebar .navbar .dropdown-item {
    padding-left: 25px;
    border-radius: 0 30px 30px 0;
    color: var(--light);
}

.sidebar .navbar .dropdown-item:hover,
.sidebar .navbar .dropdown-item.active {
    background: var(--dark);
}

.content .navbar .navbar-nav .nav-link {
    margin-left: 25px;
    padding: 12px 0;
    color: var(--light);
    outline: none;
}

.content .navbar .navbar-nav .nav-link:hover,
.content .navbar .navbar-nav .nav-link.active {
    color: var(--azul-metodo);
}

.content .navbar .sidebar-toggler,
.content .navbar .navbar-nav .nav-link i {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--dark);
    border-radius: 40px;
}

.content .navbar .dropdown-item {
    color: var(--light);
}

.content .navbar .dropdown-item:hover,
.content .navbar .dropdown-item.active {
    background: var(--dark);
}

.content .navbar .dropdown-toggle::after {
    margin-left: 6px;
    vertical-align: middle;
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    transition: .5s;
}

.content .navbar .dropdown-toggle[aria-expanded=true]::after {
    transform: rotate(-180deg);
}

@media (max-width: 575.98px) {
    .content .navbar .navbar-nav .nav-link {
        margin-left: 15px;
    }
}


/*** Date Picker ***/
.bootstrap-datetimepicker-widget.bottom {
    top: auto !important;
}

.bootstrap-datetimepicker-widget .table * {
    border-bottom-width: 0px;
}

.bootstrap-datetimepicker-widget .table th {
    font-weight: 500;
}

.bootstrap-datetimepicker-widget.dropdown-menu {
    padding: 10px;
    border-radius: 2px;
}

.bootstrap-datetimepicker-widget table td.active,
.bootstrap-datetimepicker-widget table td.active:hover {
    background: var(--azul-metodo);
}

.bootstrap-datetimepicker-widget table td.today::before {
    border-bottom-color: var(--azul-metodo);
}


/*** Testimonial ***/
.progress .progress-bar {
    width: 0px;
    transition: 2s;
}


/*** Testimonial ***/
.testimonial-carousel .owl-dots {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    border: 5px solid var(--azul-metodo);
    border-radius: 15px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--dark);
    border-color: var(--azul-metodo);
}

/*** Custom Scrollbar Styling ***/
/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 28px !important;
    height: 28px !important;
}

::-webkit-scrollbar-track {
    background: var(--secondary) !important;
}

::-webkit-scrollbar-thumb {
    background: var(--azul-metodo) !important;
    border-radius: 8px;
    border: 2px solid var(--secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: #237570 !important;
    cursor: pointer;
}

/* Firefox */
* {
    scrollbar-color: var(--azul-metodo) var(--secondary) !important;
    scrollbar-width: auto !important;
}

/* General scrollbar container styling */
.painel-lateral::-webkit-scrollbar {
    width: 26px !important;
}

.painel-lateral::-webkit-scrollbar-track {
    background: rgba(25, 28, 36, 0.5) !important;
}

.painel-lateral::-webkit-scrollbar-thumb {
    background: var(--azul-metodo) !important;
    border-radius: 8px;
    box-shadow: inset 0 0 3px rgba(42, 134, 138, 0.3);
}

.painel-lateral::-webkit-scrollbar-thumb:hover {
    background: #237570 !important;
}

/*** Custom Checkbox Styling ***/
/* Estilo dos checkboxes do modal de filtros */
.modal .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--azul-metodo) !important;
    background-color: transparent !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal .form-check-input:not(:checked) {
    border-color: var(--azul-metodo) !important;
    background-color: transparent !important;
}

.modal .form-check-input:checked {
    background-color: var(--azul-metodo) !important;
    border-color: var(--azul-metodo) !important;
    border: none !important;
    box-shadow: none !important;
}

.modal .form-check-input:hover {
    border-color: #237570 !important;
    box-shadow: 0 0 0 0.25rem rgba(42, 134, 138, 0.25) !important;
}

.modal .form-check-input:focus {
    border-color: #237570 !important;
    box-shadow: 0 0 0 0.25rem rgba(42, 134, 138, 0.25) !important;
}

/* Radio buttons styling */
.modal .form-check-input[type="radio"] {
    border-radius: 50%;
}

.modal .form-check-input[type="radio"]:checked {
    background-image: radial-gradient(circle, #191C24 0%, #191C24 40%, var(--azul-metodo) 50%);
}

/* Labels styling */
.modal .form-check-label {
    color: var(--light);
    cursor: pointer;
    user-select: none;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

/*** Topologia Tree Styling ***/
.topologia-tree {
    scrollbar-color: var(--azul-metodo) var(--secondary);
    scrollbar-width: thin;
}

.topologia-tree::-webkit-scrollbar {
    width: 8px;
}

.topologia-tree::-webkit-scrollbar-track {
    background: var(--secondary);
}

.topologia-tree::-webkit-scrollbar-thumb {
    background: var(--azul-metodo);
    border-radius: 4px;
}

.topologia-item {
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.25rem;
    border-left: 3px solid transparent;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.topologia-item.empresa {
    border-left-color: var(--azul-metodo);
    background-color: rgba(42, 134, 138, 0.1);
}

.topologia-item.empresa:hover {
    background-color: rgba(42, 134, 138, 0.15);
}

.topologia-item.dispositivo {
    padding-left: 2rem;
    border-left-color: var(--light);
    font-size: 0.875rem;
}

.topologia-item.dispositivo:hover {
    background-color: rgba(108, 114, 147, 0.1);
}

.topologia-item .item-label {
    color: var(--light);
    display: inline-block;
    margin-left: 0.5rem;
}

.topologia-item.empresa .item-label {
    color: var(--azul-metodo);
    font-weight: 600;
}

.topologia-item .item-count {
    font-size: 0.75rem;
    color: #999;
    margin-left: 0.5rem;
}

.topologia-item .item-ip {
    font-size: 0.75rem;
    color: #888;
    margin-left: 0.5rem;
    font-family: monospace;
}

/*** Global Search Results ***/
#global-search-results {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#global-search-results .list-group-item {
    transition: all 0.2s;
}

#global-search-results .list-group-item:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    padding-left: 1.25rem !important;
}

#global-search-results::-webkit-scrollbar {
    width: 6px;
}

#global-search-results::-webkit-scrollbar-track {
    background: var(--secondary);
}

#global-search-results::-webkit-scrollbar-thumb {
    background: var(--azul-metodo);
    border-radius: 3px;
}

/*** Search Input Clear Button ***/
input[type="search"]::-webkit-search-cancel-button {
    -webkit-appearance: none;
    height: 16px;
    width: 16px;
    background: url("data:image/svg+xml;charset=UTF-8,%3csvg viewBox='0 0 24 24' width='24' height='24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%236C7293' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cline x1='18' y1='6' x2='6' y2='18'%3e%3c/line%3e%3cline x1='6' y1='6' x2='18' y2='18'%3e%3c/line%3e%3c/svg%3e") no-repeat center center;
    cursor: pointer;
    margin-right: 5px;
}

input[type="search"]::-webkit-search-cancel-button:hover {
    background: url("data:image/svg+xml;charset=UTF-8,%3csvg viewBox='0 0 24 24' width='24' height='24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%232A868A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3e%3cline x1='18' y1='6' x2='6' y2='18'%3e%3c/line%3e%3cline x1='6' y1='6' x2='18' y2='18'%3e%3c/line%3e%3c/svg%3e") no-repeat center center;
}

/*** Custom Badge Colors ***/
.bg-purple {
    background-color: #8B5CF6 !important;
    color: #ffffff !important;
}