* {
    margin: 0;
    padding: 0;
}

.header-section {
    /* background-color: steelblue; */
    height: 50px;
    position: absolute;
    top: 0px;
}

.footer-section {
    /* background-color: steelblue; */
    /* height: 50px;
    position: absolute; */
    bottom: 0px !important;
    border: 1px solid #dcdcdc;
    width: 83.5% !important;
    float: right !important;
    margin-top: 10px;
}

.timeline {
    display: flex;
    /* background-color:#eee; */
    flex-wrap: nowrap;
}
.timeline a {
    text-decoration: none;
    margin: 2px;
    color: #000;
    font-size: 18px;
}
.colonne {
    background: teal;
    width: auto;
    margin-right: 10px;
    position: relative;
    padding: 50px;
    border-radius: 15px;
    /* border-radius: 15px 50px 30px; */
}
.colonne:last-child {
    margin: 0;
}
.colonne > div {
    margin: 10px;
    height: 30px;
    background: #ddd;
    display: flex;

    align-items: center;
    justify-content: center;
    padding: 5px;
    border-radius: 5px;
}
.colonne > div:nth-child(2) {
    border-radius: 50%;
    height: 100px;
    width: 100px;
}
.choisir {
    background: #ddd;
    border-radius: 50%;
    height: 90px;
    width: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.colonne > div:nth-child(2):not(.last):after {
    content: "\2014\2014";
    color: red;
    left: 60px;
    position: absolute;
    z-index: 10;
}

.circle-container {
    position: relative;
    width: 24em;
    height: 24em;
    padding: 2.8em;
    /*2.8em = 2em*1.4 (2em = half the width of a link with img, 1.4 = sqrt(2))*/
    border: dashed 1px;
    border-radius: 50%;
    margin: 1.75em auto 0;
}
.circle-container a {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5em;
    height: 5em;
    margin: -2em;
}
.circle-container img {
    display: block;
    width: 100%;
}
.deg0 {
    transform: translate(12em);
    border: 2px solid grey;
    border-radius: 100px;
    background: grey;
    padding: 5px;
} /* 12em = half the width of the wrapper */
.deg45 {
    transform: rotate(45deg) translate(12em) rotate(-45deg);
    border: 2px solid grey;
    border-radius: 100px;
    background: grey;
    padding: 5px;
}
.deg135 {
    transform: rotate(135deg) translate(12em) rotate(-135deg);
    border: 2px solid grey;
    border-radius: 100px;
    background: grey;
    padding: 5px;
}
.deg180 {
    transform: translate(-12em);
    border: 2px solid grey;
    border-radius: 100px;
    background: grey;
    padding: 5px;
}
.deg225 {
    transform: rotate(225deg) translate(12em) rotate(-225deg);
    border: 2px solid grey;
    border-radius: 100px;
    background: grey;
    padding: 5px;
}
.deg315 {
    transform: rotate(315deg) translate(12em) rotate(-315deg);
    border: 2px solid grey;
    border-radius: 100px;
    background: grey;
    padding: 5px;
}
.deg270 {
    transform: rotate(270deg) translate(12em) rotate(-270deg);
    border: 2px solid grey;
    border-radius: 100px;
    background: grey;
    padding: 5px;
}
.deg100 {
    transform: rotate(100deg) translate(12em) rotate(-100deg);
    border: 2px solid grey;
    border-radius: 100px;
    background: grey;
    padding: 5px;
}
.deg150 {
    transform: rotate(140deg) translate(12em) rotate(-140deg);
    border: 2px solid grey;
    border-radius: 100px;
    background: grey;
    padding: 5px;
}

.circle-container a {
    text-decoration: none;
    color: #000;
}

.input_form {
    padding: "5px ";
    border: "1px solid #dcdcdc";
}

#formFile::before {
    content: "Change file";
    position: absolute;
    z-index: 2;
    display: block;
    background-color: #eee;
    width: 80px;
}

.drop-container {
    position: relative;
    display: flex;
    gap: 10px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 200px;
    padding: 20px;
    border-radius: 10px;
    border: 2px dashed #555;
    color: #444;
    cursor: pointer;
    transition:
        background 0.2s ease-in-out,
        border 0.2s ease-in-out;
}

