body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #fcfcfc;
    color: #000;
    scroll-behavior: smooth;
}

/* Styles des liens de navigation */
.sidebar-link {
    transition: all 0.3s ease;
    border-radius: 12px;
}

.sidebar-link:hover {
    background: #f4f4f5;
    color: #000;
}

.sidebar-link.active {
    background: #000;
    color: #fff;
}

/* Adaptabilité Desktop vs Mobile */
@media (min-width: 1024px) {
    .main-content {
        margin-left: 18rem;
    }
}

@media (max-width: 1023px) {
    .main-content {
        margin-left: 0;
        padding-top: 2rem;
    }

    #mainSidebar {
        box-shadow: 20px 0 50px rgba(0, 0, 0, 0.05);
    }
}

/* Custom Scrollbar */
.sidebar-scroll::-webkit-scrollbar {
    width: 3px;
}

.sidebar-scroll::-webkit-scrollbar-thumb {
    background: #eee;
    border-radius: 10px;
}

/* Design du Switch Digitalyx */
.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e4e4e7;
    /* Gris clair (Désactivé) */
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

input:checked+.slider {
    background-color: #2563eb;
    /* Bleu Digitalyx (Activé) */
}

input:checked+.slider:before {
    transform: translateX(22px);
}

.btn-upgrade {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
}

/* Container de la pagination */
.pagination-digitalyx {
    display: flex !important;
    gap: 8px !important;
    padding: 0;
    margin: 0;
    list-style: none;
}

/* Style de chaque élément de liste */
.pagination-digitalyx li {
    display: inline-block;
}

/* Style des liens (boutons) */
.pagination-digitalyx li a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 48px !important;
    /* w-12 */
    height: 48px !important;
    /* h-12 */
    border-radius: 12px !important;
    /* rounded-xl */
    border: 1px solid #f3f4f6 !important;
    /* border-gray-100 */
    background: white;

    /* Typographie Digitalyx */
    color: #000 !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    /* font-black */
    font-style: italic !important;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

/* Taille des flèches (Previous/Next) */
.pagination-digitalyx li a span {
    font-size: 18px !important;
    /* Agrandit les flèches < et > */
    line-height: 1;
    font-style: normal !important;
    /* Évite l'italique sur les flèches */
}

