/********** Template CSS **********/
:root {
    --primary: #14C8ED;
    --light: #F0F1F4;
    --gray: #E7E9ED;
    --dark: #1A1C1E;
}

a {
    color: var(--primary);
}

.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 {
    width: 100%;
    padding-left: 0;
    min-height: 100vh;
    background: #FFFFFF;
    transition: 0.5s;
}

@media (max-width: 1804px) {
    .content {
        padding-left: 2%;
    }
}

@media (max-width: 1740px) {
    .content {
        padding-left: 4%;
    }
}

@media (max-width: 1690px) {
    .content {
        padding-left: 6%;
    }
}

@media (max-width: 1640px) {
    .content {
        padding-left: 8%;
    }
}

@media (max-width: 1590px) {
    .content {
        padding-left: 10%;
    }
}

@media (max-width: 1540px) {
    .content {
        padding-left: 12%;
    }
}

@media (max-width: 1490px) {
    .content {
        padding-left: 14%;
    }
}

@media (max-width: 1440px) {
    .content {
        padding-left: 15%;
    }
}

@media (max-width: 1390px) {
    .content {
        padding-left: 250px;
    }
}

@media (max-width: 992px) {
    .sidebar {
        margin-left: 0;
    }

    .sidebar.open {
        margin-left: -250px;
    }

    .content {
        width: 100%;

    }

    .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;
        padding: 0;
    }
}


/*** Navbar ***/
.navbar-nav {
    gap: 5px;
}

.nav-link {
    transition: ease 0.9s;
}

.nav-link:hover {
    transition: ease 0.3s;
}

.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);
}


.testimonial-carousel .owl-dot.active::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: var(--primary);
    border-radius: 15px;
    transform: translate(-50%, -50%);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

.testimonial-carousel .owl-dot:hover {
    background: var(--dark);
    border-color: var(--primary);
}

.testimonial-carousel .owl-dot:hover::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: var(--primary);
    border-radius: 15px;
    transform: translate(-50%, -50%);
    animation: pulse 1.5s infinite;
}

.logo-small {
    width: 30px !important;
}

.form-center {
    border-right: var(--gray) 2px solid;
    border-left: var(--gray) 2px solid;
}

.form-label {
    font-weight: 600;
    width: 100%;
}

.icon-form {
    width: 16px;
    height: 16px;
}

.td-form {
    width: 60px;
}

/* BACKDROP */
.modal-backdrop-custom {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(6px);
    z-index: 1040;
    display: none;
}