.drop-container:hover {
    background: #eee;
    border-color: #111;
}

.drop-container:hover .drop-title {
    color: #222;
}

.drop-title {
    color: #444;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    transition: color 0.2s ease-in-out;
}

/* .data-label{
    box-shadow:0 0 0 1px #ebebeb inset, 0 0 0 2px rgba(255,255,255,0.15) inset, 0 8px 0 0 #adadad, 0 8px 0 1px rgba(0,0,0,0.4), 0 8px 8px 1px rgba(0,0,0,0.5);
    background-color:#fff;
  } */

legend.scheduler-border {
    width: inherit; /* Or auto */
    padding: 0 10px; /* To give a bit of padding on the left and right */
    border-bottom: 1px;
}

/* body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
} */

/* .content {
  flex: 1;
}

.footer {
  margin-top: auto;
  background: teal;
  padding: 1rem 0;
  text-align: center;
} */

html,
body {
    height: 100% !important; /* Le corps et la page occupent toujours toute la hauteur */
    margin: 0 !important; /* Éliminer les marges par défaut */
}

.min-vh-100 {
    min-height: 100vh !important; /* La page occupe toute la hauteur de la fenêtre */
}

.bg-teal {
    background-color: teal !important;
    margin-top: 50px !important;
    height: auto !important;
}

.footer {
    position: relative !important; /* Position normale pour éviter des chevauchements */
    width: 100% !important; /* Le footer prend toute la largeur */
    text-align: center !important;
}

