/******************
    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
*/

:root {
    --zs-blue: #3366CC;
    --zs-blue-hover: #3e7dfa;
    --zs-blue-light: #80aaff;
    --zs-blue-lightest: #e5eeff;
    --zs-orange: #EA8A24;
    --grey: #ced4da;
    --bs-primary: #333333;
    --bs-primary-rgb: 51, 51, 51;
    --bs-info: var(--zs-blue);
    --bs-info-rgb: 51, 102, 204;
}

body {
    background-color: #f7faff;
}

.question-text {
    font-size: 1.25rem;
}

.table {
    --bs-table-hover-bg: #f8f8f8;
    
    & > :not(:first-child) {
        border-width: 1px;
        border-color: #dadada;
    }
    
    & > thead th {
        background-color: #f8f8f8;
    }
}

.table-bordered > thead > tr > th {
    border: 1px solid #dadada;
}
.table-bordered > thead > tr > td {
    border: 1px solid #dadada;
}
  
/* Define the color for Awesome Bootsrap Checkboxes ; based on bg-primary background-color*/
label::after {
    background-color: #337ab7
}

/* Multiplechoice bootstrap buttons unchecked focus*/
.btn-check .btn-primary:focus, .btn-check:focus+.btn-primary {
    background-color: var(--zs-blue);
    border: 1px solid var(--zs-blue);
    box-shadow: none;
    color: var(--bs-primary);
}
.btn-check:focus:checked + .btn-primary, .btn-check .btn-primary:focus:checked {
    background-color: var(--zs-blue-lightest);
    border-color: var(--zs-blue);
    color: var(--zs-blue);
}
.btn-check+.btn-primary, .btn-check .btn-primary {
    background-color: white;
    border-color: var(--grey);
    color: var(--bs-primary);
    box-shadow: 0px 2px 8px -4px rgba(2, 17, 42, 0.15);
    
    &:hover {
        background-color: white;
        border-color: var(--zs-blue-light);
        color: var(--zs-blue);
    }
}
.btn-check:active+.btn-primary, .btn-check:checked+.btn-primary, .btn-primary.active, .btn-primary:active, .show>.btn-primary.dropdown-toggle {
    background-color: var(--zs-blue-lightest);
    border-color: var(--zs-blue);
    color: var(--zs-blue);
    box-shadow: 0px 2px 8px -4px rgba(2, 17, 42, 0.3);
}

.btn {
    border-radius: .5rem;
    box-shadow: 0px 2px 8px -4px rgba(2, 17, 42, 0.15);
}

.btn-primary {
    background-color: var(--zs-blue);
    border-color: var(--zs-blue);
    
    &:hover {
        background-color: var(--zs-blue-hover);
        border-color: var(--zs-blue-hover);
    }
}

.btn-outline-secondary {
    background-color: white;
    border-color: var(--grey);
    color: var(--zs-blue);
    box-shadow: 0px 2px 8px -4px rgba(2, 17, 42, 0.15);
    
    &:hover {
        background-color: white;
        border-color: var(--zs-blue-light);
        color: var(--zs-blue);
    }
}

.btn-link, a:not(.btn-primary) {
    color: var(--zs-blue);
    
    &:hover {
        color: var(--zs-blue-hover);
    }
}

.checkbox-item label::after {
    background-color: var(--zs-blue);
    color: white;
    width: 17px;
    height: 17px;
    left: 0px;
    top: 0px;
}

.checkbox-item input[type="checkbox"]:focus + label::before, .checkbox-item input[type="radio"]:focus + label::before {
    outline: none;
}
.checkbox-item input[type="checkbox"]:focus-visible + label::before, .checkbox-item input[type="radio"]:focus-visible + label::before {
    outline: 5px auto -webkit-focus-ring-color;
    outline-offset: -2px;
}

[data-number='1'] {
    text-align: left; 
}

