/* =========== Google Fonts ============ */
@import url("https://fonts.googleapis.com/css2?family=Ubuntu:wght@300;400;500;700&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Bungee&family=Exo+2:ital,wght@0,100..900;1,100..900&display=swap');

/* =========== Palette Globale ============ */
:root {
    /* Nouvelle palette (012a4a, 013a63, 01497c, 2a6f97, 468faf, 89c2d9, a9d6e5) */
    --black: #000100;
    --muted: #A1A6B4;
    --white: #F8F8F8;
    --gray: rgba(161,166,180,0.15);

    /* Nuances de bleu de marque */
    --blue: #012a4a;          /* Fond sombre (sidebar, headers) */
    --blue-800: #013a63;      /* Topbar, navbar */
    --blue-700: #01497c;      /* Hover foncé */
    --blue-600: #2a6f97;      /* Primary (actions) */
    --blue-500: #468faf;      /* Accent */
    --blue-300: #89c2d9;      /* Surfaces */
    --blue-200: #a9d6e5;      /* Fond léger */

    /* Alias utilisés dans le code */
    --accent: var(--blue-500);
    --surface: var(--blue-300);
    --bg-light: var(--blue-200);
    --bg-main: var(--blue-200);
    --border-light: var(--blue-300);
    --primary: var(--blue-600);

    /* Spécifique topbar */
    --topbar-bg: #ffffff; /* Topbar clair pour nouveau thème */
    --topbar-text: #2b2f33;
    --app-bg: #f3f4f8; /* Fond global doux */
}

/* =========== Sidebar Black (ancien thème sombre) ============ */
.sidebar-black {
    background: var(--blue) !important;
    color: var(--white) !important;
    transition: all 0.3s;
    min-height: 100vh;
    max-height: 100vh;
    overflow-y: auto;
    z-index: 1030;
    padding: 1rem;
    border-right: none;
    border-radius: 0;
    box-shadow: none;
}
.sidebar-black .brand { padding: 0.25rem 0.25rem; opacity: 0.95; color: var(--white); gap: 8px; }
.sidebar-black .brand ion-icon { width: 24px; height: 24px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; background: transparent; color: var(--white); font-size: 1.1rem; }
.sidebar-black .logocrm { font-weight: 600; color: var(--white); }
.sidebar-black .nav { gap: 2px; }
.sidebar-black .nav li { padding: 2px 0; }
.sidebar-black .nav-link {
    color: rgba(255,255,255,0.85) !important;
    border-radius: 8px;
    padding: 0.4rem 0.6rem;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color .15s ease, color .15s ease;
}
.sidebar-black .nav-link:hover { background-color: rgba(148, 197, 204, 0.15); color: var(--white) !important; }
.sidebar-black .nav-link.active { background-color: rgba(148, 197, 204, 0.15) !important; color: var(--white) !important; font-weight: 600; }
.sidebar-black .nav-link.active::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); border-radius: 0 3px 3px 0; }
.sidebar-black .collapse .nav-link { padding-left: 1.25rem; opacity: 0.95; }
.sidebar-black .collapse .nav-link { color: rgba(255,255,255,0.9) !important; visibility: visible !important; }
.sidebar-black .collapse .nav { margin: 0 !important; padding-left: 0 !important; }
.sidebar-black .nav-link ion-icon { font-size: 1.05rem; color: inherit; }
.sidebar-black hr { display: none !important; }
/* Safety: ensure Bootstrap collapse reveals content inside the sidebar */
.sidebar-black .collapse.show { display: block !important; height: auto !important; }
.sidebar-black .collapse > .nav { display: block; }
/* Fallback: assurer la visibilité quelle que soit l’animation */
.sidebar-black .collapse, .sidebar-black .collapse * { visibility: visible !important; }
/* Garantir visibilité pendant l’animation et après ouverture */
.sidebar-black .collapsing { height: auto !important; overflow: visible !important; transition: none !important; }
.sidebar-profile { background: rgba(255,255,255,0.08); border: none; border-radius: 10px; padding: 12px; }
.sidebar-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.sidebar-username { font-weight: 600; font-size: 0.95rem; color: var(--white); }
.sidebar-useremail { font-size: 0.8rem; color: rgba(255,255,255,0.75); }
.sidebar-userrole { font-size: 0.8rem; color: rgba(255,255,255,0.75); }

/* Responsive Sidebar */
@media (max-width: 991.98px) {
    /* Laisser Bootstrap gérer la largeur de l'offcanvas via la variable */
    .sidebar-black { min-height: 100vh; max-height: 100vh; }
    .offcanvas.sidebar-black { --bs-offcanvas-width: 300px; }
}

/* Sidebar fixe (desktop) : collée en haut, hauteur viewport */
aside.sidebar-black {
    position: sticky;
    top: 0;
    height: 100vh;
}

/* Scrollbar fin pour le sidebar */
#mainSidebar { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.3) transparent; }
#mainSidebar::-webkit-scrollbar { width: 6px; }
#mainSidebar::-webkit-scrollbar-track { background: transparent; }
#mainSidebar::-webkit-scrollbar-thumb { background-color: rgba(255,255,255,.35); border-radius: 3px; }
#mainSidebar::-webkit-scrollbar-thumb:hover { background-color: rgba(255,255,255,.5); }

/* Paginations globales: suppression des bordures et background */
.pagination .page-link { border: none !important; background: transparent !important; box-shadow: none !important; }
.pagination .page-link { padding: 4px 8px !important; }
.pagination .page-item.active .page-link { background: transparent !important; color: var(--primary); font-weight: 600; }
.pagination .page-link:hover { background: transparent !important; color: var(--primary); }

/* Sign Out sticky */
.sidebar-logout { position: relative; bottom: auto; background: inherit; padding-top: .5rem; }
.sidebar-logout .nav-link { color: rgba(255,255,255,0.9) !important; }

