/* assets/style.css */

/* --- Style Général --- */
body {
    background-color: #0E1117;
    color: #FAFAFA;
}

/* --- Barre latérale fixe --- */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 18rem;
    padding: 2rem 1rem;
    background-color: #1a1c24;
    z-index: 100;
    transition: margin-left 0.3s ease-in-out;
    overflow-y: auto;
}
/* Dans votre fichier assets/style.css */

/* Style pour les info-bulles de Dash DataTable */
/* Dans votre fichier assets/style.css */

/* Style amélioré et plus robuste pour les info-bulles */
.dash-table-tooltip {
    /* On annule les styles par défaut */

    
    /* On applique nos propres styles */
    background-color: #343a40 !important; /* Fond sombre */
    color: white !important;             /* Texte blanc */
    padding: 8px 12px !important;
    border-radius: 5px !important;
    font-size: 0.9rem !important;

    /* On ajoute une ombre portée propre */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4) !important; 
}
/* --- Zone de contenu principale --- */
.content {
    margin-left: 18rem;
    padding: 2rem 1rem;
    transition: margin-left 0.3s ease-in-out;
}

/* --- Styles pour l'état "Rétracté" --- */
.sidebar.collapsed {
    margin-left: -18rem;
}
.content.collapsed {
    margin-left: 0;
}
/* Dans votre fichier assets/style.css */

/* Style pour les onglets */
.nav-tabs .nav-link {
    color: #495057; /* Un gris foncé pour les onglets inactifs */
}

.nav-tabs .nav-link.active {
    color: #0d6efd; /* La couleur primaire de Bootstrap pour l'onglet actif */
    font-weight: bold;
}
/* --- Style pour le Menu de Navigation --- */
.sidebar h5 {
    color: #888;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.sidebar .nav-link {
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}

.sidebar .nav-link.active {
    background-color: #f63366 !important;
    color: #FFFFFF !important;
}

.sidebar .nav-link:hover {
    background-color: #2c2f38;
}

/* --- Correction pour les Menus Déroulants (Dropdowns) --- */
.Select-control {
    background-color: #262730 !important;
    border: 1px solid #4A4A4A !important;
}
.Select-value-label, .Select-placeholder {
    color: #FAFAFA !important;
}
.Select-arrow {
    border-color: #FAFAFA transparent transparent !important;
}

.Select-menu-outer {
    background-color: #262730 !important;
    border: 1px solid #4A4A4A !important;
    min-width: 400px !important; /* Assure une largeur minimale pour le conteneur */
}

/* MODIFICATION : Cible les options spécifiquement dans le modal pour plus de priorité */
#add-edit-offer-modal .Select-option {
    background-color: #262730;
    color: #FAFAFA;
    white-space: nowrap !important;      /* Empêche le retour à la ligne du texte */
    overflow: hidden !important;         /* Cache le texte qui dépasse */
    text-overflow: ellipsis !important;  /* Ajoute "..." au texte qui dépasse */
}

#add-edit-offer-modal .Select-option.is-focused {
    background-color: #f63366 !important;
    color: #FFFFFF !important;
}
