﻿/* Menu lateral com fundo vermelho claro e textos escuros */
.app-sidebar {
    background-color: #fff5f5 !important; /* Vermelho bem claro no fundo */
    color: #212529; /* Texto cinza escuro / quase preto (Bootstrap text-dark) */

    display: flex;
    flex-direction: column;
    height: auto !important; /* Permite altura dinâmica */
    min-height: 100vh; /* Garante altura mínima de tela cheia */
}

    .app-sidebar a {
        color: #343a40 !important; /* Texto dos links em cinza escuro */
        font-weight: 600;
        transition: background-color 0.3s, color 0.3s;
    }

        .app-sidebar a:hover {
            background-color: #f8d7da; /* Vermelho claro no hover */
            color: #842029 !important; /* Vermelho escuro no hover */
        }

    .app-sidebar .nav-header {
        color: #842029; /* Vermelho escuro para os headers (ex: seção CADASTROS) */
        text-transform: uppercase;
        font-weight: bold;
        font-size: 0.85rem;
        margin-top: 1rem;
    }

    .app-sidebar a.active {
        background-color: #dc3545 !important; /* Vermelho forte para o ativo */
        color: #ffffff !important; /* Texto branco no ativo */
    }

        .app-sidebar a.active i {
            color: #ffffff !important; /* Ícone branco no link ativo */
        }

    .app-sidebar a i {
        color: #6c757d; /* Cinza médio para os ícones padrão (Bootstrap text-secondary) */
        margin-right: 0.5rem;
    }

    .app-sidebar a:hover i {
        color: #842029 !important; /* Ícone vermelho escuro no hover */
    }


.sidebar-brand {
    padding: 10px 15px !important;
    display: flex !important;
    align-items: center !important;
    height: auto !important; /* Deixa a altura livre */
    min-height: unset !important; /* Caso o AdminLTE defina algum min-height padrão */
    overflow: visible !important; /* Garante que nada seja cortado */
}

    .sidebar-brand .brand-link .brand-image {
        max-height: 320px !important; /* Limite máximo que você deseja */
        width: auto !important; /* Mantém a proporção da largura */
        height: auto !important; /* Altura proporcional à largura */
        max-width: 100% !important; /* Para a imagem não ultrapassar a largura da div */
        object-fit: contain !important; /* Garante que a imagem fique proporcional e contida */
        display: block !important; /* Evita problemas com espaços extras abaixo da imagem */
    }

.company-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

/* .float-end sempre no canto superior direito da .card-header. */
.card-header {
    position: relative;
}
    .card-header .float-end {
        position: absolute;
        top: 10px; /* ou ajuste conforme o espaço desejado */
        right: 10px;
    }


/* Mensagem de validação dos formulários */
.validation-tiny {
    font-size: 0.75rem; /* Texto menor que o small do Bootstrap */
    line-height: 1.2;
    margin-top: 0.1rem !important; /* Espaçamento mínimo */
    display: block;
}

.text-light-muted {
    color: #e0e0e0 !important;
}

.sort-header {
    cursor: pointer;
    position: relative;
}

    .sort-header:hover {
        background-color: #f8f9fa;
    }

    .sort-header i {
        margin-left: 5px;
        opacity: 0.5;
    }

    .sort-header:hover i {
        opacity: 1;
    }

.toast-container .toast {
    max-width: 450px;
    min-width: 250px;
    width: 100%;
}

/* Opcional: ajuste para telas pequenas */
@media (max-width: 576px) {
    .toast-container .toast {
        max-width: 300px;
    }
}

.app-main .app-content-header .container-fluid .row > *,
.app-main .app-content .container-fluid .row > *, 
.app-main .app-content .container-fluid > * {
    margin: 0 auto !important;
}

.app-main .app-content .container-fluid {
    padding: 0 !important;
}

.table-responsive {
    overflow: visible !important;
}

.table-condensed td, .table-condensed th {
    padding-top: 0.2rem !important;
    padding-bottom: 0.2rem !important;
    font-size: 0.85rem; /* Opcional: fonte menor */
}

.dropdown-menu {
    z-index: 9999;
}

/* CONFIGURAÇÂO DO CALENDÁRIO */
#calendar {
    height: 80vh; /* 80% da altura da viewport */
}

/* Reduz altura das células no modo month */
.fc .fc-daygrid-day-frame {
    padding: 1px;
    min-height: 30px;
}

.fc-daygrid-day {
    min-height: 30px;
}

.fc .fc-daygrid-day-number {
    font-size: 1.5rem;
    padding: 1px;
}

.fc .fc-event {
    font-size: 0.75rem;
    padding: 1px 2px;
}

.fc .fc-col-header-cell-cushion {
    font-size: 1rem;
    padding: 2px;
}

@media (max-width: 768px) {
    .fc-toolbar-title {
        font-size: 1rem !important;
    }

    .fc-button {
        font-size: 0.8rem !important;
        padding: 5px 8px !important;
    }
}

