header {
    position: sticky;
    top: 0;
    z-index: 1000; /* Asegura que el header esté encima del contenido */
    background-color: #fff; /* Fondo del header */
}

.bg-light {
    background-color: #f6f5f7 !important; /* Fondo del header */
}

.nav-link-tab:hover {
    color: #532B88 !important;
}

.nav-link{
    color: #000 !important;
}

.dropdown-item {
    display: flex; /* Usa flexbox para alinear los elementos en línea */
    align-items: center; /* Alinea verticalmente los elementos */
    gap: 0.5rem; /* Espacio entre los elementos */
}

.username-highlight {
    color: #532B88; /* Color del nombre de usuario */
    padding: 5px 10px 5px 0px;
}

.container-fluid {
    padding: 0 30px;
}

.title-container {
    margin: 30px 0;
}

.content-container input::placeholder {
    color: #a9a9a9;
}

.content-container input[readonly] {
    color: #7e7e7e;
}

/* Form Container */
.form-container {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #E2D8ED;
    box-shadow: 0 6px 12px rgb(0, 0, 0, 0.1);
    width: 100%;
}

.form-title {
    display: flex;
    align-items: center;
}

/* Form Section 
.form-section {
    margin-bottom: 3rem;
}
*/
/* Form Group */
.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}   

.form-group small.form-text {
    font-size: 0.8em;
    font-weight: bold;
}

.form-label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-label .iconify {
    margin-left: 5px;
    cursor: help;
}  

.nav-pills a {
    width: 100%;
    display: flex;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.nav-pills .nav-icon{
    width: 18px;
    height: 18px;
}

.checkbox-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 38px;
}

.checkbox-container .checkbox-custom {
    transform: scale(2.2);
    cursor: pointer;
}

h1 {
    margin: 0;
    font-size: 2rem;
    text-align: center;   
    width: 100%;  
}

h2 {
    font-style: italic;
    color: #333333;
    font-size: 24px;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #2F184B;
}

/* Color Picker */
.color-picker {
    flex: none !important;
    width: 38px !important;
    height: 38px;
    border-radius: 4px;
    padding: 4px;
}

/* General Label */
label {
    margin: 0;
}

/* Special Service Selector */
#cliente_config_partnerservicio {
    height: 250px;
}

/* Time Picker */
.time-picker {
    text-align: center;
}

/* Form Buttons */
.form-buttons {
    display: flex;
    margin-top: 20px;
    gap: 15px;
}

.btn-submit, .btn-back, .btn-group .btn, .btn-group .btn-outline-primary {
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
}

.btn-submit:hover, .btn-back:hover, .btn-outline-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    color: #fff;
}

.btn-submit, .btn-back {
    border: none;
    color: #fff;
    /* padding: 10px 20px; */
    cursor: pointer;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); */
}
#edit-btn {
    border: none;
    color: #fff;
    /* padding: 10px 20px; */
    cursor: pointer;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); */
}
#save-btn {
    border: none;
    color: #fff;
    /* padding: 10px 20px; */
    cursor: pointer;
    min-width: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); */
}

.btn-back .iconify {
    font-size: 20px;
}

.btn-submit {
    border: 2px solid transparent;
    background-color: #2F184B;
}

.btn-back {
    position: absolute;
    background-color: transparent;
    border: 1px solid #2F184B;
    color: #2F184B;
}

.btn-back:hover {
    background-color: #2F184B;
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
    gap: 10px;
}

.titulo-recuadro {
    margin: 0;
    font-size: 2rem;
    text-align: center;   
    width: 100%;  
}

.btn-group .btn-outline-primary {
    margin: 0;
    background-color: transparent !important;
    border: 2px solid #2F184B !important;
    color: #2F184B !important;
}

/* Estilos para el estado activo basados en la clase .active */
.btn-outline-primary.active {
    background-color: #2F184B !important;
    color: #fff !important;
}

