/*--------------------------------------------------------------
# Speciality User
--------------------------------------------------------------*/
.ribbon{
    line-height:30px;
    height:30px;
    background: #363636;
    position:relative;
    display:inline-block;
    left: -20px;
    margin-right: -1.2em;
    padding-left: calc( 1rem + 1.2em);
    padding-right: 1.2em;
    vertical-align:baseline;
    border-radius:0 4px 4px 0;
    color:white;
}

div.ribbon:after{
    position:absolute;
    width:0;
    height:0;
    top:100%;
    left:0;
    content:'';
    border-style:solid;
    border-color:transparent;
    border-width:0 20px 20px 0;
    border-right-color: #004433;
}

/* Classes spécifiques pour chaque spécialité */
.ribbon-cha {
    background: #3d9d85; /* Couleur pour Chaudronnerie */
}

div.ribbon-cha:after{
    border-right-color: #2e7a66;
}

.ribbon-mec {
    background: #d9534f; /* Couleur pour Levage */
}

div.ribbon-mec:after{
    border-right-color: #a94442;
}

.ribbon-lev {
    background: #f0ad4e; /* Couleur pour Mécanique */
}

div.ribbon-lev:after{
    border-right-color: #eea236;
}

.ribbon-rob {
    background: #5bc0de; /* Couleur pour Robinetterie */
}

div.ribbon-rob:after{
    border-right-color: #46b8da;
}

.ribbon-sou {
    background: #5b21b6; /* Couleur pour le Soudage */
}

div.ribbon-sou:after{
    border-right-color: #3f157f;
}

.ribbon-end {
    background: #23cea9; 
}

div.ribbon-end:after{
    border-right-color: #1e9c8f;
}

.ribbon-mentor {
    background: linear-gradient(70deg, #FFD700, #FFEC8B, #FFD700, #FFEC8B, #FFD700);
    background-size: 200%;
    animation: gradient 3s ease infinite;
    text-align: center;
    color: #262626;
    text-transform: uppercase;
    font-weight: 400;
    font-size: 1rem;
    letter-spacing: 1px;
}

div.ribbon-mentor:after{
    border-right-color: #FFD700;
}

@keyframes gradient {
    0% {
        background-position: 0 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0 50%;
    }
}

.no-mentor-card {
    background-color: #f8d7da; /* Light red/pink background */
    border-color: #f5c6cb;
}

.ribbon-no-mentor {
    background-color: #d9534f; /* Bootstrap danger color */
    color: white;
}

div.ribbon-no-mentor:after{
    border-right-color: #8f2421;
}


.card-icon i {
    font-size: 2rem;
    color: #d9534f; /* Match the ribbon color */
}

#btn-assign--mentor {
    background-color: #d9534f;
    border-color: #d9534f;
    color: #E8F1F8;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s, border-color 0.3s, transform 0.2s;
    text-decoration: none;
    display: inline-block;
    cursor: default;
}

#btn-assign--mentor:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(217, 83, 79, 0.5);
}


/*--------------------------------------------------------------
# Callouts
--------------------------------------------------------------*/
.callout {
    padding: 1rem;
    margin: 1rem 0;
    border-radius: .375rem; /* Rounded corners */
    border: 1px solid transparent;
    width: 100%;
}

/* Callout variations */
.callout-primary {
    background-color: #d1ecf1; /* Light blue background */
    border-color: #bee5eb; /* Light blue border */
    color: #0c5460; /* Darker blue text */
}

.callout-secondary {
    background-color: #e2e3e5; /* Light grey background */
    border-color: #ced4da; /* Light grey border */
    color: #383d41; /* Darker grey text */
}

.callout-success {
    background-color: #d4edda; /* Light green background */
    border-color: #c3e6cb; /* Light green border */
    color: #155724; /* Dark green text */
}

.callout-danger {
    background-color: #f8d7da; /* Light red background */
    border-color: #f5c6cb; /* Light red border */
    color: #721c24; /* Dark red text */
}

.callout-warning {
    background-color: #fff3cd; /* Light yellow background */
    border-color: #ffeeba; /* Light yellow border */
    color: #856404; /* Dark yellow text */
}

