/********** Template CSS **********/
:root {
    --primary: #009CFF;
    --light: #F3F6F9;
    --dark: #191C24;
}

.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.btn-primary {
    color: #FFFFFF;
}

.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(--light);
    transition: 0.5s;
    z-index: 999;
}

.content {
    margin-left: 250px;
    min-height: 100vh;
    background: #FFFFFF;
    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 ***/
.sidebar .navbar .navbar-nav .nav-link {
    padding: 7px 20px;
    color: var(--dark);
    font-weight: 500;
    border-left: 3px solid var(--light);
    border-radius: 0 30px 30px 0;
    outline: none;
}

.sidebar .navbar .navbar-nav .nav-link:hover,
.sidebar .navbar .navbar-nav .nav-link.active {
    color: var(--primary);
    background: #FFFFFF;
    border-color: var(--primary);
}

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

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

.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;
}

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

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

.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: #FFFFFF;
    border-radius: 40px;
}

.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(--primary);
}

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


/*** 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(--primary);
    border-radius: 15px;
    transition: .5s;
}

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


.card-clickable {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-clickable:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.card-clickable:active {
    transform: scale(0.98);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}


/* Estilos para a avaliação por estrelas (leitura) */
.star-rating-readonly {
    display: flex;
    align-items: center;
}

/* Estrelas */
.star {
    font-size: 1.5rem;
    /* Tamanho das estrelas */
    color: #d3d3d3;
    /* Cor das estrelas não preenchidas */
    cursor: pointer;
    /* Adiciona um cursor de ponteiro ao passar sobre as estrelas */
}

/* Estrelas preenchidas */
.star.filled {
    color: gold;
    /* Cor das estrelas preenchidas */
}

/* Estilos para a avaliação interativa */
.star-rating-interactive {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 10px;
}

.col-1 {
    display: flex;
    /* Adiciona flexbox para o rótulo e as estrelas */
    align-items: inherit;
    /* Alinha verticalmente o rótulo e as estrelas */
}



/* Oculta os inputs de rádio */
input[type="radio"] {
    display: none;
}

/* Aplica a cor gold ao label correspondente e a todas as anteriores quando o input está checked */
input[type="radio"]:checked+label {
    color: gold;
    /* Cor ao clicar na estrela */
}

input[type="radio"]:checked+label,
input[type="radio"]:checked+label~label {
    color: gold;
    /* Estrelas preenchidas */
}

/* Para que a cor das estrelas mude ao passar o mouse */
.star-rating-interactive input:hover+label {
    color: gold;
    /* Cor ao passar o mouse sobre as estrelas */
}

/* Para que as estrelas anteriores também fiquem douradas ao passar o mouse */
.star-rating-interactive input:hover+label,
.star-rating-interactive input:hover+label~label {
    color: gold;
    /* Cor ao passar o mouse sobre as estrelas anteriores */
}



/* Animação de tremor */
@keyframes shake {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    50% {
        transform: translateX(5px);
    }

    75% {
        transform: translateX(-5px);
    }

    100% {
        transform: translateX(0);
    }
}

/* Aplicando o tremor no ícone de notificação */
.shake {
    animation: shake 0.5s ease-in-out infinite;
}

/* Ícone vermelho quando há notificações */
.text-danger {
    color: red;
}


/* Estilo para resoluções maiores (default) */
.card img {
    height: auto;
    object-fit: cover;
}

.card-body {
    padding: 1rem;
    /* Mantém o estilo original */
}

.card-title {
    font-size: 1rem;
    line-height: 1.5;
}

.card-text {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Estilo para dispositivos móveis (max-width: 576px) */
@media (max-width: 576px) {
    .card {
        padding: 0;
        margin-bottom: 4px;
    }

    .card img {
        height: 100px;
        /* Imagem menor */
        object-fit: cover;
    }

    .card-body {
        padding: 0.3rem;
        /* Menor espaçamento interno */
    }

    .card-title,
    .card-text {
        font-size: 0.7rem;
        /* Texto reduzido */
        line-height: 1.2;
        margin-bottom: 0.2rem;
    }

    .d-flex {
        gap: 2px;
        /* Reduz espaço entre os elementos */
    }
}

#dropdownFiltro {
    left: 0 !important;
    right: auto !important;
    transform: translateX(-60%) !important;
}

@media (max-width: 576px) {
    #dropdownFiltro {
        left: -120% !important;
        transform: none !important;
    }
}

.input-group-text {
    background-color: #ffffff !important;
    border: 1px solid #ced4da;
    border-left: none;
    border-radius: 0 25px 25px 0 !important;
    padding: 0.375rem 0.75rem;
    overflow: hidden;
}

#txtCategorias {
    border-radius: 25px 0 0 25px !important;
}

.animated-text p {
    display: inline-block;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    border-right: .15em solid #000;
    animation: typing 5s steps(30) 1s forwards, blink 0.75s step-end infinite 2s, resetTyping 6s linear infinite;
    margin-top: 20px; 
    margin-left: 5px;

}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

@keyframes resetTyping {
    0% {
        width: 0;
    }

    100% {
        width: 100%;
    }
}

#suggestionList {
    max-height: 100%;
    overflow-y: auto;
    border: 1px solid #ccc;
    border-top: none;
    background-color: white;
    width: 100%; /* Ocupa a largura do contêiner pai */
    box-sizing: border-box; /* Inclui o padding e a borda dentro da largura */
}

/* Ajuste para telas menores */
@media (max-width: 576px) {
    #suggestionList {
        max-width: 80%; /* 90% da largura da tela */
    }
}

/* Ajuste para telas maiores */
@media (min-width: 577px) {
    #suggestionList {
        max-width: 74%; /* Largura máxima de 400px */
    }
}


.list-group-item {
    cursor: pointer;
}

.list-group-item:hover {
    background-color: #f8f9fa;
}

/* .nav-item {
    border-bottom: 2px solid rgb(0, 156, 255); 
    padding-bottom: 8px; 
} */


.nav-click-effect {
    position: relative;
}

.nav-click-effect:after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 5px;
}

.nav-click-effect:active:after {
    opacity: 1;
}

