﻿:root {
    --color-base: #661173;
    --color-base-suave: #f1defa;
}

body {
    padding-top: 50px;
    padding-bottom: 20px;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 280px;
}
.form-control-largo {
    max-width: 560px;
}
.form-control-corto {
    max-width: 150px;
}
.form-control-full {
    max-width: 100%;
}

body {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
}
.bg-primary {
    background-color: #661173   !important;
    color:white !important;
}

.btn-primary {
    background-color: #661173 !important;
    border-color: #661173 !important;
}

/* loader */
.none {
    display: none !important;
}
.ic-fitxesInstal .tab-pane h4,
.ic-fitxesInstal .tab-pane h5,
.ic-fitxesInstal .tab-pane h6 {
    font-weight: bold;
}

/*.nav-tabs .nav-link {
    border: 1px solid white;
}*/

/* Treure el botó Browse */
.ic-custom-file-label::after {
    display: none;
}
/*.ic-GuardaImatge.is-active {
    border: thick double #000;*/
    /*    background-color: rgba(0, 168, 243, .5);*/
    /*animation: pulse 1.5s infinite;
    animation-timing-function: linear;*/
    /* Lo encojemos (>1 se agranda, <1 se encoje, 0 desaparece )*/
    /*transform: scale(0.90);
    box-shadow: 0px 0px 30px #007bff;
}
.ic-GuardaPDF.is-active {
    border: thick double #000;*/
    /*    background-color: rgba(0, 168, 243, .5);*/
    /*animation: pulse 1.5s infinite;
    animation-timing-function: linear;*/
    /* Lo encojemos (>1 se agranda, <1 se encoje, 0 desaparece )*/
    /*transform: scale(0.90);
    box-shadow: 0px 0px 30px #007bff;
}*/
.ic-GuardaImatge.is-active,
.ic-GuardaPDF.is-active,
.ic-Drop.is-active {
    background-color: #d39cdb;
}
.ic-Drag.ic-arrastran {
    opacity: 0.3;
}

.ic-GuardaPDF a {
    display: initial;
   /* padding-left: 5px;*/
}
/*.ic-GuardaImatge.is-active {
    border: thick double #000;
    background-color: rgba(0, 168, 243, .5);
    animation: pulse 1.5s infinite;
    animation-timing-function: linear;
}*/
.ic-GuardaImatge a {
    display: initial;
    padding-left: 5px;
}
.ic-b-center b {
    align-self: center;
}
.ic-width-280 {
    max-width: 280px;
}

/*=======\/=== slider (bool) ===\/==================*/
/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
    max-width: 53px;
    min-width: 53px;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 18px;
        width: 18px;
        left: 4px;
        bottom: 3px;
        background-color: white;
        -webkit-transition: .4s;
        transition: .4s;
    }

.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 24px;
}
    /* Hide default HTML checkbox */
    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

input:checked + .slider {
    /* Color */
    background-color: #661173;
}

.ic-color-disabled input:checked + .slider {
    /* Color */
    background-color: #73115080;
}

input:focus + .slider {
    box-shadow: 0 0 0px #ee1c25;
}

input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 28px;
}

    .slider.round:before {
        border-radius: 50%;
    }

td .switch {
    margin-top: 8px;
}
/*=======/\=== slider (Bool) ===/\==================*/

.table th, .table td {
    vertical-align: middle;
}

/*=== Color de la barra de paginació ===*/
.page-link {
    color: #661173;
}
.page-item.active .page-link {
    background-color: #661173;
    border-color: #661173;
}

/* Dropdown Button */
.dropbtn {
    background-color: #661173;
    color: white;
    padding: 16px;
    font-size: 16px;
    border: none;
    cursor: pointer;
}

    /* Dropdown button on hover & focus */
    .dropbtn:hover, .dropbtn:focus {
        background-color: #2980B9;
    }

/* The container <div> - needed to position the dropdown content */
.dropdown {
    position: relative;
    display: inline-block;
}

/* Dropdown Content (Hidden by Default) */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f1f1f1;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

    /* Links inside the dropdown */
    .dropdown-content a {
        color: black;
        padding: 12px 16px;
        text-decoration: none;
        display: block;
    }

        /* Change color of dropdown links on hover */
        .dropdown-content a:hover {
            background-color: #ddd;
        }