/* CONFIGURAÇÃO DO STEPPER PARA CELULAR */
/* Mobile: exibir apenas o step ativo */
@media (max-width: 768px) {
    .bs-stepper-header .step {
        display: none;
    }

        .bs-stepper-header .step.active {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            flex: 1;
        }

    .bs-stepper-header .line {
        display: none;
    }

    .bs-stepper-label {
        font-size: 0.85rem;
        margin-top: 4px;
        text-align: center;
    }

    .bs-stepper-circle {
        width: 36px;
        height: 36px;
        line-height: 36px;
        font-size: 1rem;
    }
}


/* Modal */
/* === Estilo base para desktop === */
.modal-dialog-slideout {
    position: fixed !important;
    bottom: 0;
    right: 0;
    margin: 0;
    max-width: 100%;
    width: 100%;
    max-width: 600px;
    height: 600px;
    pointer-events: none;
    transform: translate(0, 100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1055; /* Garante que fique acima de outros elementos */
}

.modal.fade.show .modal-dialog-slideout {
    transform: translate(0, 0);
}

.modal-dialog-slideout .modal-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    pointer-events: all;
    border-radius: 10px 0 0 0;
}

.chat-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
}

.chat-footer {
    gap: 5px;
}

/* Estilo padrão (desktop) */
#adminChatModal .modal-dialog {
    min-width: 1200px;
    min-height: 800px;
}

/* Para telas pequenas (celulares) */
@media (max-width: 768px) {
    #adminChatModal .modal-dialog {
        width: 100vw;
        height: 100vh;
        margin: 0;
        max-width: 100%;
        min-width: 100vw;
        min-height: 100vh;
    }

    #adminChatModal .modal-content {
        height: 100vh;
        border-radius: 0;
    }

    #chatMessages {
        height: calc(100vh - 160px); /* ajusta altura do corpo do chat */
    }
}


.message-user,
.message-ai {
    display: flex;
    margin-bottom: 10px;
}

.message-user {
    justify-content: flex-end;
}

.message-ai {
    justify-content: flex-start;
}

.message-bubble {
    padding: 10px 15px;
    border-radius: 20px;
    max-width: 70%;
    word-wrap: break-word;
}

.message-user .message-bubble {
    background-color: #66b2ff;
    color: white;
    border-bottom-right-radius: 0;
}

.message-ai .message-bubble {
    background-color: #f1f1f1;
    color: black;
    border-bottom-left-radius: 0;
}

/* === Estilo para mobile === */
@media (max-width: 768px) {
    .modal-dialog-slideout {
        width: 90% !important;
        height: 90% !important;
        max-width: 100%;
        border-radius: 0;
    }

        .modal-dialog-slideout .modal-content {
            border-radius: 0;
        }

    .message-bubble {
        max-width: 85%;
    }
}

#assistantButton {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 56px;
    height: 56px;
    z-index: 1050;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

    #assistantButton:hover {
        background-color: #0056b3;
    }

.nav-treeview > .nav-item > a.nav-link {
    padding-left: 2.5rem; /* ou o valor que preferir */
}

a.btn.btn-close-custom {
    color: #212529 !important;
    background-color: #ffc107 !important;
    border: 1px solid #ffc107 !important;
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    text-decoration: none;
}

    a.btn.btn-close-custom:hover {
        background-color: #e0a800 !important;
        border-color: #d39e00 !important;
        color: #212529 !important;
    }

    a.btn.btn-close-custom:focus {
        outline: none !important;
        box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.5) !important;
    }

    a.btn.btn-close-custom:active {
        background-color: #d39e00 !important;
        border-color: #c69500 !important;
    }


.bg-orange {
    background-color: #fd7e14 !important;
}

.border-orange-dark {
    border: 1px solid #cc7000 !important; /* laranja escuro */
}

.text-orange-dark {
    color: #cc7000 !important; /* laranja escuro */
}

.border-danger-dark {
    border: 1px solid #a71d2a !important; /* vermelho escuro */
}

.text-danger-dark {
    color: #a71d2a !important; /* vermelho escuro */
}

.border-success-dark {
    border: 1px solid #0f5132 !important; /* verde escuro */
}

.text-success-dark {
    color: #0f5132 !important; /* verde escuro */
}

.swal2-vertical-buttons {
    flex-direction: column !important;
    gap: 10px; /* Espaçamento entre botões */
}

.notification-rect {
    width: 20px; /* Largura do retângulo */
    height: 15px; /* Altura do retângulo */
    border-radius: 3px; /* Cantos levemente arredondados */
}

@keyframes lensZoom {
    0% {
        opacity: 0;
        transform: scale(1.1);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.notification-animation {
    animation: lensZoom 0.4s ease-out;
}

#recordBtn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.response-pulse {
    animation: pulse 1.2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 0.4;
        transform: scale(0.98);
        color: #666;
    }

    50% {
        opacity: 1;
        transform: scale(1.08);
        color: #d32f2f; /* vermelho de destaque */
    }

    100% {
        opacity: 0.4;
        transform: scale(0.98);
        color: #666;
    }
}

.typing-effect {
    display: flex;
    align-items: center;
    gap: 8px; /* espaço entre o GIF e qualquer outro elemento */
    padding: 6px 10px;
}

.typing-gif {
    width: 40px; /* tamanho do GIF */
    height: 26px;
}

.typing-effect audio {
    display: none; /* mantém o áudio funcional, mas não aparece na tela */
}