.form-control, .list-group, .alert {
    border-radius: .5rem;
    box-shadow: 0px 2px 8px -4px rgba(2, 17, 42, 0.15);
}

.modal-content {
    border: none;
    border-radius: .5rem;
}

.progress {
    background-color: white;
    border-radius: .5rem;
    box-shadow: 0px 2px 8px -4px rgba(2, 17, 42, 0.15), inset 0px 0px 0px 1px var(--grey);
    
    .progress-bar {
        background-color: var(--zs-blue);
        border-radius: .5rem;
        box-shadow: inset 0px 0px 0px 1px rgba(0, 0, 0, .3);
    }
}

.card {
    border-radius: .5rem;
    
    p:last-child {
        margin-bottom: 0;
    }
    
    .card-title, .h2 {
        margin-top: 0;
    }
    
    &.p-6 {
        padding: 0 !important;
    }
}

.card-body {
    padding: 1.5rem;
}

.fa-asterisk {
    margin-right: .5rem;
}

.navbar-dark {
    background-color: var(--zs-blue) !important;
    box-shadow: 0px 2px 8px -2px rgba(2, 17, 42, 0.15);
    
    .nav-link:hover {
        color: white !important;
    }
    
    .navbar-toggler {
        border: none;
    }
}

.navbar .logo {
    max-height: 60px;
}

.logo-big {
    max-width: 480px;
    margin-bottom: 2rem;
}

.radio-preview {
    width: 17px;
    height: 17px;
    padding: 2px;
    margin: 0 auto;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 50%;
    
    .radio-preview-checked {
        height: 100%;
        background-color: #2c3e50;
        border-radius: 50%;
    }
}

.no-pointer-events {
    pointer-events: none;
}

.well {
    border-radius: .5rem;
    -webkit-box-shadow: none;
    box-shadow: 0px 2px 8px -4px rgba(2, 17, 42, 0.15);
    margin-bottom: 0;
    padding: 1.5rem;
    
    p:last-child {
        margin-bottom: 0;
    }
}

.question-container {
    border-radius: .5rem;
    box-shadow: 0px 2px 8px -4px rgba(2, 17, 42, 0.15);
    background-color: white;
}

.question-title-container {
    padding: 1.5rem;
}

.question-valid-container, .question-help-container {
    padding-left: 1.5rem;
}
.ls-questionhelp, .ls-question-mandatory {
    margin: -0.5rem 0 1rem;
}
@media only screen and (max-device-width: 760px) {
    .ls-questionhelp {
        font-size: 1rem;
    }
}

.answer-container:not(:has(>.d-none)) {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

ul {
    margin-bottom: 0;
}
.ls-answers {
    padding: 0;
}
.ls-label-question > p:last-child {
    margin-bottom: 0;
}
li:last-child {
    margin-bottom: 0;
}

.tooltip.show {
    opacity: 1;
}

.tooltip-inner {
    max-width: none;
}

.tooltip:has(img) {
    .tooltip-inner {
        background-color: #fff;
        box-shadow: 0px 2px 8px -4px rgba(2, 17, 42, 0.15);
        border: 1px solid var(--grey);
        padding: .5rem;
    }
    &.bs-tooltip-top .tooltip-arrow:before {
        border-top-color: #fff;
        filter: drop-shadow(0px 1px 0px var(--grey));
    }
    &.bs-tooltip-bottom .tooltip-arrow:before {
        border-bottom-color: #fff;
        filter: drop-shadow(0px -1px 0px var(--grey));
    }
    &.bs-tooltip-start .tooltip-arrow:before {
        border-left-color: #fff;
        filter: drop-shadow(1px 0px 0px var(--grey));
    }
    &.bs-tooltip-end .tooltip-arrow:before {
        border-right-color: #fff;
        filter: drop-shadow(-1px 0px 0px var(--grey));
    }
    
    img {
        max-width: 600px;
        border-radius: .25rem;
    }
}