/* État Actif */
.pagination-digitalyx li.active a {
    background-color: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
    shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* État Désactivé */
.pagination-digitalyx li.disabled a {
    opacity: 0.3;
    cursor: not-allowed;
    background: #f9fafb;
}

/* Hover */
.pagination-digitalyx li a:hover:not(.disabled) {
    border-color: #000 !important;
    background-color: #f9fafb;
}

/* Container global pour assurer l'alignement de la ligne */
.pagination-digitalyx {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

/* Ciblage spécifique des boutons Précédent et Suivant */
.pagination-digitalyx li:first-child a,
.pagination-digitalyx li:last-child a {
    font-size: 24px !important;
    /* Augmente massivement la taille des flèches */
    font-weight: 300 !important;
    /* Rend les flèches plus fines et élégantes */
    font-style: normal !important;
    /* Retire l'italique pour éviter la déformation */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 0 !important;
    /* Supprime les décalages de ligne naturels */
    padding-bottom: 4px !important;
    /* Ajustement optique pour centrer verticalement */
}

/* Correction du texte des chiffres pour qu'ils restent petits et gras */
.pagination-digitalyx li:not(:first-child):not(:last-child) a {
    font-size: 11px !important;
    font-weight: 900 !important;
    font-style: italic !important;
}

/* État au survol pour les flèches */
.pagination-digitalyx li:first-child a:hover,
.pagination-digitalyx li:last-child a:hover {
    background-color: #f3f4f6 !important;
    color: #2563eb !important;
    /* Rappel du bleu Digitalyx au survol */
}

/* Personnalisation Flatpickr pour matcher ton UI */
.flatpickr-calendar {
    border-radius: 1.5rem !important;
    /* Arrondis comme tes boutons */
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1) !important;
    font-family: inherit;
}

.flatpickr-day.selected {
    background: #2563eb !important;
    /* Ton bleu-600 */
    border-color: #2563eb !important;
}

.phone-screen {
    display: flex;
    /* Active le mode flex */
    flex-direction: column;
    /* Aligne le contenu de haut en bas */
    align-items: stretch;
    /* Force les éléments internes à prendre toute la largeur */
}

/* On cible le premier élément injecté par Angular (souvent le wrapper du mail) */
.phone-screen>* {
    width: 100% !important;
    flex-grow: 1;
    /* Force le mail à remplir toute la hauteur disponible */
}

.scrollbar-hide>* {
    max-width: 100%;
}

/* Supprime les bordures et fonds blancs par défaut de Bootstrap */
.tailwind-modal-window .modal-content {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Permet à UI Bootstrap de fonctionner sans le CSS complet de Bootstrap */
.modal {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    width: 100%;
    height: 100%;
    overflow: hidden;
    outline: 0;
    background-color: rgba(0, 0, 0, 0.5); /* Le backdrop */
}

.modal-dialog {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    pointer-events: none;
}

.custom-tailwind-modal .modal-content {
    border: none;
    background: transparent;
    pointer-events: auto;
}

/* Forcer le centrage vertical et horizontal de la modal */
.modal {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: rgba(0, 0, 0, 0.6); /* Le backdrop sombre */
    backdrop-filter: blur(4px); /* Effet de flou moderne */
}

.modal-dialog {
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 600px; /* Largeur max de votre formulaire */
}

/* Supprimer les styles par défaut de Bootstrap qui cassent le design */
.modal-content {
    border: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
}



/* Optionnel : Ajoute un flou sur l'arrière-plan quand le popup est ouvert */
.custom-backdrop {
    background-color: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(8px);
    /* Effet moderne Digitalyx */
}

/* Supprime le style Bootstrap pour laisser Tailwind gérer le design */
.tailwind-modal-wrapper .modal-content {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.tailwind-modal-wrapper .modal-dialog {
    display: flex;
    align-items: center;
    min-height: calc(100% - 3.5rem);
}

.modal-blur-bg {
    /* On utilise backdrop-filter pour flouter le dashboard derrière */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background-color: rgba(255, 255, 255, 0.4);
    /* Fond blanc semi-transparent */
}

.sticky-banner {
    position: sticky;
    top: 0;
    z-index: 50;
    /* Pour passer au-dessus du contenu mais sous les modals */
    width: 100%;
}

/* Styling du menu de suggestion Typeahead */
.custom-typeahead .dropdown-menu {
    border: none !important;
    border-radius: 1.5rem !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
    padding: 0.5rem !important;
    margin-top: 10px !important;
    background: white !important;
    width: 100% !important;
    border: 2px solid #f1f5f9 !important;
}

.custom-typeahead .dropdown-menu li {
    padding: 20px 10px !important;
    border-bottom: 1px solid #ececec;
    font-size:  16px !important;
}

.custom-typeahead .dropdown-menu li a {
    padding: 20px 7px !important;
    border-radius: 1rem !important;
    font-weight: 800 !important;
    text-transform: uppercases !important;
    font-style: italic !important;
    font-size: 14px !important;
    color: #1e293b !important;
    transition: all 0.2s ease !important;
    border-botstom: 1px solid #919192;
}

.custom-typeahead .dropdown-menu li.active a, 
.custom-typeahead .dropdown-menu li a:hover {
    basckground-color: #2563eb !important; /* Bleu Chapflow */
    color: #2563eb !important;
    transsform: translateX(5px);
}

/* Force la suppression de tout style parasite sur le marquee */
marquee::before, 
marquee::after {
    display: none !important;
    content: none !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

/* Si tu utilises une div à la place du marquee, fais la même chose */
.marquee-container::before, 
.marquee-container::after {
    display: none !important;
}

/* On neutralise l'héritage du Preflight de Tailwind */
marquee,
marquee::before,
marquee::after {
    border-style: none !important;
    border-width: 0 !important;
    box-shadow: none !important;
}


/* Le conteneur global prend tout l'écran mais laisse passer les clics */
.modal {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: rgba(0, 0, 0, 0.15); 
    backdrop-filter: blur(4px);
    pointer-events: auto; /* Indispensable pour le backdrop */
}

/* Le dialog ne doit pas bloquer les clics sur les côtés */
.modal-dialog {
    margin: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 672px; /* Correspond à max-w-2xl */
    pointer-events: none; 
}

/* On réactive les clics uniquement sur le contenu de la modal */
.modal-content {
    pointer-events: auto !important;
    border: none !important;
    background-color: transparent !important;
    box-shadow: none !important;
    width: 100%;
}

/* Style pour intégrer les onglets UI-Bootstrap avec Tailwind */
.custom-tailwind-tabs .nav-tabs {
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    background: #fff;
    padding: 0 2rem;
}
.custom-tailwind-tabs .nav-tabs > li {
    margin-bottom: -1px;
}
.custom-tailwind-tabs .nav-tabs > li > a {
    border: none !important;
    color: #9ca3af;
    position: relative;
    background: transparent !important;
}
.custom-tailwind-tabs .nav-tabs > li.active > a {
    color: #ef4444 !important; /* text-red-500 */
}
.custom-tailwind-tabs .nav-tabs > li.active > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1.5rem;
    right: 1.5rem;
    height: 3px;
    background: #ef4444;
    border-radius: 10px 10px 0 0;
}
.custom-scrollbar::-webkit-scrollbar { width: 4px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 10px; }

/* Cache tous les contenus d'onglets par défaut */
.tab-content > .tab-pane {
    display: none !important;
}

/* Affiche uniquement le contenu de l'onglet actif */
.tab-content > .active {
    display: block !important;
}

/* Optionnel : Assure que les onglets sont bien alignés en ligne */
.nav-tabs {
    display: flex !important;
    flex-direction: row !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}