/******************
    User custom CSS
    ---------------

    In this file you can add your own custom CSS
    It will be loaded last, so you can override any other property.
    Also, it will never be updated. So if you inheritate a core template and just add here some CSS, you'll still benefit of all the updates
*/

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 0 !important;
    background-color: #EDF1F7 !important;
}

body > article {
    flex: 1;
}

body h1{
    color: #C89211 !important;
}

p {
    color: #192E4C !important;
}

body .card-body p.text-info {
    color: #192E4C !important;
}

#ls-toggle-token-show {
    background-color: #192E4C !important;
    color: white !important;
    border-color: #192E4C !important;
}


/* ---------------------- NAVBAR PRINCIPAL ---------------------- */
#survey-nav {
    border-bottom: 4px solid #F4B400 !important;
}

#survey-nav .nav-link {
    color: #192E4C !important;
}

#survey-nav .nav-link:hover {
    color: #C89211 !important;
}

.navbar-nav > li::after {
    background-color: #192E4C !important;
}

#language-dropdown .dropdown-item:hover,
#language-dropdown .dropdown-item:focus,
#language-dropdown .dropdown-item:active {
    background-color: #192E4C !important;
    color: #ffffff !important;
}

#survey-nav .logo-container img {
    min-width: 6rem;
    min-height: 9.5rem;
}

/* ---------------------- NAVBAR PRINCIPAL RESPONSIVE ---------------------- */
@media (max-width: 768px) {
    #survey-nav .logo-container {
        display: block !important;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    #survey-nav .navbar-toggler-icon {
        filter: invert(18%) sepia(21%) saturate(1050%) hue-rotate(186deg);
    }
}

@media (max-width: 768px) {
    #survey-nav .navbar-toggler:focus,
    #survey-nav .navbar-toggler:hover {
        box-shadow: none;
        background-color: rgba(25, 46, 76, 0.08);
        border-radius: 6px;
    }
}

/* ---------------------- WELCOME ---------------------- */

.fruity .survey-description.text-info {
    color: #192E4C !important;
}

.fruity .survey-welcome.text-primary {
    color: #192E4C !important;
}

.privacy a {
    color: #C89211 !important;
}

.ls-return, .ls-endurl, .ls-quotaurl {
    color: #C89211 !important;
}

.ls-privacy-head.h4.text-primary {
    color: #C89211 !important;
}

/* ---------------------- SURVEYS LIST ---------------------- */

#surveys-list-jumbotron > .img-fluid {
    content: url("../files/logo-fmat.png");
    max-width: 20rem;
}

#surveys-list-jumbotron > span {
    font-size: 3rem;
    color: #192E4C !important;
}

#surveyListFooter {
    display: none;
}

/* BOTONES LISTA DE ENCUESTAS */

.surveys-list .btn-primary {
    background-color: white !important;
    border: 2px solid #192E4C !important;
    color: #192E4C !important;
    font-weight: 500;
    text-align: center;
    border-radius: 6px;
}

/* hover */
.surveys-list .btn-primary:hover {
    background-color: #E6C56F !important;
    border-color: #192E4C !important;
    color: #192E4C !important;
}

/* Botón normal */
.btn-primary {
    background-color: #192E4C !important;
    border: 2px solid #192E4C !important;
    color: white !important;
    transition: all 0.3s ease;
}

/* Hover */
.btn-primary:hover {
    background-color: #0F1E33 !important;
    border-color: #0F1E33 !important;
    color: #C89211 !important;
}

/* Seleccionado */
.btn-check:checked + .btn-primary {
    background-color: #C89211 !important;
    border-color: #C89211 !important;
    color: #192E4C !important;
    transform: scale(1.03);
}

/* Focus accesibilidad */
.btn-check:focus + .btn-primary {
    box-shadow: 0 0 0 0.25rem rgba(200, 146, 17, 0.5) !important;
}