/* =============== Globals ============== */
* {
    font-family: "Exo 2", "Ubuntu", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =============== Card Styles ============== */
.card, .settings-card {
    background-color: var(--white) !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    border: none !important;
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 12px;
    margin-bottom: 20px;
}

/* Aplatir les cartes qui ne contiennent qu’un tableau (design simple, pas de card extérieure) */
.card > .card-body.p-0 > .table-responsive,
.card > .card-body.p-0 > table {
    margin: 0;
}
.card.table-shell, .table-shell.card {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}
.card.table-shell .card-body,
.table-shell.card .card-body { padding: 0 !important; }

/* Aplatir totalement le conteneur sélectionné: pas de fond ni cadre */
.table-shell,
.table-shell .table-responsive,
.table-shell .dataTables_wrapper {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

/* Tableau sans halo gris dans ce contexte */
.table-shell table.dataTable,
.table-shell .table.dataTable {
    box-shadow: none !important;
    border-radius: 0 !important;
}

.card:hover {
    box-shadow: none !important;
    transform: none !important;
}

.card-header {
    background-color: var(--white) !important;
    border-bottom: 1px solid rgba(161,166,180,0.25) !important;
    padding: 10px 12px !important;
}

.card-body {
    padding: 12px !important;
}

.card-title {
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 15px;
}

/* =============== Custom DataTables Style ============== */
.dataTables_wrapper .dataTables_length, 
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 10px;
}

.dataTables_wrapper .dataTables_length select {
    border-radius: 4px;
    padding: 3px 6px;
    border: 1px solid rgba(161,166,180,0.4);
}

.dataTables_wrapper .dataTables_filter input {
    border-radius: 4px;
    padding: 4px 8px;
    border: 1px solid #e0e0e0;
    background-color: var(--white);
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: var(--blue);
    outline: none;
}

table.dataTable {
    border-collapse: collapse !important;
    border-spacing: 0;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px !important;
}

table.dataTable thead th {
    background-color: var(--blue);
    color: #fff;
    font-weight: 600;
    padding: 10px 8px;
    border: none;
    letter-spacing: 0.2px;
}

table.dataTable tbody tr {
    background-color: var(--white);
}

table.dataTable tbody tr:hover {
    background-color: #f5f9fc;
    transition: background-color 0.15s ease-in-out;
}

table.dataTable tbody td {
    padding: 8px 10px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

table.dataTable tbody tr:last-child td {
    border-bottom: none;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 6px;
    padding: 4px 8px;
    margin: 0 1px;
    border: none !important;
    background: #f0f0f0 !important;
    color: var(--black1) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--accent) !important;
    color: var(--black1) !important;
}

.dataTables_wrapper .dataTables_info {
    padding-top: 8px;
    color: var(--black2);
}

/* ====================== Widgets Cards (CRM Dash style) ====================== */
.widget-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f7f9fc 100%);
    padding: 16px 18px;
    border: 1px solid rgba(161,166,180,0.25);
    box-shadow: 0 10px 25px rgba(22,26,33,0.06);
}
.widget-card .widget-label {
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 2px;
}
.widget-card .widget-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2b2f33;
    line-height: 1.2;
}
.widget-card .widget-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eef2f7;
    color: #2b2f33;
}