/* Estilos para el estado de hover */
.btn-outline-primary:hover {
    background-color: #2F184B !important;
}

/* Elimina cualquier estilo que dependa de la pseudoclase :focus que pueda estar afectando el relleno */
.btn-outline-primary:focus {
    box-shadow: none !important;
}

/* Asegúrate de que el fondo transparente solo se aplique cuando el botón no esté activo */
.btn-outline-primary:not(.active) {
    background-color: transparent !important;
    color: #2F184B !important;
}

/* Estilo base del botón */
.btn-especial {
    position: relative;
    overflow: hidden;
    border: 2px solid transparent; /* Inicialmente transparente */
    border-color: #dee2e6; /* Inicialmente transparente */
    background-color: #f8f9fa; /* Color de fondo inicial */
    color: #000; /* Color del texto */
    padding: 10px 20px; /* Espaciado interno */
    text-align: center; /* Alineación del texto */
    transition: color 0.4s; /* Transición suave del color de texto si deseas */
}

.h3t1:hover{
    color: #2F184B !important;
}

.spanlogint1:hover{
    background-color: #8b60ada1 !important;
    color: #fff !important;
}

.btn-especial:hover{
    background-color: #8b60ada1 !important; /* Color de fondo inicial */
    color: #fff !important;
}

/* Estilo del botón al hacer hover */
.btn-especial:active, .btn-especial:focus  {
    /* border-color: #2F184B !important; */
    background-color: #8b60ada1 !important; /* Color de fondo inicial */
    border-color: #2F184B !important; /* Color del borde al hacer hover */
    color: #fff !important;
}

#mainTabs,
#utilityTabs {
    gap: 1rem;
}

/* Main and Utility Tabs */
#mainTabs a,
#utilityTabs a {
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

#mainTabs a.active,
#utilityTabs a.active {
    color: #fff !important;
    background: #2F184B;
}

#mainTabs a:hover,
#utilityTabs a:hover {
    color: #fff !important;
    background: #8b60ada1;
}

#utilityTabs {
    margin-top: 30px;
}

.btn-flotante {
    display: none;
    position: relative;
    bottom: 0;
    right: 0;
}

/* Exit animation card errors */
@keyframes closeAnimation {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.95);
    }
}

/* Clase que aplicará la animación */
.animate-close {
    animation: closeAnimation 0.3s ease forwards;
}

/* Entry animation card errors */
@keyframes openAnimation {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

#newLogo img {
    max-width: 250px;
    height: auto;
}

.animate-open {
    animation: openAnimation 0.3s ease forwards;
}

@media (max-width: 992px) {
    #mainTabs a,
    #utilityTabs a {
        width: auto;
    }
}

@media (max-width: 768px) {
    #newLogo img {
        max-width: 150px;
    }
}

@media (max-width: 576px) {
    #newLogo img {
        max-width: 100px;
    }
}

@media (max-width: 991px) {
    .utility_navs {
        gap: 1rem;
    }
}

.dropdown-item.active, .dropdown-item:focus, .dropdown-item:active{
    background-color: #8b60ada1 !important;
    color: #fff !important;
}

.dropdown-item:hover{
    background-color: #8b60ada1 !important;
    color: #fff !important;
}

a {
    color: #2F184B !important;
    text-decoration: none;
    background-color: transparent;
}

.active>.page-link, .page-link.active{
    background-color: #2F184B !important;
    border-color: #2F184B !important;
}

.form-control:focus{
    color: #2F184B !important;
    border-color: #2F184B !important;
    box-shadow: 0 0 0 .25rem rgb(149 13 253 / 25%);
}

.form-select:focus{
    color: #2F184B !important;
    border-color: #2F184B !important;
    box-shadow: 0 0 0 .25rem rgb(149 13 253 / 25%);
}

.btn-primary{
    background-color: #2F184B !important;
    border-color: #2F184B !important;
}

.btn-success{
    background-color: #2F184B !important;
    border-color: #2F184B !important;
}