/* MODAL */
.modal-custom {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.modal-user {
    max-height: 90vh;
    overflow-y: auto;
}


.modal-custom.show,
.modal-backdrop-custom.show {
    display: flex;
}

/* CAIXA */
.modal-nota {
    width: 720px;
    max-width: 95%;
    animation: modalFade .25s ease;
}

/* BODY */
.modal-body-nota {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* META (titulo, categoria, data) */
.nota-meta {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 10px;
}

/* CONTEÚDO */
.nota-conteudo {
    min-height: 350px;
    resize: vertical;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* FOOTER */
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 15px;
    border-top: 1px solid #eee;
    padding-top: 12px;
}

/* RESPONSIVO */
@media (max-width: 576px) {
    .nota-meta {
        grid-template-columns: 1fr;
    }
}

/* ANIMAÇÃO */
@keyframes modalFade {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.text-metodos {
    margin: 0;
    margin-right: auto;
    width: auto;
    display: flex;
    justify-content: start;
    align-items: center;

}

.card-custon {
    padding: 10px;
    max-width: 350px;
    transition: box-shadow 1s ease;
}

.card-custon:hover {
    transform: scale(1.01);
    box-shadow: 0px 10px 13px -7px var(--gray), 5px 5px 9px 8px rgba(0, 0, 0, 0);
    transition: box-shadow 0.3s ease;
    z-index: 2;
}

.upload-box {
    flex: 1;
    border: 2px dashed var(--gray);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    background: #F6F7F9;
}

.upload-box:hover {
    border-color: var(--primary);
    background: #eef5ff;
}

.upload-content {
    text-align: center;
    font-size: 16px;
    color: #555;
}

.upload-content strong {
    display: block;
    font-size: 17px;
}

.upload-content small {
    font-size: 13px;
    color: var(--gray);
}

.suporte-cli {
    cursor: pointer;
    transition: background-color 0.3s ease;
    background-color: #ffffff;
    padding: 4px;
    margin: 5px 0 5px 0;
    border-radius: 50px 0 0 50px;
    display: flex;
    min-width: 200px;


}

.suporte-cli:hover {
    background-color: var(--primary);
    color: #ffffff;
}


.notifi {
    width: 12px;
    height: 12px;
    top: 2px;
    right: 2px;
}

.chat-box {

    height: 100%;
    background-color: #ffffff;
    border: 1px solid #E7E9ED;
    border-radius: 8px;
    width: 100%;

    flex-direction: column;
    z-index: 1000;
}

.spacer {
    margin-left: 5%;
}

.contato-item {
    display: flex;
    gap: 8px;
}

.suporte-wrapper {
    display: flex;
    height: calc(100vh - 180px);
    /* navbar + padding */
    gap: 16px;
}

/* CONTATOS */
.contatos {
    padding-right: 5px;
    flex: 0 0 260px;
    min-width: 180px;
    max-width: 320px;
    overflow-y: auto;
    overflow-x: hidden;
}

/* CHAT */
.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Mensagens */
.chat-box {
    border: none;
    border-radius: 8px;
    flex: 1;
    overflow-y: auto;
}

.chat-header {
    color: white;
    display: flex;
    align-items: center;
    display: none;
}

.return-icon {
    width: 20px;
    height: 20px;
    filter: invert();

}

/* Responsivo */
@media (max-width: 700px) {
    .suporte-wrapper {
        flex-direction: column;
        height: auto;
    }

    .contatos {
        max-width: 100%;
        overflow: visible;
    }

    .contatos div {
        border-radius: 50px;
    }

    .notifi {
        top: 15px;
        right: 15px;
    }

    .chat-area {
        position: fixed;
        inset: 0;
        background: #fff;
        transform: translateX(120%);
        transition: 0.3s;
        padding-top: 64px;
    }

    .chat-header {
        display: flex;
    }

    .input-group {
        margin: 10px;
        width: 95%;


    }

    .chat-area.ativa {
        transform: translateX(0);
    }

    .contatos.oculta {
        display: none;
    }
}





/* largura da scrollbar */
.contatos::-webkit-scrollbar {
    width: 6px;
}

/* fundo da scrollbar */
.contatos::-webkit-scrollbar-track {
    background: transparent;
}

/* parte que se move */
.contatos::-webkit-scrollbar-thumb {
    background-color: var(--gray);
    border-radius: 10px;
}

/* hover */
.contatos::-webkit-scrollbar-thumb:hover {
    background-color: var(--gray);
}

.chat-box::-webkit-scrollbar {
    width: 6px;
}

.chat-box::-webkit-scrollbar-track {
    background: transparent;
}

.chat-box::-webkit-scrollbar-thumb {
    background-color: var(--gray);
    border-radius: 10px;
}

.chat-box::-webkit-scrollbar-thumb:hover {
    background-color: var(--gray);
}

.input-grup-char input {
    border-radius: 20px 0 0 20px;
    border: none;
}

.input-grup-char button {
    border-radius: 0 20px 20px 0;
    width: 50px;
    height: 36px;
    border: none;
}

.icon-form {
    width: 20px;
    height: 20px;
}

.input-grup-char {
    border: none;
    border-radius: 50px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.input-grup-char:focus-within {

    border-color: var(--primary);
    box-shadow: 0 0 15px 40px var(--primary) inset, 0 15px 0 0 var(--primary);
    box-shadow: 0 0 10px 0 var(--primary) inset, 0 0 5px 2px var(--primary);
    transition: all 150ms ease-in-out;



}

/* sombra azul suave */


/* remove borda individual do input */
.input-grup-char .form-control {
    border: none;
    box-shadow: none;
}

/* CARD EVENTO */
.evento-card {

    min-height: 320px;
}

/* BODY */
.evento-body {
    display: flex;
    flex-direction: column;
}

/* META PRINCIPAL */
.evento-meta {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr 0.8fr;
    gap: 10px;
}

/* META SECUNDÁRIA */
.evento-meta-secundaria {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* RESPONSIVO */
@media (max-width: 576px) {

    .evento-meta,
    .evento-meta-secundaria {
        grid-template-columns: 1fr;
    }
}

.img-users {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.img-sensi {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 0;
}

.icon-form {
    width: 16px;
    height: 16px;
}

.users-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(370px, 1fr));
    gap: 16px;
}

.sensi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 2fr));
    gap: 16px;
}

/* card */
.col-users {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.041);
    width: 100%;
    /* IMPORTANTE */
    min-width: unset;
    /* REMOVE a trava */
}

.col-sensi {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.041);
    width: 100%;
    /* IMPORTANTE */
    min-width: unset;
    /* REMOVE a trava */
}