.btn-outline-secondary {
    border-color: #192E4C !important;
    color: #192E4C !important;
}

/* ---------------------- QUESTION ---------------------- */
.progress-bar {
    background-color: #C89211 !important;
}

.question-container > .question-valid-container,
.question-container > .question-help-container {
    color: #192E4C !important;
}

.question-container .ls-questionhelp::before {
    color: #C89211 !important;
}

.question-container .fa-exclamation-circle {
    color: #C89211 !important;
}

.question-title-container > .question-text {
    color: #192E4C !important;
    font-weight: bold;
}

.radio-item input[type="radio"]:checked + label::after {
    background-color: #C89211;
}

.radio-item input[type="radio"] + label::before {
    border-color: black;
}

.radio-item label {
    color: black !important;
}

textarea.form-control {
    color: #192E4C !important;
    border-color: #192E4C !important;
}

textarea.form-control:focus {
    border-color: #192E4C !important;
    box-shadow: 0 0 0 0.2rem rgba(25, 46, 76, 0.25) !important;
}

input.form-control {
    color: #192E4C !important;
    border-color: #192E4C !important;
}

input.form-control:focus {
    border-color: #192E4C !important;
    box-shadow: 0 0 0 0.2rem rgba(25, 46, 76, 0.25) !important;
}

select.form-control {
    color: #192E4C !important;
    border-color: #192E4C !important;
}

select.form-control:focus {
    border-color: #192E4C !important;
    box-shadow: 0 0 0 0.2rem rgba(25, 46, 76, 0.25) !important;
}

a.dropdown-item.selected.active[aria-selected="true"] {
    background-color: #192E4C !important;
    color: white !important;
}

.dropdown-menu.inner.show li:not(.active) > a.dropdown-item:hover {
    background-color: #192E4C !important;
    color: white !important;
}

input[type="checkbox"]:checked + .checkbox-label::after {
   background-color: #C89211 !important; /* tu color */
}

p.alert {
    border-color: #C89211 !important;
}

.btn-danger {
    background-color: #DC3545 !important; 
    border-color: #DC3545 !important;
    color: #FFFFFF !important;             
}

.btn-danger:hover {
    background-color: #BB2D3B !important; 
    border-color: #BB2D3B !important;
    color: #FFFFFF !important;
}

/* ---------------------- TABLES MATRIX ---------------------- */

/* encabezados de columnas */
.ls-answers thead th.answertext,
.ls-answers thead th.answer-text {
    background-color: #192E4C !important;
    color: white !important;
}

/* celda superior izquierda vacía */
.ls-answers thead td {
    background-color: #2F4159 !important;
}

/* columna izquierda (subpreguntas) */
.ls-answers tbody th.answertext {
    background-color: #2F4159 !important;
    color: white !important;
    font-weight: 500;
}

/* celdas normales */
.ls-answers tbody td {
    background-color: #F8FAFC !important;
}

/* hover fila (sobrescribe bootstrap + limesurvey) */
.ls-answers tbody tr:hover > td,
.ls-answers tbody tr:hover > th,
.ls-answers tbody tr.ls-even:hover > td,
.ls-answers tbody tr.ls-even:hover > th,
.ls-answers tbody tr.ls-odd:hover > td,
.ls-answers tbody tr.ls-odd:hover > th {
    background-color: #E9EEF5 !important;
}

/* ---------------------- ALERT ---------------------- */

.alert-warning {
    background-color: #ffc107 !important; /* mismo color base del warning */
    border-color: #ffc107 !important;
    color: #ffffff !important;
    opacity: 1;
    font-weight: bold;
}

.alert-warning .btn-close {
    filter: invert(1);
}


/* ---------------------- FOOTER ---------------------- */
#survey-footer {
    background-color: #192E4C;
    color: #ffffff;
    text-align: center;
    padding: 12px 10px;
    font-size: 14px;
}

#survey-footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
}