/* .form-select option:hover{
    background-color: #8b60ada1 !important;
    color: #fff !important;
} */
.disabled {
    pointer-events: none; /* Evita el clic en el enlace */
    opacity: 0.5; /* Cambia la opacidad para que parezca desactivado */
}

.human-message {
    background: #2f184b;
    padding: 10px 15px;
    border-radius: 10px;
    border: 1px solid #E2D8ED;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    display: inline-block; 
    color: white;
    margin: 8px;
    align-self: flex-end; 
    text-align: left; 
}

.bot-message{
    background: #fff;
    padding: 10px 15px;
    border-radius: 10px;
    border: 1px solid #E2D8ED;
    box-shadow: 0 6px 12px rgb(0, 0, 0, 0.1);
    display: flex;
    justify-content: flex-start;
    display: inline-block;
    margin: 8px;
}

.write-box{
    background: #2f184b;
    padding: 15px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    border: 1px solid #E2D8ED;
    box-shadow: 0 6px 12px rgb(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -1px;
}

.write-write-box{
    background-color: white;
    border-radius: 7px;
    border: 1px solid #E2D8ED;
    display: flex;
    width: 100%;
    margin-left: 10px;
    margin-right: 10px;
}
.write-write-input-box{
    background-color: white;
    border-radius: 7px;
    border: 1px solid #E2D8ED;
    display: flex;
    width: 100%;
    
}
.send-write-box:hover{
    color: #532B88;
}

.info-icon {
    display: inline-block;
    margin-left: 5px;
    color: #a053ff;
    cursor: pointer;
    font-weight: bold;
}

.info-icon:hover::after {
    content: attr(title);
    position: absolute;
    background-color: #2F184B;
    color: #fff;
    padding: 5px;
    border-radius: 4px;
    font-size: 0.9em;
    white-space: nowrap;
    transform: translateY(-30px);
    opacity: 1;
    transition: opacity 0.3s;
}

.send-write-box {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    outline: none;
    display: flex;
    align-items: center;
}

#loading {
    position: fixed;
    display: block;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    text-align: center;
    opacity: 0.7;
    background-color: #fff;
    z-index: 999999;
}

#loading-image {
    position: absolute;
    z-index: 100;
    top: 35%;
    right: 0;
    left: 0;
    bottom: 0;
    margin: 0 auto;
}

.list-group {
    --bs-list-group-color: var(--bs-body-color);
    --bs-list-group-bg: var(--bs-body-bg);
    --bs-list-group-border-color: var(--bs-border-color);
    --bs-list-group-border-width: var(--bs-border-width);
    --bs-list-group-border-radius: var(--bs-border-radius);
    --bs-list-group-item-padding-x: 1rem;
    --bs-list-group-item-padding-y: 0.5rem;
    --bs-list-group-action-color: var(--bs-secondary-color);
    --bs-list-group-action-hover-color: #ffffff;
    --bs-list-group-action-hover-bg: #2F184B;
    --bs-list-group-action-active-color: var(--bs-body-color);
    --bs-list-group-action-active-bg: var(--bs-secondary-bg);
    --bs-list-group-disabled-color: var(--bs-secondary-color);
    --bs-list-group-disabled-bg: var(--bs-body-bg);
    --bs-list-group-active-color: #fff;
    --bs-list-group-active-bg: #0d6efd;
    --bs-list-group-active-border-color: #0d6efd;
    display: flex
;
    flex-direction: column;
    padding-left: 0;
    margin-bottom: 0;
    border-radius: var(--bs-list-group-border-radius);
}

.selected-thread {
    background-color: #2F184B; 
    color: white  
}

.alert-info {
    --bs-alert-color: #000000;
    --bs-alert-bg: #ffffff;
    --bs-alert-border-color: #E2D8ED;
    --bs-alert-link-color: #E2D8ED;
}

.quitar > p {
    margin: 0 !important;
}