.sensi-card {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-card {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* desktop */
.sensi-photo {
    order: 1;
}

.user-photo {
    order: 1;
}

.sensi-id {
    order: 2;
}

.user-id {
    order: 2;
}

.sensi-name {
    order: 3;
    flex: 1;
}

.user-name {
    order: 3;
    flex: 1;
}

.sensi-actions {
    order: 4;
    display: flex;
    gap: 8px;
}

.user-actions {
    order: 4;
    display: flex;
    gap: 8px;
}

/* MOBILE */
@media (max-width: 504px) {
    .user-card {
        flex-wrap: wrap;
    }

    .users-grid {

        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .user-photo {
        order: 1;
        width: auto;
    }

    .user-id {
        margin-left: auto;
        width: 20%;
        order: 3;
    }

    .user-name {
        order: 2;
        width: 100%;
        text-align: center;
        margin: 15px 0;
    }

    .user-actions {
        order: 4;
        width: 100%;
        justify-content: end;
    }

    .col-users {
        padding: 10px;
    }
}

@media (max-width: 575px) {

    .custom-info {
        width: 50%;
    }

    .custom-info div {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .custom-info div div p {
        display: none;
    }


    .user-photo {
        order: 1;
        width: auto;
    }

    .user-id {
        margin-left: auto;
        width: 20%;
        order: 3;
    }

    .user-name {
        order: 2;
        width: 100%;
        text-align: center;
        margin: 15px 0;
    }

    .user-actions {
        order: 4;
        width: 100%;
        justify-content: end;
    }

    .col-users {

        padding: 10px;
    }
}

.custom-icon {
    width: 48px;
    height: 48px;
}

@media (max-width: 504px) {
    .sensi-card {
        flex-wrap: wrap;
    }

    .sensi-grid {

        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .sensi-photo {
        order: 1;
        width: auto;
    }

    .sensi-id {
        margin-left: auto;
        width: 20%;
        order: 3;
    }

    .sensi-name {
        order: 2;
        width: 100%;
        text-align: center;
        margin: 15px 0;
    }

    .sensi-actions {
        order: 4;
        width: 100%;
        justify-content: end;
    }

    .col-sensi {
        padding: 10px;
    }
}


.received_chat {
    background-color: #f1f0f0;
    border-radius: 0px 15px 15px 15px;
    padding: 10px 15px;
    margin-bottom: 10px;
}

.send_chat {
    background-color: var(--primary);
    color: white;
    border-radius: 15px 0px 15px 15px;
    padding: 10px 15px;
    margin-bottom: 10px;
    margin-left: auto;
}


/* SWHITCH EVENTOS */

/* The switch - the box around the slider */
.switch {
    font-size: 17px;
    position: relative;
    display: inline-block;
    width: 3.5em;
    height: 2em;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray);
    border: 1px solid var(--gray);
    transition: .4s;
    border-radius: 30px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 1.4em;
    width: 1.4em;
    border-radius: 20px;
    left: 0.27em;
    bottom: 0.25em;
    background-color: #000000;
    transition: .4s;
}

input:checked+.slider {
    background-color: var(--primary);
    border: 1px solid #00000000;
}

input:focus+.slider {
    box-shadow: 0 0 1px var(--primary);
}

input:checked+.slider:before {
    transform: translateX(1.4em);
    background-color: #fff;

}

.bg-primary {
    background-color: var(--primary) !important;
}


.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.border-primary{
    border-color: var(--primary) !important;
}

.text-primary {
    color: var(--primary) !important;
}

.bg-grey{
    background-color: var(--gray) !important;
}

.progress{
    background-color: var(--gray) !important;
    height: 7px;
}
.custon-sensi{
    height: 30px;
}

.table-responsive{
    overflow-y: hidden;
}
.pointer{
    cursor: pointer;
}

.play{
    position: absolute;
    width: 100%;
    height: 71.5%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: none;

}

.play:hover{
    background-color: #00000067;
    backdrop-filter: blur(2px);
}
.play img{
    width: 50px;
    height: 50px;
    display: none;
}

.play:hover img{
    display: flex;
}

.indicadores{
    position: absolute;
    width: 100%;
    height: 71.5%;
    display: flex;
    cursor: pointer;
    border: none;

}

.indicadores img{
    position: absolute;
    width: 35px;
    height: 35px;
    padding: 5px;
    display: none;
}

.vip{
    background-color: var(--primary);
    left: 5px;
    top: 5px;  
}
.codigo{
    background-color: var(--primary);
    left: 5px;
    bottom: 5px;
    padding: 10px;  
}

.active-indicator{
    display: flex !important;
}
