/* s'assurer que le aside occupe 100% de la hauteur de la fenêtre */
aside .navbar-collapse {
    min-height: 80vh !important;
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
}

.table-bordered>:not(caption)>*>* {
    border-width: 0 0 2px 0 !important;
}

.active>.page-link {
    color: white;
}
.nav-tabs .nav-link.active {
    border-bottom: 2px solid #a900a9;
    color: #a900a9;
    background-color: transparent;
}

.nav-tabs .nav-link {
    color: #8392ab;
    border: none;
    border-bottom: 1px solid #8392ab4f;
}
.nav-tabs .nav-link:hover {
    color: #8392abb2;
    border: none;
    border-bottom: 1px solid #8392ab1d;
}

.nav-tabs .nav-link.active:hover {
    border-bottom: 2px solid #a900a9ae;
    color: #a900a9ae;
    background-color: transparent;
}

.nav-tabs {
    border-bottom: none;
}

.perfect-scrollbar-container {
    position: relative;
    max-width: 100%;
    overflow-x: auto;
}

.modal .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #ddd;
}

.modal .table {
    width: 100%;
    max-width: 100%;
    margin-bottom: 1rem;
    background-color: transparent;
}

.datepicker.datepicker-dropdown {
    border: 1px solid rgba(0, 0, 0, 0.13) !important;
    filter: drop-shadow(1px 1px 5px rgba(0, 0, 0, 0.441));
}
.datepicker.datepicker-dropdown td.active.day{
    background-image: linear-gradient(310deg, #7928CA 0%, #ac3ce8 100%);
    border-radius: 0;
}
.datepicker.datepicker-dropdown td.disabled{
    border-radius: 0;
    background-image: linear-gradient(310deg, #e0dfdf8d 0%, #d5d3d38d 100%);
}
.datepicker.datepicker-dropdown td.disabled:hover{
    background-image: linear-gradient(310deg, #e0dfdf8d 0%, #d5d3d38d 100%);
    cursor: not-allowed;
}
.datepicker.datepicker-dropdown th.dow{
    background-image: linear-gradient(310deg, #7928CA 0%, #7928CA 100%);
    border-radius: 0;
    color: white
}


.fc-event-container {
    display: flex;
    align-items: center;
    width: 100%;
    overflow: hidden;
    text-align: center;
    border-radius: 6px;
}


.fc-event-text {
    display: inline-block;
    width: 100%;
}


.color-select {
    height: 40.40px;
    width: 100%;
    padding: 3px;
}

.th-inner:has(.header-class) {
    border-color: #dee2e6;
    border-style: solid;
    border-width: 1px 1px 0 1px;
}


.th-inner:has(.action-class) {
    border-color: #dee2e6;
    border-style: solid;
    border-width: 1px 1px 0 1px;
    padding: 2.2rem .75rem !important;

}


.form-group .select2 {
    width: 100% !important;
    font-size: 0.875rem;
}

.select2-selection__arrow {
    height: 100% !important;
}

.select2-container {
    border-radius: 0.5rem;
}

.select2-selection {
    height: 40px !important;
    border-radius: 0.5rem !important;
    border-color: #d2d6da !important;
}

.select2-selection__rendered {
    height: 100%;
    border-radius: 0.5rem;
    padding: 8px 12px !important;
    line-height: unset !important;
    border-color: #d2d6da !important;
}

.select2-dropdown,
.select2-results {
    border-color: #d2d6da !important;
    filter: drop-shadow(1px 1px 5px #d2d6da);
}

.select2-results__option--highlighted {
    background-color: #a900a9 !important;
}


.conditional-row {
    display: none;
}

/* Student SHOW, catégorie collapsble  */
.show-student-button {
    font-size: 14px;
    color: #8e9cb3;
    border-bottom: 1px solid #8e9cb3 !important;
}

.show-student-button:hover {
    transition: .2s ease-in;
    color: #b0bac9;
    border-bottom: 1px solid #b0bac9;
}

.show-student-button.active {
    color: #a900a9;
    border-bottom: 1px solid #a900a9 !important ;
}


/* toggle switch */
.actual-period-toggle:checked {
    background-color: #a900a9 !important;
    border-color: #a900a9 !important;
}


/* dashboard */
.dash-table-hover:hover {
    color: black !important;
    filter: drop-shadow(0 0 0.75rem rgba(128, 128, 128, 0.475));
    transition: .5s ease-in;
}


.patchnote-badge {
    position: absolute;
    left: -18px;
    top: -5px;
}

.patchnote-link {
    padding: 6px 16px !important;;
    border: 1px solid #d2d6da;
    border-radius: 10px;
    margin-right: 10px;
}


    /* Animations */
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    @keyframes spin {
        to { transform: rotate(360deg); }
    }

    /* Styles pour les détails */
    .detail-content {
        animation: fadeIn 0.3s ease-out;
        background: #f8f9fa;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        position: relative;
        padding: 0.5rem;
    }

    .detail-content .row {
        margin: 0 -0.25rem;
    }

    .detail-content .col-md-4,
    .detail-content .col-md-6 {
        padding: 0.25rem;
    }

    .detail-content .card {
        margin-bottom: 0;
    }

    .detail-content .card-body {
        padding: 0.5rem;
    }

    .detail-content .numbers p {
        font-size: 0.75rem;
        margin-bottom: 0.25rem;
    }

    .detail-content .numbers h5 {
        font-size: 0.875rem;
        line-height: 1.2;
        margin-bottom: 0.25rem;
    }

    .detail-content .text-muted {
        color: #6c757d !important;
    }

    .detail-content .fw-bold {
        font-weight: 600 !important;
    }

    .detail-content .mt-4 {
        margin-top: 0.5rem !important;
    }

    /* Styles pour le tableau */
    #sessionTable {
        --bs-table-hover-bg: rgba(52, 152, 219, 0.05);
    }

    #sessionTable tbody tr {
        transition: all 0.2s ease;
    }

    #sessionTable tbody tr:hover {
        background-color: var(--bs-table-hover-bg);
    }

    /* Style pour les boutons d'action */
    .badge {
        transition: all 0.2s ease;
        margin: 0 2px;
    }

    .badge:hover {
        transform: translateY(-1px);
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    /* Style pour les tooltips */
    .tooltip {
        font-size: 0.75rem;
        max-width: 300px;
    }

    .tooltip-inner {
        max-width: 300px;
        padding: 0.25rem 0.5rem;
        text-align: left;
        word-break: break-word;
    }