/* Show the dropdown menu (use JS to add this class to the .dropdown-content container when the user clicks on the dropdown button) */
/*.show {
    display: block;
}*/

/* DisplayEditTemplate.css */
.DE-Icon {
    padding-left: 5px;
}

/* llista Test. Preguntes i respostes conjunts de cursos online */
.ic-LlistaTest .ic-pregunta {
    font-weight: bold;
}
.ic-LlistaTest .ic-tabulador {
    width: 50px;
}
    .ic-LlistaTest .ic-tabulador[data-escorrecta="True"] {
        border-right: solid 5px green;
    }

    .ic-LlistaTest .ic-tabulador[data-escorrecta="False"] {
        border-right: solid 5px red;
    }


i.ic-BorrarPregunta:hover {
    cursor: pointer;
}

.ic-btn-show-noBlock {
    align-items: center;
    padding-left: 0px;
    padding-right: 0px;
    height: 32px;
}
.ic-btn-show-noBlock.show,
.ic-btn-show-noBlock .btn.show {
    display: inline-flex;
}
.ic-btn-show-noBlock.btn-group > .btn:not(:first-child) {
    left: 4px
}
.ic-btn-show-noBlock button {
    align-items: center;
    height: 32px;
    padding-top: 4px;
}
.ic-btn-show-noBlock button i {
    align-items: center;
    padding-right: 10px;
}

img {
    pointer-events: none;
}

@media print {
    .no-print, .no-print * {
        display: none !important;
    }
}

/* Nou format butó */
.ic-btn-primary {
    background-color: white;
    color: gray;
    border: .5px solid gray;
    border-radius: 5px;
    margin-right: 5px;
    margin-bottom: 5px;
}
    .ic-btn-primary:hover {
        background-color: lightgray;
    }

.ic-btn-resposta {
    background-color: gainsboro;
}
    .ic-btn-resposta.ic-resposta-correcta {
        background-color: green;
        color: white;
    }
    .ic-btn-resposta.ic-resposta-incorrecta {
        background-color: red;
        color: white;
    }

    /* Donut gràfica */
    /*  
    <article>
        <div class="ic-grafica-donut" style="--valor-ok: 56%;"></div>
        <div class="ic-grafica-donut-forat"></div>
    </article>
*/
    .ic-grafica-donut {
        position: absolute;
        border: 1px solid gray;
        width: 200px;
        height: 200px;
        min-width: 200px;
        min-height: 200px;
        border-radius: 50%;
        background-image: radial-gradient(white 20%, white 20%, transparent 20%), conic-gradient(chartreuse 0% var(--valor-ok), white var(--valor-ok));
    }
.ic-grafica-donut-forat {
    position: relative;
    border: 1px solid gray;
    margin-bottom: 100px;
    width: 100px;
    height: 100px;
    min-width: 100px;
    min-height: 100px;
    border-radius: 50%;
    background-color: white;
    top: 50px;
    left: 50px;
    margin-right: 125px;
}

a.fa:hover {
    text-decoration: none;
}


/*xat - forum*/
.ic-img-xat {
    max-width: 100px;
    max-height: 100px
}

/*xat - table*/
.ic-xat-table{
    width:100%;
}
    .ic-xat-table .ic-border-yo-mismo {
        border-left: solid var(--color-base) 4px;
    }
    .ic-xat-table tr td {
        vertical-align: top;
    }
    .ic-xat-table .ic-xt-img {
        width: 125px
    }
    .ic-xat-table .ic-xt-multilin-petit {
        white-space: pre-line;
        font-size: small;
    }
    .ic-xat-table .ic-xt-multilin {
        white-space: pre-line;
        font-size: large;
    }
    .ic-xat-table .ic-xt-border-bottom {
        border-bottom: solid white 15px;
    }
    .ic-xat-table .ic-xt-seg-bg {
        background-color: var(--color-base-suave);
    }
    .ic-xat-table .ic-xt-papelera {
        vertical-align: bottom;
        text-align: right;
    }

.fa-trash-o {
    color: red;
}

.ic-color-disabled.disabled [class*="fa-"] {
    color: gray;
}

.opacity-50 {
    opacity: 0.5;
}
span.bg-dark {
    color: white;
}
progress {
    accent-color: var(--color-base);
}

.ic-d-inline {
    display: inline-flex
}