.callout-info {
    background-color: #d1ecf1; /* Light blue background */
    border-color: #bee5eb; /* Light blue border */
    color: #0c5460; /* Dark blue text */
}

/* Optional: Add icons for callouts (if desired) */
.callout .icon {
    font-size: 1.5rem;
    margin-right: .75rem;
}

/*--------------------------------------------------------------
# Sidebar Custom
--------------------------------------------------------------*/
/* Styles pour le contenu du menu */
.custom-collapse-content {
    display: none;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    opacity: 0;
    max-height: 0;
}

/*.custom-collapsed.active .custom-collapse-content {
    display: block;
    opacity: 1;
    max-height: 1000px; !* Ajuste si nécessaire *!
    transition: max-height 0.5s ease, opacity 0.5s ease;
}*/

/* Styles pour le contenu affiché */
.nav-link.active + .custom-collapse-content {
    opacity: 1;
    max-height: 1000px;
}

/*--------------------------------------------------------------
# Sidebar
--------------------------------------------------------------*/

.sidebar {
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 0;
    width: 300px;
    z-index: 996;
    transition: all 0.3s;
    padding: 20px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #aab7cf transparent;
    box-shadow: 0 0 20px rgba(1, 41, 112, 0.1);
    background-color: #fff;
}

@media (max-width: 1199px) {
    .sidebar {
        left: -300px;
    }
}

.sidebar::-webkit-scrollbar {
    width: 5px;
    height: 8px;
    background-color: #fff;
}

.sidebar::-webkit-scrollbar-thumb {
    background-color: #aab7cf;
}

@media (min-width: 1200px) {

    #main,
    #footer {
        margin-left: 300px;
    }
}

/* Sidebar Toggle Button */
.sidebar-toggle-btn {
    border: none;
    background: transparent;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle-btn:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Icône du toggle */
.sidebar-toggle-btn .toggle-sidebar-btn {
    font-size: 1.4rem;
    color: #3d5f9e;
    transition: transform 0.3s ease, color 0.2s ease;
}

/* Rotation en croix quand sidebar visible */
body:not(.toggle-sidebar) .sidebar-toggle-btn .toggle-sidebar-btn {
    transform: rotate(90deg);
}

/* Hover */
.sidebar-toggle-btn:hover .toggle-sidebar-btn {
    color: #2c4a7c;
}

@media (max-width: 1199px) {
    .toggle-sidebar .sidebar {
        left: 0;
    }
}

@media (min-width: 1200px) {

    .toggle-sidebar #main,
    .toggle-sidebar #footer {
        margin-left: 0;
    }

    .toggle-sidebar .sidebar {
        left: -300px;
    }
}

.sidebar-nav {
    padding: 0;
    margin: 0;
    list-style: none;
}

.sidebar-nav li {
    padding: 0;
    margin: 0;
    list-style: none;
}

.sidebar-nav .nav-item {
    margin-bottom: 5px;
}

.sidebar-nav .nav-heading {
    font-size: 11px;
    text-transform: uppercase;
    color: #899bbd;
    font-weight: 600;
    margin: 10px 0 5px 15px;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 400;
    color: #4154f1;
    transition: 0.3s;
    background: #f6f9ff;
    padding: 10px 15px;
    border-radius: 4px;
}

.sidebar-nav .nav-link i {
    font-size: 16px;
    margin-right: 10px;
    color: #4154f1;
}

.sidebar-nav .nav-link.custom-collapsed {
    color: #012970;
    background: #fff;
}

.sidebar-nav .nav-link.custom-collapsed i {
    color: #899bbd;
}

.sidebar-nav .nav-link:hover {
    color: #4154f1;
    background: #f6f9ff;
}

.sidebar-nav .nav-link:hover i {
    color: #4154f1;
}

.sidebar-nav .nav-link .bi-chevron-down {
    margin-right: 0;
    transition: transform 0.2s ease-in-out;
}

.sidebar-nav .nav-link:not(.custom-collapsed) .bi-chevron-down {
    transform: rotate(180deg);
}

.sidebar-nav .nav-content {
    padding: 5px 0 0 0;
    margin: 0;
    list-style: none;
}