/* ====================== Landing: Bloc Avantages ====================== */
.advantages-section { background: #ffffff; }
.advantages-section .section-title { color: #2b2f33; }
.adv-card-featured .adv-image-featured { width: 100%; height: 280px; object-fit: cover; }
.adv-item { padding: 10px 12px; border: 1px solid rgba(161,166,180,0.2); border-radius: 12px; background: #fff; }
.adv-thumb { width: 120px; height: 80px; object-fit: cover; }
.adv-item-title { font-weight: 600; color: #2b2f33; }
.adv-item-text { color: #6c757d; }

@media (max-width: 991.98px) {
  .adv-card-featured .adv-image-featured { height: 220px; }
  .adv-thumb { width: 100px; height: 70px; }
}
.widget-card .widget-icon i { font-size: 1.25rem; }
.widget-card:hover { transform: none !important; }

/* ====================== Liens doux ====================== */
.link-soft {
    color: var(--blue-600);
    text-decoration: none;
    border-bottom: 1px dashed rgba(42,111,151,0.35);
}
.link-soft:hover,
.link-soft:focus {
    color: var(--blue-700);
    text-decoration: none;
    border-bottom-color: rgba(1,73,124,0.6);
}

/* Neutraliser hover des tables Bootstrap génériques */
.table.table-hover tbody tr:hover {
    background-color: transparent !important;
}

/* DataTables: élargir légèrement le select de longueur */
.dataTables_length select.form-select,
#customers-table_length select.form-select {
    width: 120px;
    min-width: 120px;
}

/* Style pour les icônes d'action */
.d-flex.gap-2.justify-content-center a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 3px;
}

.d-flex.gap-2.justify-content-center a:hover {
    background-color: #f0f0f0;
}

.d-flex.gap-2.justify-content-center a.text-info:hover {
    color: #0dcaf0 !important;
}

 .d-flex.gap-2.justify-content-center a.text-primary:hover {
     color: #2bb7a9 !important; /* aligner hover sur vert primaire */
 }

.d-flex.gap-2.justify-content-center a.text-danger:hover {
    color: #dc3545 !important;
}

.logocrm {
    font-family: "Bungee", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 32px;
}

:root {
    /* Palette Thème basée sur la nouvelle charte bleu */
    --blue: #012a4a;            /* Entêtes, sidebar (foncé) */
    --white: #F8F8F8;           /* Fond clair global */
    --gray: #A1A6B4;            /* Texte secondaire/muted */
    --black1: #012a4a;          /* Texte principal (bleu très foncé) */
    --black2: #468faf;          /* Texte secondaire (bleu moyen) */
    --bg-light: #a9d6e5;        /* Surfaces légères */
    --bg-main: #a9d6e5;         /* Fond de page */
    --border-light: #89c2d9;    /* Bordures légères */
    --accent: #468faf;          /* Accent interactif */
    --primary: #2a6f97;         /* Couleur primaire (hover/cta) */
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    background-color: var(--bg-main);
}

/* Overrides globaux pour harmoniser Bootstrap avec la palette */
.bg-dark { background-color: var(--blue) !important; }
.text-bg-dark { background-color: var(--blue) !important; color: var(--white) !important; }
.navbar-dark, .offcanvas.sidebar-bootstrap { background-color: var(--blue) !important; }
.text-white { color: var(--white) !important; }

/* Navigation: hover & active cohérents dans les containers sombres */
.sidebar-bootstrap .nav-link:hover,
.bg-dark .nav-link:hover,
.text-bg-dark .nav-link:hover {
    background-color: rgba(148, 197, 204, 0.15);
    color: var(--white);
}
/* États par défaut pour les conteneurs sombres */
.sidebar-bootstrap .nav-link.active,
.bg-dark .nav-link.active,
.text-bg-dark .nav-link.active { 
  background-color: rgba(148, 197, 204, 0.15) !important; 
}

/* Liens du menu (thème sombre) */
.sidebar-black .nav-link { 
  padding: 10px 12px; 
  border-radius: 10px; 
  color: rgba(255,255,255,0.85); 
  font-size: 0.95rem; 
  font-weight: 400; 
}
.sidebar-black .nav-link:hover { 
  background: rgba(148, 197, 204, 0.15); 
  color: var(--white); 
}
.sidebar-black .nav-link ion-icon { 
  font-size: 1.25rem; 
  color: inherit; 
}

/* Alléger la graisse des liens actifs du sidebar */
.sidebar-black .nav-link.active { font-weight: 400 !important; }

.container {
    position: relative;
    width: 100%;
}

/* =============== rsnavigation ================ */
.rsnavigation {
    position: fixed;
    width: 300px;
    height: 100%;
    background: var(--blue);
    border-left: 10px solid var(--blue);
    transition: 0.5s;
    overflow: hidden;
    z-index: 1000;
}

.rsnavigation.active {
    width: 80px;
}

.rsnavigation ul {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 0px;
}

.rsnavigation ul li {
    position: relative;
    width: 100%;
    list-style: none;
    border-top-left-radius: 30px;
    border-bottom-left-radius: 30px;
}

.rsnavigation ul li:hover,
.rsnavigation ul li.hovered {
    background-color: var(--white);
}

.rsnavigation ul li:nth-child(1) {
    margin-bottom: 40px;
    pointer-events: none;
}

.rsnavigation ul li a {
    position: relative;
    display: block;
    width: 100%;
    display: flex;
    text-decoration: none;
    color: var(--white);
}

.rsnavigation ul li:hover a,
.rsnavigation ul li.hovered a {
    color: var(--blue);
}

.rsnavigation ul li a .icon {
    position: relative;
    display: flex;
    line-height: 75px;
    align-items: center;
    padding-left: 15px;
}

.rsnavigation ul li a .icon ion-icon {
    font-size: 1.75rem;
}

.rsnavigation.active .title {
    display: none;
}

.rsnavigation.active a {
    min-height: 45px;
}

.rsnavigation ul li a .title {
    position: relative;
    display: block;
    padding: 0 10px;
    height: 45px;
    line-height: 45px;
    text-align: start;
    white-space: nowrap;
}

/* --------- curve outside ---------- */
.rsnavigation ul li:hover a::before,
.rsnavigation ul li.hovered a::before {
    content: "";
    position: absolute;
    right: 0;
    top: -50px;
    width: 50px;
    height: 50px;
    background-color: transparent;
    border-radius: 50%;
    box-shadow: 35px 35px 0 10px var(--white);
    pointer-events: none;
}

.rsnavigation ul li:hover a::after,
.rsnavigation ul li.hovered a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -50px;
    width: 50px;
    height: 50px;
    background-color: transparent;
    border-radius: 50%;
    box-shadow: 35px -35px 0 10px var(--white);
    pointer-events: none;
}

/* ===================== Main ===================== */
.main {
    position: absolute;
    width: calc(100% - 300px);
    left: 300px;
    min-height: 100vh;
    background: var(--bg-main);
    transition: 0.5s;
    padding: 20px;
}

/* ===================== App Frame (Reusable Card) ===================== */
.app-frame {
    background: linear-gradient(135deg, #f8f9fa 0%, #eef3f7 100%);
    border: 1px solid #e6e9ed;
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}
.app-frame:hover { box-shadow: 0 2px 6px rgba(0,0,0,0.08); }
.app-frame-primary { background: linear-gradient(135deg, #e8f4f8 0%, #d1ecf1 100%); }
.app-frame-success { background: linear-gradient(135deg, #e8f6ea 0%, #d4edda 100%); }
.app-frame-warning { background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%); }
.app-frame-info { background: linear-gradient(135deg, #e8f4fb 0%, #d6eefe 100%); }
.app-frame-danger { background: linear-gradient(135deg, #fff5f5 0%, #fde8e8 100%); border-color: #f5c2c7; }
.bg-white.app-frame { background: linear-gradient(135deg, #ffffff 0%, #f7fbff 100%); }

/* Accent chips for icons inside cards */
.frame-accent { display: inline-flex; align-items: center; justify-content: center; padding: 10px; border-radius: 8px; }
.frame-accent-sky { background-color: #87ceeb; }
.frame-accent-warning { background-color: #ffc107; }
.frame-accent-success { background-color: #28a745; }
.frame-accent-info { background-color: #17a2b8; }
.frame-accent-danger { background-color: #dc3545; }
.frame-accent-sky i { color: #2c5aa0; }
.frame-accent-warning i { color: #856404; }
.frame-accent-success i { color: #155724; }
.frame-accent-info i { color: #0c5460; }
.frame-accent-danger i { color: #842029; }

/* Strong text accents for numbers/titles inside cards */
.text-sky-strong { color: #2c5aa0; }
.text-warning-strong { color: #856404; }
.text-success-strong { color: #155724; }
.text-info-strong { color: #0c5460; }
.text-danger-strong { color: #842029; }

.main.active {
    width: calc(100% - 80px);
    left: 80px;
}

.topbar {
    width: 100%;
    height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 .75rem;
    background: var(--topbar-bg);
    color: var(--topbar-text);
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 1029;
    /* Ombre discrète mais plus visible en bas du topbar */
    box-shadow: 0 3px 8px rgba(0,0,0,0.12)!important;
    overflow: visible;
}

.toggle {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    cursor: pointer;
}

.search {
    position: relative;
    margin: 0 10px;
    flex: 1 1 auto;
    min-width: 0; /* allow flex to shrink properly */
}

.search label {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.search label input {
    width: 100%;
    height: 40px;
    border-radius: 20px;
    padding: 5px 20px 5px 40px;
    font-size: 16px;
    outline: none;
    border: 1px solid rgba(161,166,180,0.3);
    background: #f1f4f8;
    color: #2b2f33;
}

.search label ion-icon {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: #596072;
}

/* Assurer que le bouton de soumission (loupe) est centré verticalement */
.search label button.btn {
    position: absolute;
    top: 50%;
    left: 8px;
    transform: translateY(-50%);
}

.user {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
}

.user img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ======================= Cards ====================== */
.cardBox {
    position: relative;
    width: 100%;
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 30px;
}

.cardBox .card {
    position: relative;
    background: var(--white);
    padding: 16px;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    box-shadow: 0 7px 25px rgba(0, 0, 0, 0.08);
}

.cardBox .card .numbers {
    position: relative;
    font-weight: 500;
    font-size: 2.5rem;
    color: var(--blue);
}

.cardBox .card .cardName {
    color: var(--black2);
    font-size: 1.1rem;
    margin-top: 5px;
}

.cardBox .card .iconBx {
    font-size: 3.5rem;
    color: var(--black2);
}

.cardBox .card:hover {
    background: var(--blue);
}

.cardBox .card:hover .numbers,
.cardBox .card:hover .cardName,
.cardBox .card:hover .iconBx {
    color: var(--white);
}

/* ================== Order Details List ============== */
.details {
    position: relative;
    width: 100%;
    padding: 12px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-gap: 30px;
    /* margin-top: 10px; */
}

.details .recentOrders {
    position: relative;
    display: grid;
    min-height: 500px;
    background: var(--white);
    padding: 12px;
    box-shadow: 0 7px 25px rgba(0, 0, 0, 0.08);
    border-radius: 20px;
}

.details .cardHeader {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.cardHeader h2 {
    font-weight: 600;
    color: var(--blue);
}

.cardHeader .btn {
    position: relative;
    padding: 5px 10px;
    background: var(--blue);
    text-decoration: none;
    color: var(--white);
    border-radius: 6px;
}

.details table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.details table thead td {
    font-weight: 600;
}

.details .recentOrders table tr {
    color: var(--black1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.details .recentOrders table tr:last-child {
    border-bottom: none;
}

.details .recentOrders table tbody tr:hover {
    background: var(--blue);
    color: var(--white);
}

.details .recentOrders table tr td {
    padding: 6px;
}

.details .recentOrders table tr td:last-child {
    text-align: end;
}

.details .recentOrders table tr td:nth-child(2) {
    text-align: end;
}

.details .recentOrders table tr td:nth-child(3) {
    text-align: center;
}

.status.delivered {
    padding: 2px 4px;
    background: #8de02c;
    color: var(--white);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.status.pending {
    padding: 2px 4px;
    background: #e9b10a;
    color: var(--white);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.status.return {
    padding: 2px 4px;
    background: #f00;
    color: var(--white);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.status.inProgress {
    padding: 2px 4px;
    background: #1795ce;
    color: var(--white);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.recentCustomers {
    position: relative;
    display: grid;
    min-height: 500px;
    padding: 12px;
    background: var(--white);
    box-shadow: 0 7px 25px rgba(0, 0, 0, 0.08);
    border-radius: 20px;
}

.recentCustomers .imgBx {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50px;
    overflow: hidden;
}

.recentCustomers .imgBx img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recentCustomers table tr td {
    padding: 12px 10px;
}

.recentCustomers table tr td h4 {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2rem;
}

.recentCustomers table tr td h4 span {
    font-size: 14px;
    color: var(--black2);
}

.recentCustomers table tr:hover {
    background: var(--blue);
    color: var(--white);
}

.recentCustomers table tr:hover td h4 span {
    color: var(--white);
}

/* ====================== Responsive Design ========================== */
@media (max-width: 991px) {
    .rsnavigation {
        left: -300px;
    }

    .rsnavigation.active {
        width: 300px;
        left: 0;
    }

    .main {
        width: 100%;
        left: 0;
    }

    .main.active {
        left: 300px;
    }

    .cardBox {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .details {
        grid-template-columns: 1fr;
    }

    .recentOrders {
        overflow-x: auto;
    }

    .status.inProgress {
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .cardBox {
        grid-template-columns: repeat(1, 1fr);
    }

    .cardHeader h2 {
        font-size: 20px;
    }

    .user {
        min-width: 40px;
    }

    .rsnavigation {
        width: 100%;
        left: -100%;
        z-index: 1000;
    }

    .rsnavigation.active {
        width: 100%;
        left: 0;
    }

    .toggle {
        z-index: 10001;
    }

    .main.active .toggle {
        color: #fff;
        position: fixed;
        right: 0;
        left: initial;
    }
}

/* ====================== Topbar Dropdowns ====================== */
.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Notification Dropdown */
.notification-dropdown {
    position: relative;
}

.notification-icon {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    color: #6c757d;
    transition: 0.3s;
}

.notification-icon:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #2b2f33;
}

/* Icônes topbar sur thème clair */
.topbar .notification-icon { color: #596072; }
.topbar .notification-icon:hover { background: rgba(0,0,0,0.05); color: #2b2f33; }

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4757;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.notification-content {
    position: absolute;
    top: 50px;
    right: 0;
    width: 350px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.notification-dropdown.open .notification-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notification-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h3 {
    font-size: 1.1rem;
    color: var(--black1);
    margin: 0;
}

.notification-count {
    background: var(--blue);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.notification-list {
    max-height: none;
    overflow: visible;
}

.notification-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid var(--gray);
    text-decoration: none;
    color: var(--black1);
    transition: 0.3s;
}

.notification-item:hover {
    background: var(--gray);
}

.notification-item .notification-icon {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    font-size: 1.2rem;
}

.notification-icon.success {
    background: #8de02c;
    color: white;
}

.notification-icon.warning {
    background: #e9b10a;
    color: white;
}

.notification-icon.danger {
    background: #f00;
    color: white;
}

.notification-text p {
    margin: 0;
    font-weight: 500;
    font-size: 0.9rem;
}

.notification-text span {
    font-size: 0.8rem;
    color: var(--black2);
}

.notification-footer {
    padding: 15px 20px;
    text-align: center;
    border-top: 1px solid var(--gray);
}

.notification-footer a {
    color: var(--blue);
    text-decoration: none;
    font-weight: 500;
}

/* User Dropdown */
.user-dropdown {
    position: relative;
}

.user-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px 10px;
    border-radius: 25px;
    cursor: pointer;
    transition: 0.3s;
    color: #2b2f33;
}

.user-trigger:hover { background: rgba(0,0,0,0.05); }

.user-trigger img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name { font-weight: 500; color: #2b2f33; font-size: 0.9rem; }

.user-trigger ion-icon { font-size: 1rem; color: #596072; transition: 0.3s; }

.user-dropdown.open .user-trigger ion-icon {
    transform: rotate(180deg);
}

.user-menu {
    position: absolute;
    top: 50px;
    right: 0;
    width: 200px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-dropdown.open .user-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Tables: supprimer le scroll horizontal et remettre du padding interne */
.table { margin-bottom: 0 !important; }
.table td, .table th { padding: 6px 8px !important; }
.table-responsive { overflow-x: hidden !important; }
.dataTables_wrapper, table.dataTable { width: 100% !important; }
.dataTables_wrapper .row { margin: 0 !important; }
.dataTables_wrapper .row > [class^="col-"] { padding: 0 !important; }

/* Topbar responsive */
@media (max-width: 1200px) { .search { width: 320px; } }
@media (max-width: 992px)  { .search { width: 260px; } }
@media (max-width: 768px)  { .search { display: none; } }

/* Language Dropdown - même style que user dropdown */
.language-dropdown {
  position: relative;
  display: inline-block;
}

.language-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--white);
  border: 1px solid var(--blue-800);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  color: var(--blue-800);
}

.language-trigger:hover {
  background: #e9ecef;
  border-color: #adb5bd;
}

 .language-dropdown.open .language-trigger {
   background: #e9ecef;
   border-color: #2bb7a9; /* supprimer bleu Bootstrap */
 }

/* CTA buttons sur la landing: hauteur alignée avec le dropdown langue */
.cta-btn {
  padding: 8px 12px; /* même padding que .language-trigger */
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.25;
}

.language-menu {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 80px;
  width: max-content;
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.language-dropdown.open .language-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  color: #495057;
  text-decoration: none;
  border-bottom: 1px solid #f8f9fa;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.language-menu-item:last-child {
  border-bottom: none;
}

 .language-menu-item:hover {
     background: #f8f9fa;
     color: #2bb7a9; /* hover liens menu -> vert primaire */
 }

.flag-icon {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
}

/* Ensure dropdown menu stays above the topbar and is clickable */
.topbar .dropdown-menu {
    z-index: 1031;
}

/* Mobile: éviter le scroll horizontal global */
@media (max-width: 576px) {
  html, body { overflow-x: hidden; }
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    text-decoration: none;
    color: var(--black1);
    transition: 0.3s;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.user-menu-item:hover {
    background: var(--gray);
    color: var(--blue);
}

.user-menu-item ion-icon {
    font-size: 1.2rem;
    width: 20px;
}

.user-menu-item.logout {
    color: #ff4757;
}

.user-menu-item.logout:hover {
    background: #ff4757;
    color: white;
}

.user-menu-divider {
    height: 1px;
    background: var(--gray);
    margin: 5px 0;
}

/* Responsive Design for Dropdowns */
@media (max-width: 768px) {
    .notification-content {
        right: -100px;
        width: 300px;
    }

    .user-name {
        display: none;
    }

    .user-trigger {
        padding: 5px;
    }
}

@media (max-width: 480px) {
    .notification-content {
        right: -150px;
        width: 280px;
    }

    .topbar-right {
        gap: 10px;
    }
}

/* ====================== Settings Page ====================== */
.settings-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    padding: 20px;
    min-height: calc(100vh - 120px);
    background: var(--app-bg);
}

.settings-sidebar {
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 20px 0;
    position: sticky;
    top: 100px;
}

.settings-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid var(--gray);
    margin-bottom: 10px;
}

.settings-header h3 {
    color: var(--blue);
    font-size: 1.3rem;
    font-weight: 600;
}

.settings-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.settings-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--black1);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.settings-nav-item:hover {
    background: var(--gray);
    color: var(--blue);
}

.settings-nav-item.active {
    background: var(--blue);
    color: var(--white);
    border-left-color: var(--blue);
}

.nav-icon {
    font-size: 1.2rem;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-text {
    font-weight: 500;
}

.settings-content {
    background: transparent; /* Supprime le cadre (fond + ombre) */
    border-radius: 0;
    box-shadow: none;
    padding: 16px; /* Espaces réduits */
}

/* En-tête de section: retirer la bordure grise et resserrer */
.section-header {
    padding: 0 0 8px;
    margin-bottom: 8px;
    border-bottom: none;
}

/* Cartes de paramètres: resserrer l’intérieur et enlever toute ombre éventuelle */
.settings-card {
    box-shadow: none !important;
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 14px;
}

/* Groupes de champ: marges verticales plus compactes */
.settings-card .form-group { margin-bottom: 10px; }
.settings-card .row { gap: 12px !important; }

/* ===== Secondary Sidebar (Dark, uses app palette) ===== */
.settings-sidebar.secondary-sidebar {
    background: var(--blue);
    color: var(--white);
    box-shadow: none;
}
.secondary-sidebar .settings-header {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.secondary-sidebar .settings-header h3 {
    color: var(--white);
}
.secondary-sidebar .settings-nav-item {
    color: rgba(255,255,255,0.85);
    border-left: 3px solid transparent;
    border-radius: 10px;
    margin: 4px 10px;
}
.secondary-sidebar .settings-nav-item:hover {
    background: rgba(255,255,255,0.07);
    color: #fff;
}
.secondary-sidebar .settings-nav-item.active {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-left-color: var(--accent);
}
.secondary-sidebar .nav-icon { color: rgba(255,255,255,0.9); }
.secondary-sidebar .nav-text { color: rgba(255,255,255,0.95); }

/* ====================== Dashboard V2 ====================== */
.dashboard-wrapper { background: var(--app-bg); padding: 16px; }
.hero-banner { background: linear-gradient(135deg,#7B5CF5,#A27BFF); color: #fff; border-radius: 20px; padding: 24px; box-shadow: 0 10px 25px rgba(123,92,245,0.25); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.hero-banner .hero-content h3 { font-weight: 700; margin: 0 0 6px; }
.hero-banner .hero-actions .btn { border-radius: 20px; font-weight: 600; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.chip { background: #fff; border: 1px solid rgba(161,166,180,0.25); border-radius: 16px; padding: 6px 12px; font-weight: 500; color: #596072; display: inline-flex; align-items: center; gap: 8px; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.grid-main { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; }
.mini-card { background: #fff; border-radius: 16px; box-shadow: 0 6px 18px rgba(0,0,0,0.06); overflow: hidden; }
.mini-card .thumb { height: 140px; background-size: cover; background-position: center; }
.mini-card .body { padding: 12px; }
.panel { background: #fff; border-radius: 16px; box-shadow: 0 6px 18px rgba(0,0,0,0.06); padding: 16px; }
.stat-list { display: grid; grid-template-columns: 1fr; gap: 12px; }
.mentor-item { display: flex; align-items: center; justify-content: space-between; }
.mentor-item .info { display: flex; align-items: center; gap: 10px; }
.mentor-item img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }

@media (max-width: 992px){ .grid-main { grid-template-columns: 1fr; } }
@media (max-width: 768px){ .hero-banner { flex-direction: column; align-items: flex-start; } }

.settings-section {
    max-width: 100%;
}

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

.section-header h2 {
    color: var(--blue);
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.section-header p {
    color: var(--black2);
    font-size: 1rem;
}

.settings-card {
    background: var(--white);
    border: none; /* retire la bordure grise */
    border-radius: 10px;
    padding: 14px; /* compacter */
    margin-bottom: 14px;
}

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

.card-title {
    color: var(--black1);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 500;
    color: var(--black1);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 1px solid var(--black2);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(42, 33, 133, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.checkbox-group label {
    margin: 0;
    font-weight: normal;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 10px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: var(--accent);
    color: var(--black);
}

.btn-primary:hover {
    background: #83B5BC;
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--gray);
    color: var(--black);
}

.btn-secondary:hover {
    background: #e0e0e0;
}

.btn-icon {
    background: none;
    border: none;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    color: var(--black2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon:hover {
    background: var(--gray);
    color: var(--accent);
}

.table-container {
    overflow-x: auto;
}

.settings-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.settings-table th {
    background: var(--surface);
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: var(--black);
    border-bottom: 1px solid rgba(161,166,180,0.4);
}

.settings-table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--gray);
}

.settings-table tr:hover {
    background: rgba(180,210,231,0.4);
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.status.active {
    background: #8de02c;
    color: white;
}

.status.inactive {
    background: #f00;
    color: white;
}

.page-title {
    color: var(--blue);
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

/* Responsive Settings */
@media (max-width: 991px) {
    .settings-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .settings-sidebar {
        position: static;
    }

    .settings-nav {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
    }

    .settings-nav-item {
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent;
    }

    .settings-nav-item.active {
        border-left: none;
        border-bottom-color: var(--blue);
    }
}

@media (max-width: 768px) {
    .settings-content {
        padding: 20px;
    }

    .card-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}

/* ====================== Alerts ====================== */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Compatibilité avec alert-danger (Bootstrap) */
.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert ul {
    margin: 0;
    padding-left: 20px;
}

.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}

/* ====================== System Info ====================== */
.system-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray);
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 500;
    color: var(--black1);
}

.info-value {
    color: var(--black2);
    font-weight: 600;
}

/* ====================== Checkbox Group Improvement ====================== */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

.checkbox-group label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
}

/* ====================== Form Improvements ====================== */
.form-group {
    position: relative;
}

.form-group input:invalid,
.form-group select:invalid {
    border-color: #dc3545;
}

.form-group input:valid,
.form-group select:valid {
    border-color: var(--black2) !important; /* désactive le vert */
    box-shadow: none !important;
}

/* Responsive pour les informations système */
@media (max-width: 768px) {
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .info-value {
        font-size: 0.9rem;
    }
}

/* Améliorations Bootstrap pour Livewire */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
    border-bottom: 1px solid #e9ecef;
}

.table> :not(caption)>*>* {
    padding: 0.75rem 0.5rem;
    border-bottom-color: #f8f9fa;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.04);
}

.btn-group .btn {
    border-radius: 0.375rem;
    margin: 0 2px;
}

.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

.modal-content {
    border: none;
    border-radius: 0.75rem;
}

.modal-header {
    border-radius: 0.75rem 0.75rem 0 0;
}

.form-control,
.form-select {
    border: 1px solid var(--black2) !important; /* bordure style settings */
    background-color: #ffffff !important;       /* fond blanc demandé */
    border-radius: 8px;                         /* cohérent avec settings */
    box-shadow: none;                           /* pas d’ombre par défaut */
    transition: all 0.15s ease-in-out;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--blue) !important;
    box-shadow: 0 0 0 0.20rem rgba(1, 58, 99, 0.12) !important; /* halo doux */
    background-color: #ffffff !important;
}

.form-control-lg {
    padding: 0.75rem 1rem;
}

/* Badges améliorés */
.badge.bg-light {
    background-color: #f8f9fa !important;
    color: #6c757d !important;
}

/* Animation pour les modals */
.modal.fade.show {
    backdrop-filter: blur(2px);
}

/* Responsive */
@media (max-width: 768px) {
    .table-responsive {
        font-size: 0.875rem;
    }

    .btn-group .btn {
        padding: 0.25rem 0.5rem;
    }

    .modal-dialog {
        margin: 1rem;
    }
}

/* ====================== Pagination Bootstrap Thème ====================== */
.pagination .page-link {
    color: var(--blue);
}

.pagination .page-link:hover {
    color: var(--accent);
}

.pagination .page-item.active .page-link {
    background-color: var(--blue);
    border-color: var(--blue);
}

/* ====================== Overrides Thème Bootstrap ====================== */
.btn-primary {
    background-color: #2bb7a9 !important; /* Vert login */
    border-color: #2bb7a9 !important;
    color: #fff !important;
}
.btn-link { color: var(--primary) !important; }
a { color: var(--primary); text-decoration-color: var(--primary); }
a:hover, a:focus { color: var(--primary); text-decoration-color: var(--primary); }
a.text-primary, a.text-primary:hover, a.text-primary:focus { color: #2bb7a9 !important; }

/* ====================== Messages Tabs (Gmail-like) ====================== */
.messages-tabs {
    border-bottom: 1px solid var(--border-light);
}
.messages-tabs .nav-link {
    color: var(--black1);
    background-color: transparent;
    border: 1px solid transparent;
    border-top-left-radius: .5rem;
    border-top-right-radius: .5rem;
    margin-right: .75rem;
    padding: .5rem 1rem;
}
.messages-tabs .nav-link:hover {
    color: var(--accent);
    background-color: transparent;
    border-color: transparent;
}
.messages-tabs .nav-link.active {
    color: var(--blue);
    background-color: var(--white);
    border-color: var(--border-light) var(--border-light) var(--white);
}
.btn-primary:hover, .btn-primary:focus {
    background-color: #25a395 !important;
    border-color: #25a395 !important;
    color: #fff !important;
}
.btn-outline-primary {
    color: #2bb7a9 !important;
    border-color: #2bb7a9 !important;
}
.btn-outline-primary:hover {
    background-color: #2bb7a9 !important;
    border-color: #2bb7a9 !important;
    color: #fff !important;
}
.text-primary { color: var(--accent) !important; }
.bg-light { background-color: var(--white) !important; }
.badge.bg-primary { background-color: var(--accent) !important; color: var(--black1) !important; }
.table thead { background-color: var(--primary); }

.pagination .page-item .page-link {
    border-color: #e9ecef;
}

/* ====================== View Project: Gantt Frame ====================== */
#gantt_chart {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 8px; /* légère respiration autour du canvas */
}
/* Forcer la police du Gantt */
#gantt_chart text, #gantt_chart .google-visualization-tooltip, #gantt_chart svg text {
  font-family: 'Ubuntu', system-ui, -apple-system, Segoe UI, Roboto, sans-serif !important;
  fill: #2b2f33; /* couleur du texte dans le SVG */
}

/* ====================== View Project: Tabs ====================== */
.nav.nav-tabs { border-bottom: none; gap: .25rem; }
.nav.nav-tabs .nav-link {
  color: #2b2f33;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: .5rem .9rem;
  margin-right: .35rem;
}
.nav.nav-tabs .nav-link:hover {
  color: #2bb7a9;
  background: #f8f9fa;
  border-color: var(--border-light);
}
.nav.nav-tabs .nav-link.active {
  color: #2b2f33;
  background: var(--white);
  border-color: var(--border-light);
  box-shadow: 0 2px 4px rgba(0,0,0,0.04);
}

/* ====================== Global Overrides (No Shadow / Hover) ====================== */
.card, .settings-card, .cardBox .card, .details .recentOrders, .recentCustomers, .notification-content, .user-menu, .settings-sidebar, .settings-content, .mini-card, .panel, table.dataTable {
    box-shadow: none !important;
}

.card:hover, .cardBox .card:hover {
    transform: none !important;
    background-color: var(--white) !important;
}

.cardBox .card:hover .numbers,
.cardBox .card:hover .cardName,
.cardBox .card:hover .iconBx {
    color: var(--black1) !important;
}

/* Désactiver le hover des tables (Bootstrap + DataTables) */
.table-hover > tbody > tr:hover,
.dataTable > tbody > tr:hover {
    background-color: transparent !important;
    box-shadow: none !important;
}

.table-hover > tbody > tr:hover > *,
.dataTable > tbody > tr:hover > * {
    background-color: transparent !important;
}
/* Boutons verts uniquement pour les variantes primary */
/* Les autres variantes conservent leur style d'origine */

/* ====================== Stats Cards (Users) ====================== */
.stat-card {
  border: 2px solid #e5e7eb;
  background-color: #ffffff;
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.stat-card i {
  font-size: 1.05rem;
}
.stat-card .fw-semibold {
  font-size: 1.05rem;
}

/* Variants by metric */
.stat-card.stat-total {
  border-color: #0d6efd; /* Bootstrap primary */
  background-color: rgba(13,110,253,0.06);
}
.stat-card.stat-admin {
  border-color: #198754; /* Bootstrap success */
  background-color: rgba(25,135,84,0.06);
}
.stat-card.stat-user {
  border-color: #6c757d; /* Bootstrap secondary */
  background-color: rgba(108,117,125,0.06);
}
.stat-card.stat-verified {
  border-color: #0dcaf0; /* Bootstrap info */
  background-color: rgba(13,202,240,0.06);
}
/* Additional variants for invoices and other pages */
.stat-card.stat-unpaid {
  border-color: #ffc107; /* Bootstrap warning */
  background-color: rgba(255,193,7,0.06);
}
.stat-card.stat-paid {
  border-color: #198754; /* Bootstrap success */
  background-color: rgba(25,135,84,0.06);
}
.stat-card.stat-draft {
  border-color: #6c757d; /* Bootstrap secondary */
  background-color: rgba(108,117,125,0.06);
}
/* Declined/Danger variant for proposals or other pages */
.stat-card.stat-declined {
  border-color: #dc3545; /* Bootstrap danger */
  background-color: rgba(220,53,69,0.06);
}
/* Landing hero dark background and transparent navbar */
.landing-hero {
  background: radial-gradient(1000px 500px at 15% 60%, rgba(0, 255, 170, 0.08), transparent 60%),
              radial-gradient(800px 400px at 85% 35%, rgba(0, 180, 255, 0.08), transparent 60%),
              linear-gradient(180deg, #0d0f12 0%, #0b0c0f 100%);
  color: #fff;
}
.navbar.bg-transparent { background-color: transparent !important; }
.bg-brand { background-color: var(--blue) !important; }
/* Overrides globaux pour dropdown langue: transparent + bordure verte bouton + texte noir */
.language-dropdown .language-trigger { background-color: transparent; color: #000; border-color: #2bb7a9; }
.language-dropdown .language-menu { background-color: white; color: #000; border: 1px solid #2bb7a9; box-shadow: none; }
.language-dropdown .language-menu .language-menu-item { color: #000; }
.language-dropdown .language-menu .language-menu-item:hover { background-color: rgba(0,0,0,0.06); color: #000; }
/* Landing header with wallpaper background */
.hero-header {
  background-image: url('/landing/wallpaper.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* Ensure text legibility on dark wallpaper: outline + shadow */
.hero-header h1 {
  color: #ffffff !important;
  text-shadow:
   -1px -1px 0 rgb(0 0 0 / 15%), 1px -1px 0 rgba(0, 0, 0, 15%), -1px 1px 0 rgba(0, 0, 0, 15%), 1px 1px 0 rgba(0, 0, 0, 15%), 0 2px 6px rgba(0, 0, 0, 15%)
}
.hero-header p {
  color: #ffffff !important;
  text-shadow:
    -1px -1px 0 rgb(0 0 0 / 15%), 1px -1px 0 rgba(0, 0, 0, 15%), -1px 1px 0 rgba(0, 0, 0, 15%), 1px 1px 0 rgba(0, 0, 0, 15%), 0 2px 6px rgba(0, 0, 0, 15%)
}

/* ===== Landing - Features Section ===== */
.features-section {
  background: linear-gradient(180deg, rgba(250,250,250,0.7) 0%, rgba(169,214,229,0.25) 100%);
}
.features-section .section-title { font-size: 2rem; color: #2b2f33; }
.features-section .section-subtitle { color: #666; }

.feature-card {
  background: #fff;
  border: 1px solid rgba(161,166,180,0.25);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}
.feature-card .feature-icon {
  width: 46px; height: 46px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-light); color: var(--primary); font-size: 1.35rem; margin-bottom: .5rem;
}
.feature-card .feature-title { font-weight: 600; color: #2b2f33; margin: .25rem 0 .5rem; }
.feature-card .feature-text { color: #4c4f58; }
.feature-card:hover { border-color: var(--border-light); box-shadow: 0 8px 26px rgba(0,0,0,0.08); }

/* ===== Landing - Multilingual Section ===== */
.multilang-section {
  background: #0d0f12;
  color: #fff;
}
.multilang-title { color: #ffffff; font-size: 2rem; }
.multilang-text { color: #d1d5db; max-width: 680px; line-height: 1.6; }
.multilang-cta { background: #ffffff; color: #0d0f12; border-color: #ffffff; }
.multilang-cta:hover { background: #f1f5f9; color: #0d0f12; }

.multilang-image-wrapper { position: relative; display: inline-block; }
.multilang-image { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.multilang-image-wrapper::before { display: none; }

@media (max-width: 991.98px) {
  .multilang-text { max-width: none; }
  .multilang-image-wrapper::before { display: none; }
}

/* =============== Landing: Benefits Section ============== */
.benefits-section { background: #fff; }
.benefits-title { color: var(--blue-800); }
.benefits-text { max-width: 720px; line-height: 1.6; }
.benefits-divider { width: 52px; height: 4px; background: var(--primary); border-radius: 2px; }

.benefits-image-wrapper { position: relative; display: inline-block; }
.benefits-image { width: 100%; height: auto; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.benefits-image-wrapper::before {
    content: "";
    position: absolute;
    left: -18px;
    top: 18px;
    width: 92%;
    height: 92%;
    border: 6px solid var(--blue-600);
    border-radius: 8px;
    opacity: .25;
}

@media (max-width: 991.98px) {
    .benefits-text { max-width: none; }
    .benefits-image-wrapper::before { display: none; }
}

/* =============== Landing: CTA Demo Section ============== */
.cta-demo-section {
  background: #f3eee7; /* beige léger, proche du visuel fourni */
  padding-top: 6rem; /* augmenter le padding vertical */
  padding-bottom: 6rem;
}
.cta-title { color: #2b2f33; font-size: 2rem; }
.cta-subtitle { color: #4c4f58; }
.cta-demo-section .btn { border-radius: 10px; }

/* =============== Landing: Simple Footer ============== */
.landing-footer { background: #1f2428; color: #cbd5e1; }
.landing-footer .footer-logo { color: #ffffff; }
.landing-footer .footer-links a { color: #cbd5e1; }
.landing-footer .footer-links a:hover { color: #ffffff; }
.landing-footer .divider { color: #6b7280; }
.landing-footer .footer-made { color: #9ca3af; }