.shortcut-card {
    border-radius: 16px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.shortcut-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.shortcut-card {
    width: 100%;
    margin: 0;
    border-radius: 20px;
}

.shortcut-card a:hover {
    text-decoration: none;
}

.shortcut-link {
    padding: 0 !important;
    background: transparent !important;
}

.shortcut-link:hover,
.shortcut-link:focus,
.shortcut-link:active {
    background: transparent !important;
}

.shortcut-card {
    width: 100%;
    border-radius: 18px;
}

@media (max-width: 576px) {
    .shortcut-card {
        text-align: center;
    }

    .shortcut-card .card-body {
        flex-direction: column;
    }

    .shortcut-card .icon {
        margin-bottom: 10px;
    }
}

/* Styles pour les onglets */
.custom-tabs {
    background: linear-gradient(135deg, #1a2632 0%, #0f1419 100%);
    border-radius: 12px 12px 0 0;
    border-bottom: none;
    padding: 0 8px;
    gap: 4px;
}

.custom-tabs .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-size: 14px;
    padding: 12px 20px;
    border-radius: 10px 10px 0 0;
    transition: all 0.3s ease;
    border: none;
    background: transparent;
    margin: 0;
}

.custom-tabs .nav-link:hover {
    color: white;
    background: rgba(32, 201, 151, 0.2);
    transform: translateY(-2px);
}

.custom-tabs .nav-link.active {
    color: white;
    background: linear-gradient(135deg, #20c997, #198764);
}

.custom-tabs .nav-link i {
    margin-right: 8px;
}

/* Styles pour les onglets de gestion des utilisateurs */
.user-tabs {
    gap: 8px;
    padding: 0 20px;
    background: linear-gradient(135deg, #1a2632 0%, #0f1419 100%);
    border-bottom: none;
}

.user-tabs .nav-link {
    border-radius: 12px 12px 0 0;
    padding: 12px 24px;
    font-weight: 600;
    color: white;
    background-color: transparent;
    border: none;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-tabs .nav-link:hover {
    color: teal;
    background-color: rgba(0, 128, 128, 0.05);
}

.user-tabs .nav-link.active {
    color: teal;
    background-color: white;
}

/* ========== SIDEBAR MODERNISÉ ========== */
.main-sidebar {
    --sidebar-bg: linear-gradient(145deg, #0a0a0a 0%, #111111 100%);
    --sidebar-hover: rgba(32, 201, 151, 0.12);
    --sidebar-active: linear-gradient(
        90deg,
        rgba(32, 201, 151, 0.2),
        transparent
    );
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-sidebar .sidebar {
    padding: 0 12px;
}

/* Logo & branding amélioré */
.user-panel {
    position: relative;
    padding: 1.5rem 0 !important;
    margin-bottom: 1rem !important;
    border-bottom: 1px solid rgba(32, 201, 151, 0.2) !important;
}

.user-panel::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 15%;
    width: 70%;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        #20c997,
        #198764,
        transparent
    );
    border-radius: 2px;
}

/* Liens de navigation */
.nav-sidebar .nav-link {
    padding: 0.7rem 1rem;
    margin-bottom: 0.3rem;
    border-radius: 12px;
    font-weight: 500;
    transition: all 0.25s ease;
    color: rgba(255, 255, 255, 0.75);
}

.nav-sidebar .nav-link:hover {
    background: var(--sidebar-hover);
    color: #20c997;
    transform: translateX(4px);
}

.nav-sidebar .nav-link.active {
    background: var(--sidebar-active);
    color: #20c997;
    border-left: 3px solid #20c997;
}

/* Icônes */
.nav-sidebar .nav-link i {
    width: 28px;
    text-align: center;
    font-size: 1.1rem;
    transition: transform 0.2s;
}

.nav-sidebar .nav-link:hover i {
    transform: scale(1.05);
}

/* Flèches des sous-menus */
.nav-sidebar .nav-link .right {
    transition: transform 0.3s ease;
}

.nav-sidebar .nav-item.menu-open .nav-link .right {
    transform: rotate(90deg);
}

/* Sous-menus (treeview) */
.nav-treeview {
    padding-left: 1.2rem;
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

.nav-treeview .nav-link {
    padding: 0.5rem 0.5rem 0.5rem 2.2rem;
    font-size: 0.85rem;
    border-radius: 10px;
}

.nav-treeview .nav-link i {
    font-size: 0.7rem;
    opacity: 0.8;
}

/* Animation d'ouverture des sous-menus */
.nav-treeview {
    display: none;
    animation: fadeSlideDown 0.25s ease-out;
}

.nav-item.menu-open .nav-treeview {
    display: block;
}

@keyframes fadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Séparateur */
.nav-header {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.35);
    margin: 1rem 0 0.5rem;
    padding-left: 0.5rem;
}

/* Scrollbar personnalisée (optionnel) */
.sidebar::-webkit-scrollbar {
    width: 5px;
}

.sidebar::-webkit-scrollbar-track {
    background: #1a1a1a;
}

.sidebar::-webkit-scrollbar-thumb {
    background: #20c997;
    border-radius: 10px;
}

/* ========== RESPONSIVE : SIDEBAR MOBILE ========== */
@media (max-width: 767.98px) {
    .main-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: none;
        z-index: 1050;
    }

    .main-sidebar.sidebar-open {
        transform: translateX(0);
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    }

    /* Overlay sombre quand sidebar ouvert */
    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 1040;
        backdrop-filter: blur(3px);
    }

    .sidebar-overlay.active {
        display: block;
    }

    /* Ajustement du contenu principal */
    .content-wrapper,
    .main-footer {
        margin-left: 0 !important;
    }

    /* Bouton toggle personnalisé (optionnel) */
    .nav-link[data-widget="pushmenu"] {
        position: relative;
        z-index: 1060;
    }
}

.modern-input {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 10px 14px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}
.modern-input:focus {
    border-color: #20c997;
    box-shadow: 0 0 0 3px rgba(32, 201, 151, 0.1);
}
.modern-select {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 10px 14px;
    font-size: 0.9rem;
    background-color: white;
    transition: all 0.2s ease;
}
.modern-select:focus {
    border-color: #20c997;
    box-shadow: 0 0 0 3px rgba(32, 201, 151, 0.1);
}
.label-modern {
    font-size: 0.8rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 6px;
    display: block;
}
.section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}
.gradient-btn {
    background: linear-gradient(135deg, #20c997, #198764);
    border: none;
    border-radius: 12px;
    transition: all 0.2s ease;
}
.gradient-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(32, 201, 151, 0.3);
}