.sidebar-nav .nav-content a {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: #012970;
    transition: 0.3s;
    padding: 10px 0 10px 40px;
}

.sidebar-nav .nav-content a i {
    font-size: 6px;
    margin-right: 8px;
    line-height: 0;
    border-radius: 50%;
}

.sidebar-nav .nav-content a:hover,
.sidebar-nav .nav-content a.active {
    color: #4154f1;
}

.sidebar-nav .nav-content a.active i {
    background-color: #4154f1;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    color: #4154f1;
    transition: 0.3s;
    background: #f6f9ff;
    padding: 10px 15px;
    border-radius: 4px;
}

.sidebar-nav .nav-link i.bi-chevron-down {
    margin-left: auto; /* Pour aligner le chevron à droite */
    transition: transform 0.2s ease-in-out;
}

.sidebar-nav .nav-link:not(.custom-collapsed) i.bi-chevron-down {
    transform: rotate(180deg); /* Pour tourner le chevron */
}

.sidebar-nav .nav-link.custom-collapsed i {
    color: #899bbd;
}

.sidebar-nav .nav-content {
    padding: 5px 0 0 0;
    margin: 0;
    list-style: none;
    /* Si tu veux un effet de transition lors du collapse/expand */
    transition: max-height 0.3s ease;
    overflow: hidden; /* Pour masquer le contenu lorsqu'il est fermé */
}

.sidebar-nav .nav-content.show {
    max-height: 1000px; /* Ajuste cette valeur selon le contenu */
}

/*----------------------------------------------
# Custom Aside
----------------------------------------------*/
aside.sidebar div {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Ajuste la valeur selon l'espacement désiré */
}

/*----------------------------------------------
# Header Section
----------------------------------------------*/

/* Style pour le header */
#section-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background-color: #f8f9fa; /* Couleur de fond légère */
    border-bottom: 1px solid #dee2e6; /* Bordure subtile en bas */
    /*box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);*/ /* Ombre légère */
    font-size: 16px;
    font-weight: bold;
    color: #333; /* Couleur du texte */
}

#section-header i {
    font-size: 20px;
    margin-right: 10px;
    color: #007bff; /* Couleur de l'icône (bleu primaire) */
    transition: color 0.3s ease;
}

#section-header span {
    font-size: 18px;
    color: #333;
}

/* Effet de survol sur l'icône */
#section-header i:hover {
    color: #0056b3; /* Couleur plus foncée au survol */
}

/*----------------------------------------------
# Custom Sidebar
----------------------------------------------*/

/* Style pour le titre */
.custom-title {
    font-size: 15px;
    font-weight: bold;
    text-transform: uppercase;
    color: #03346E;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

/* Soulignement progressif sous le titre */
.custom-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 0;
    background-color: #03346E;
    transition: width 0.4s ease;
}

/* Effet au survol du titre */
.custom-title:hover {
    color: #084298;
}

.custom-title:hover::after {
    width: 100%;
}

/* Lien principal personnalisé */
.custom-link {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    color: #0d6efd;
    text-decoration: none;
    padding: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.custom-link:hover {
    color: #084298;
}

.custom-link:hover::after {
    width: 100%;
}

/* Style des liens dans la liste déroulante avec un effet de survol animé */
.sidebar-nav .nav-link {
    font-size: 13px;
    color: #333;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.sidebar-nav .nav-link:hover {
    color: #0d6efd;
}

/* Effet de soulignement progressif au survol des liens */
.sidebar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #0d6efd;
    transition: width 0.5s ease-in-out;
}

.sidebar-nav .nav-link:hover::after {
    width: 90%;
}

.custom-link[aria-expanded="true"] .chevron-icon {
    transform: rotate(180deg); /* Rotation de 180 degrés */
    transition: transform 0.3s ease; /* Transition fluide */
}

