/* Driver.js */
@import './driver.css';

body {
    /*background-color: skyblue;*/
}
.tooltip-inner {
    opacity: 1 !important;
}
.tooltip .tooltip-arrow::before {
    opacity: 1 !important;
}
main.container, main.container-fluid {
    /*margin-top: 4em;*/
}

.bg-ocre, .dropdown-item.active, .dropdown-item:active {
    background-color: #ea5346; /* #7c0707; /*#ea5345; /*#FF9900;*/
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    background-color: #ea5346;
}

a, .nav-link {
    color: #ea5346;
}

a:hover, .nav-link:hover {
    color: #e04D3D;
}

.accordion-button-ue, .accordion-button-ue:not(.collapsed), .table-chemin-pedago > tbody > tr.row-ue > * {
    background-color: #f9ceca; /* #ff4500; /*#fcaa30;*/
}

.accordion-button-ecue, .accordion-button-ecue:not(.collapsed), .table-chemin-pedago.table-striped > tbody > tr.row-ecue > * {
    background-color: #ffd2b7; /*#3399ff; /*#fabd61;*/
}

/*.accordion-button-type, .accordion-button-type:not(.collapsed), .table-chemin-pedago.table-striped > tbody > tr:nth-of-type(2n+1) > * {*/
/*    background-color: #f6cd91;*/
/*}*/

.accordion-button-type, .accordion-button-type:not(.collapsed) {
    background-color: #f8e6b7; /*#f4d35e; /*#f6cd91;*/
}

.accordion-body-nopad {
    padding: 0;
}

.row-alt {
    background-color: #eee;
}
.tinyeditor {
    padding: 0 .5em;
}

.tinyeditor:hover:not(.mce-edit-focus) {
    background: #ffddd4; /*#fff5cc;*/
}

.tox-tinymce-aux {
    z-index: 99999 !important;
}

.tox-toolbar-overlord,
.tox-editor-header {
    z-index: 99999 !important;
}

td.highlighted {
    font-weight: bold;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

#loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.vhe-mod
{
    background-color: rgba(255, 89, 0, 0.2);
    box-shadow: 0.2rem 0.2rem 0.2rem rgba(255, 89, 0, 0.2);
}

/*toggle switch*/

/* The switch - the box around the slider */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 24px;
}

/* Hide default HTML checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* The slider */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(36px);
    -ms-transform: translateX(36px);
    transform: translateX(36px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Quand le checkbox est disabled */
.switch input:disabled + .slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.switch input:disabled + .slider.round {
  background-color: #ccc;
}


/* --- BOUTONS VISIONNEUSE --- */

.btn-viewer {

padding: 0.5rem 1.5rem;

font-weight: bold;

}

.btn-coral {
    background-color: #FF7F50;
    border-color: #FF7F50;
    color: white;
}
.btn-coral:hover {
    background-color: #e67850 !important;
    border-color: #FF7F50 !important;
    color: white !important;
}
.text-coral {
    color: #FF7F50;
}

.bg-orange {
    background-color: #fd7e14;
    color: #fff;
}

/* --- CUSTOM DRIVER.JS --- */

.driver-popover {

background-color: #fff;

border-radius: 12px;

box-shadow: 0 15px 35px rgba(0,0,0,0.2), 0 5px 15px rgba(0,0,0,0.1);

border: none;

padding: 20px;

max-width: 400px;

}

.driver-popover-title {

font-size: 1.1rem;

font-weight: 700;

color: #2c3e50;

margin-bottom: 10px;

}

.driver-popover-description {

font-size: 0.95rem;

color: #555;

line-height: 1.5;

margin-bottom: 20px;

}

.driver-popover-next-btn {

background-color: #198754 !important;

color: #fff !important;

border: none !important;

text-shadow: none !important;

border-radius: 30px !important;

padding: 8px 20px !important;

font-size: 0.85rem !important;

font-weight: 600 !important;

transition: background-color 0.2s;

}

.driver-popover-next-btn:hover { background-color: #157347 !important; }

.driver-popover-prev-btn {

background-color: transparent !important;

color: #6c757d !important;

border: 1px solid #dee2e6 !important;

border-radius: 30px !important;

padding: 8px 15px !important;

font-size: 0.85rem !important;

text-shadow: none !important;

}

.driver-popover-prev-btn:hover {

background-color: #f8f9fa !important;

color: #000 !important;

}

.driver-popover-progress-text {

font-size: 0.75rem !important;

color: #999 !important;

font-weight: 600;

}

.driver-popover-close-btn {

color: #adb5bd !important;

transition: color 0.2s;

}

.driver-popover-close-btn:hover { color: #dc3545 !important; }

.modal-footer {
    margin-top: 10px !important;
    border-top: none !important;
}
.modal-header {
   padding-bottom: 11px;
   padding-top: 11px;

}

tr.shown {
    background-color: rgba(13, 110, 253, 0.05) !important;
    border-left: 4px solid #0d6efd !important;
}

/* Accentuer le survol */
.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.row-demarcation td {
    border-bottom: 2px solid #dee2e6 !important;
}

.sticky-col-right {
    position: sticky;
    right: 0;
    z-index: 2;
    background-color: inherit; /* hérite de la couleur de la ligne (striped, active, etc.) */
}

/* Pour que le header soit au-dessus du body en scroll */
thead .sticky-col-right {
    z-index: 3;
}