/* Estilos generales para modales */

/* Título del modal */
.modal-title{
    font-size: 20px;
    font-weight: bold;
}

/* Estilos del header del modal*/
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Estilos del título del modal*/
.modal-header .modal-title {
    margin: 0;
    padding: 0;
    flex: 1;
    color: inherit;
}

/* Estilos del botón de cerrar del modal*/
.modal-header .close {
    margin: 0;
    padding: 0;
    margin-left: auto;
}

/* Estilos del header del modal con branding */
.modal-header.branded {
    background-color: var(--brand-modal-header-bg);
    color: var(--brand-modal-header-text);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.modal-header.branded .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%); /* Hace el botón de cerrar visible en fondos oscuros */
}


/* Tabla con el resultado del historial */
.thead-branded th {
    background-color: #e9ecef; /* Un gris claro estándar de Bootstrap */
    color: #212529;             /* El color de texto oscuro por defecto */
    font-size: 16px;
    font-weight: bold;
}
.col-icon {
  width: 1%;
}

/* Modal de feedback */
.rating-stars {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 15px;
    padding-top: 5px;
}

/* Estilos de las estrellas del modal de feedback */
.star {
    font-size: 3rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s ease;
    margin: 0 2px;
}

.star::before {
    content: '★';
}

.star:hover,
.star.active,
.star.hover-active {
    color: var(--brand-primary-color);
}

/* model de help */
     .modal-body .accordion-button:not(.collapsed) {
        background-color: var(--brand-primary-color);
        color: var(--brand-text-on-primary);
        font-weight: 600;
        box-shadow: none;
    }

    /* Estilo para el anillo de foco, aplicado ÚNICAMENTE cuando el botón está CERRADO y tiene foco. */
    .modal-body .accordion-button.collapsed:focus {
        background-color: #fff; /* Asegura fondo blanco al hacer foco en un item cerrado */
        border-color: transparent; /* Evita bordes no deseados */
        /* La única regla que debe estar aquí es la que dibuja el anillo de foco. */
        box-shadow: 0 0 0 0.25rem rgba(var(--brand-primary-color-rgb), 0.25);
    }

.icon-spaced {
    margin-right: 10px;
}

.text-muted{
    font-size:16px;
    text-align: justify;
}

.feedback-text{
    font-size: 16px;
}

/* Modal de listado de archivos */
/* Estilos del nombre del archivo del modal de archivos y ordenar icono */
.file-name-modal {
    flex: 1;
    margin-right: 10px;
}

/* Para el icono de eliminar del modal */
.remove-file-btn i {
    color: #c82333
}

/* Estilos para el modal de archivos y ordenar icono */
.list-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Estilos del botón de eliminar del modal de archivos y ordenar icono */
.remove-file-btn {
    flex-shrink: 0;
}