/* Animation de l'icône "caret" à droite du lien */
.sidebar-nav .nav-link i {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

/* Survol de l'icône, elle se déplace légèrement vers la droite */
.sidebar-nav .nav-link:hover i {
    transform: translateX(.25em);
}

.without-link {
    margin-left: 5px;
}

/*----------------------------------------------
# Collapse Sidebar
----------------------------------------------*/
/* Style initial pour la collapsible */
.collapse {
    max-height: 0; /* Hauteur maximale initiale à 0 */
    opacity: 0; /* L'élément est invisible */
    overflow: hidden; /* Masquer le contenu qui dépasse */
    transition: max-height 0.5s ease, opacity 0.5s ease; /* Transition fluide pour la hauteur et l'opacité */
    visibility: hidden; /* Assurer que l'élément est caché */
}

/* Afficher le menu lorsqu'il a la classe 'show' */
.collapse.show {
    max-height: 500px; /* Ajustez cette valeur selon la hauteur maximale du contenu ou utilisez une valeur plus grande */
    opacity: 1; /* Rendre l'élément visible */
    visibility: visible; /* Assurer que l'élément est visible */
}


/*----------------------------------------------
# Dropdown
----------------------------------------------*/
.dropdown {
    position: relative; /* Pour que le menu soit positionné par rapport à ce conteneur */
}

.dropdown-menu {
    display: none; /* Cacher le menu par défaut */
    position: absolute;
    top: 100%; /* Positionner en dessous du bouton */
    right: 0; /* Aligner à droite */
    z-index: 1000; /* S'assurer qu'il soit au-dessus des autres éléments */
    min-width: 160px;
    padding: 5px 0;
    margin: 2rem 10px 0 0; /* Marge du menu */
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175);
}

/* Affiche le menu lorsqu'il a la classe 'show' */
.dropdown-menu.show {
    display: block;
}

/*----------------------------------------------
# Accordion (Theme Logbook
----------------------------------------------*/
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.card-toggle {
    background: none;
    border: none;
    font-size: 16px;
    font-weight: lighter;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    cursor: pointer;
    transition: color 0.3s ease;
}

.card-toggle:hover {
    color: #007bff;
}

.badge {
    margin-left: 10px;
    padding: 0.5em 0.75em;
}

.chevron-icon {
    transition: transform 0.3s ease;
}

.chevron-icon.rotate {
    transform: rotate(180deg);
}

.collapse {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    opacity: 0;
}

.collapse.show {
    max-height: 1000px; /* Ajustez en fonction du contenu */
    opacity: 1;
}

.card-body {
    padding: 20px;
    background-color: #fff;
}

.list-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1px 15px;
    border-bottom: 1px solid #e0e0e0;
}

/*----------------------------------------------
# Custom Accordion
----------------------------------------------*/
.modal-card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 900px;
    z-index: 1050;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 8px;
}

.modal-card-header {
    font-size: 18px;
    font-weight: bold;
}

.modal-card-body {
    margin-top: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

/*----------------------------------------------
# Custom Modal Header
----------------------------------------------*/
.custom-modal-header {
    background: linear-gradient(135deg, #007bff, #0056b3); /* Dégradé de couleur bleu pour un aspect moderne */
    color: #fff; /* Texte en blanc pour contraster avec le fond */
    display: flex; /* Utilisation de Flexbox pour aligner les éléments */
    align-items: center; /* Centre les éléments verticalement */
    justify-content: space-between; /* Espace entre le titre et le bouton de fermeture */
    padding: 1rem; /* Ajoute un peu de padding autour du contenu du header */
    border-bottom: 1px solid #dee2e6; /* Bordure pour délimiter le header */
}

.custom-modal-title {
    font-size: 1.5rem; /* Taille du titre */
    margin: 0; /* Supprime les marges autour du titre */
    display: flex; /* Utilisation de Flexbox pour centrer le titre */
    align-items: center; /* Centre le titre verticalement */
    justify-content: center; /* Centre le titre horizontalement */
    width: 100%; /* Prend toute la largeur disponible */
}

.custom-btn-close {
    background: rgba(255, 255, 255, 0.2); /* Fond légèrement transparent pour un effet moderne */
    border-radius: 50%; /* Forme ronde pour le bouton */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Ombre subtile pour un effet de profondeur */
    width: 1.5rem; /* Taille du bouton */
    height: 1.5rem; /* Taille du bouton */
    padding: 0; /* Évite les marges internes */
    display: flex; /* Utilise flexbox pour centrer le contenu */
    align-items: center; /* Centre verticalement le contenu */
    justify-content: center; /* Centre horizontalement le contenu */
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease; /* Animation douce pour les propriétés */
    position: relative; /* Position relative pour le positionnement absolu des enfants */
}

.custom-btn-close::before {
    content: "\00d7"; /* Utilise le caractère 'X' comme contenu du bouton */
    font-size: 1.5rem; /* Taille du 'X' */
    color: #f5f5f5; /* Couleur du 'X' pour un bon contraste */
    font-weight: 700; /* Rend le 'X' plus épais pour plus de visibilité */
    transition: color 0.3s ease, transform 0.3s ease; /* Animation douce pour la couleur et la transformation */
}

.custom-btn-close:hover {
    background: rgba(255, 255, 255, 0.3); /* Fond légèrement plus transparent au survol */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Ombre plus prononcée au survol */
}

.custom-btn-close:focus {
    outline: none; /* Supprime le contour au focus pour un design plus propre */
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.5); /* Ajoute une ombre bleue autour du bouton au focus pour l'accessibilité */
}

/*----------------------------------------------
# Custom Scrollable list of Modules
----------------------------------------------*/
.scrollable-modules {
    max-height: 300px; /* Définis une hauteur maximale, ajustable selon tes besoins */
    overflow-y: auto; /* Active le défilement vertical */
}

/*----------------------------------------------
# Custom Data Table Mentors
----------------------------------------------*/
.custom-table-container {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.theme-section {
    margin-bottom: 30px;
}

.theme-header {
    background: linear-gradient(45deg, #4a6fa5, #166088);
    border-radius: 10px;
    padding: 15px 20px;
    /*color: #ffffff;*/
    color: #3D5F9E;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.theme-header:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.theme-header h5 {
    margin: 0;
    font-weight: 700;
    font-size: 1.2rem;
}

.theme-header i {
    transition: transform 0.3s ease;
}

.theme-header[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.custom-table {
    border-collapse: separate;
    border-spacing: 0 10px;
    margin-top: 10px;
}

.custom-table thead th {
    border: none;
    background-color: #e9ecef;
    color: #495057;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 15px;
}

.custom-table tbody tr {
    background-color: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.custom-table tbody tr:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.custom-table tbody td {
    border: none;
    padding: 15px;
    vertical-align: middle;
}

.action-row td:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.action-row td:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.btn-group .btn {
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 0.85rem;
    margin-right: 5px;
    transition: all 0.3s ease;
}

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

.btn-outline-primary {
    color: #4a6fa5;
    border-color: #4a6fa5;
}

.btn-outline-primary:hover {
    background-color: #4a6fa5;
    color: #ffffff;
}

.btn-outline-danger {
    color: #dc3545;
    border-color: #dc3545;
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    color: #ffffff;
}

.btn-outline-success {
    color: #28a745;
    border-color: #28a745;
}

.btn-outline-success:hover {
    background-color: #28a745;
    color: #ffffff;
}

/* Carte propriétaire du carnet */
.owner-card {
    background: linear-gradient(135deg, #f6f9fc 0%, #e9eff5 100%);
    border: none;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.owner-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-title {
    color: #2c3e50;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0;
}

.owner-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #4a6fa5, #166088);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
}

.owner-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-group {
    display: flex;
    justify-content: space-between;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.info-item i {
    color: #4a6fa5;
    font-size: 1.2rem;
}

.info-item span {
    color: #34495e;
    font-weight: 500;
}

.owner-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 25px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    padding: 15px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #4a6fa5;
}

.stat-label {
    font-size: 0.9rem;
    color: #7f8c8d;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/*----------------------------------------------
# Custom Card for User if no Logbook
----------------------------------------------*/
.card-logbook {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    transition: all 0.3s ease;
}

.glitch-text {
    position: relative;
    color: #012970;
}
.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 #ff00c1;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}
.glitch-text::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

.dark-gradient-background {
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460, #1a1a2e);
    background-size: 400% 400%;
    animation: subtle-shift 15s ease infinite;
}

.floating-icon {
    position: absolute;
    color: rgba(255,255,255,0.6);
    animation: float 6s ease-in-out infinite;
}

.hologram-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(15, 52, 96, 0.6) 0%, transparent 70%);
    opacity: 0.7;
    filter: blur(10px);
    animation: hologram 5s infinite alternate;
}

.particle-system::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
}

@keyframes glitch-anim {
    0% { clip: rect(14px, 9999px, 76px, 0); }
    20% { clip: rect(38px, 9999px, 33px, 0); }
    40% { clip: rect(6px, 9999px, 98px, 0); }
    60% { clip: rect(74px, 9999px, 71px, 0); }
    80% { clip: rect(46px, 9999px, 40px, 0); }
    100% { clip: rect(66px, 9999px, 64px, 0); }
}

@keyframes subtle-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes hologram {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.9; }
}

/*----------------------------------------------
# Custom Avatar in table for list padawans for mentors (with progress)
----------------------------------------------*/
.avatar-wrapper {
    width: 60px;
    height: 60px;
    position: relative;
}

.avatar-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #f0f0f0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.avatar-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: conic-gradient(var(--color) var(--progress), transparent 0);
    transition: all 0.3s ease;
}

.avatar-initials {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    background: white;
    width: 80%;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    z-index: 2;
}

.avatar-circle:hover .avatar-progress {
    transform: scale(1.1);
}

.avatar-circle:hover .avatar-initials {
    color: var(--color);
}

/*----------------------------------------------
# Custom Pages presentation
----------------------------------------------*/
a {
    transition: color 0.3s ease-in-out;
}
a:hover {
    color: #a020f0;
}
.hero {
    background: linear-gradient(135deg, #4A90E2, #A2DFF7); /* Dégradé de bleu */
    color: #fff; /* Couleur du texte en blanc */
    padding: 50px 30px; /* Espacement intérieur */
    border-radius: 15px; /* Coins arrondis */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); /* Ombre portée */
    text-align: center; /* Centrage du texte */
}

.hero h1 {
    font-size: 3rem; /* Taille du titre */
    font-weight: bold; /* Gras */
    margin-bottom: 15px; /* Espacement en bas */
}

.hero p {
    font-size: 1.25rem; /* Taille du paragraphe */
    margin-bottom: 20px; /* Espacement en bas */
}

.hero a {
    background: rgba(255, 255, 255, 0.2); /* Couleur de fond légèrement blanche */
    color: #fff; /* Couleur du texte en blanc */
    padding: 12px 30px; /* Espacement intérieur */
    border-radius: 25px; /* Coins arrondis pour le bouton */
    text-decoration: none; /* Pas de soulignement */
    transition: background 0.3s; /* Transition douce pour l'effet de hover */
}

.hero a:hover {
    background: rgba(255, 255, 255, 0.5); /* Effet hover plus clair */
}

.title-guide-page {
    font-size: 2rem; /* Taille de la police */
    font-weight: bold; /* Gras pour le titre */
    color: #2c3e50; /* Couleur sombre pour le texte */
    position: relative; /* Pour le pseudo-élément */
    margin: 30px 0; /* Marge autour du titre */
    padding: 10px 0; /* Espacement interne */
    text-align: center; /* Centré horizontalement */
    letter-spacing: 1px; /* Espacement entre les lettres */
    text-transform: uppercase; /* Transforme le texte en majuscules */
}

.title-guide-page::before {
    content: ""; /* Contenu vide pour créer un pseudo-élément */
    position: absolute; /* Positionnement absolu */
    left: 50%; /* Centré horizontalement */
    bottom: 0; /* Aligné avec le bas du titre */
    width: 100%; /* Largeur de la ligne */
    height: 4px; /* Hauteur de la ligne */
    border-radius: 45%; /* Arrondie les bords et donne un effet */
    background: linear-gradient(90deg, #3498db, #9b59b6); /* Dégradé coloré */
    transform: translateX(-50%); /* Centrer la ligne */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Ombre portée pour un effet de profondeur */
    transition: transform 0.3s ease; /* Transition douce pour le mouvement */
}

.fl-wrapper {
    z-index: 100000 !important;
}
