/* Harmonisation globale des menus - Desktop et Mobile */

/* Variables CSS pour la cohérence */
:root {
  --menu-primary-color: #00b140;
  --menu-secondary-color: #00a038;
  --menu-accent-color: #00b140;
  --menu-text-color: #181a20;
  --menu-text-light: #6c757d;
  --menu-bg-white: #ffffff;
  --menu-bg-light: #f8f9fa;
  --menu-border-color: #e9ecef;
  --menu-hover-bg: rgba(0, 177, 64, 0.07);
  --menu-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --menu-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.15);
  --menu-border-radius: 8px;
  --menu-transition: all 0.3s ease;
}

/* Harmonisation des polices pour tous les menus */
.ace-responsive-menu,
.mobilie_header_nav,
.mobile_header_nav,
.dashboard_navigationbar,
.rightside-hidden-bar {
  font-family: var(--title-font-family), -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
}

/* Menu desktop principal */
.ace-responsive-menu > li > a {
  font-weight: 600;
  color: var(--menu-text-color);
  transition: var(--menu-transition);
}

.ace-responsive-menu > li > a:hover {
  color: var(--menu-accent-color);
}

/* Sous-menus desktop */
.ace-responsive-menu .sub-menu {
  background-color: var(--menu-bg-white);
  border: 1px solid var(--menu-border-color);
  border-radius: var(--menu-border-radius);
  box-shadow: var(--menu-shadow-hover);
}

.ace-responsive-menu .sub-menu li a {
  color: var(--menu-text-color);
  font-weight: 500;
  transition: var(--menu-transition);
}

.ace-responsive-menu .sub-menu li:hover {
  background-color: var(--menu-hover-bg);
}

.ace-responsive-menu .sub-menu li:hover a {
  color: var(--menu-accent-color);
}

/* Menu mobile principal - Harmonisation avec desktop */
.mobilie_header_nav .my-custom-class .ps-menu-root ul li {
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--menu-border-color);
}

.mobilie_header_nav .my-custom-class .ps-menu-root > ul > li > .ps-menu-button {
  color: var(--menu-text-color);
  font-weight: 600;
  padding: 16px 30px;
  transition: var(--menu-transition);
}

.mobilie_header_nav
  .my-custom-class
  .ps-menu-root
  > ul
  > li
  > .ps-menu-button:hover {
  background-color: var(--menu-hover-bg);
  color: var(--menu-accent-color);
}

/* Sous-menus mobile */
.mobilie_header_nav .my-custom-class .ps-submenu-content {
  background-color: var(--menu-bg-light);
}

.mobilie_header_nav .my-custom-class .ps-submenu-content .ps-menu-button {
  color: var(--menu-text-light);
  font-weight: 500;
  padding: 12px 30px 12px 50px;
  transition: var(--menu-transition);
}

.mobilie_header_nav .my-custom-class .ps-submenu-content .ps-menu-button:hover {
  background-color: var(--menu-hover-bg);
  color: var(--menu-accent-color);
}

/* Menu dashboard mobile - Harmonisation */
.dashboard_navigationbar .dropbtn {
  background-color: var(--menu-bg-white);
  color: var(--menu-text-color);
  border: 1px solid var(--menu-border-color);
  border-radius: var(--menu-border-radius);
  font-weight: 600;
  box-shadow: var(--menu-shadow);
  transition: var(--menu-transition);
}

.dashboard_navigationbar .dropbtn:hover,
.dashboard_navigationbar .dropbtn:focus {
  background-color: var(--menu-primary-color);
  color: var(--menu-bg-white);
  border-color: var(--menu-primary-color);
  box-shadow: var(--menu-shadow-hover);
}

.dashboard_navigationbar .show {
  background-color: var(--menu-bg-white);
  border: 1px solid var(--menu-border-color);
  border-radius: var(--menu-border-radius);
  box-shadow: var(--menu-shadow-hover);
}

.dashboard_navigationbar .dropdown-content li a {
  color: var(--menu-text-color);
  font-weight: 500;
  transition: var(--menu-transition);
}

.dashboard_navigationbar .dropdown-content li a:hover {
  background-color: var(--menu-hover-bg);
  color: var(--menu-accent-color);
}

.dashboard_navigationbar .dropdown-content li a.-is-active {
  background-color: var(--menu-primary-color);
  color: var(--menu-bg-white);
}

/* Sidebar mobile - Header harmonisé */
.rightside-hidden-bar .hsidebar-header {
  background: linear-gradient(
    135deg,
    var(--menu-primary-color) 0%,
    var(--menu-secondary-color) 100%
  );
  color: var(--menu-bg-white);
}

.rightside-hidden-bar .hsidebar-header .title {
  color: var(--menu-bg-white);
  font-weight: 600;
  font-size: 18px;
}

.rightside-hidden-bar .hsidebar-header .sidebar-close-icon {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--menu-bg-white);
  transition: var(--menu-transition);
}

.rightside-hidden-bar .hsidebar-header .sidebar-close-icon:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

/* Footer du sidebar mobile */
.rightside-hidden-bar .hiddenbar_footer {
  background-color: var(--menu-bg-light);
  border-top: 1px solid var(--menu-border-color);
}

.rightside-hidden-bar .hiddenbar_footer h6 {
  color: var(--menu-text-color);
  font-weight: 600;
}

/* Sidebar dashboard desktop - Harmonisation */
.dashboard__sidebar .dashboard_sidebar_list p {
  color: var(--menu-text-light);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dashboard__sidebar .sidebar_list_item a {
  color: var(--menu-text-color);
  font-weight: 500;
  transition: var(--menu-transition);
  border-radius: var(--menu-border-radius);
  margin-bottom: 2px;
}

.dashboard__sidebar .sidebar_list_item a:hover {
  background-color: var(--menu-hover-bg);
  color: var(--menu-accent-color);
}

.dashboard__sidebar .sidebar_list_item a.-is-active {
  background-color: var(--menu-primary-color);
  color: var(--menu-bg-white);
}

/* Harmonisation des icônes */
.dashboard__sidebar .sidebar_list_item a i,
.dashboard_navigationbar .dropdown-content li a i {
  width: 20px;
  text-align: center;
  margin-right: 12px;
  font-size: 16px;
}

/* Responsive - Cohérence sur tous les écrans */
@media (max-width: 992px) {
  /* Assurer que les menus mobiles ont la même apparence */
  .mobilie_header_nav .mobile_menu_bar,
  .dashboard_navigationbar {
    padding: 0 20px;
  }
}

@media (max-width: 575.98px) {
  .mobilie_header_nav .mobile_menu_bar,
  .dashboard_navigationbar {
    padding: 0 15px;
  }

  .mobile_menu-canvas {
    width: 300px !important;
  }
}

/* Animations cohérentes pour tous les menus */
@keyframes menuSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ace-responsive-menu .sub-menu,
.dashboard_navigationbar .show {
  animation: menuSlideIn 0.3s ease-out;
}

/* États de focus pour l'accessibilité */
.ace-responsive-menu a:focus,
.dashboard_navigationbar .dropbtn:focus,
.rightside-hidden-bar .sidebar-close-icon:focus {
  outline: 2px solid var(--menu-accent-color);
  outline-offset: 2px;
}

/* Amélioration des contrastes */
@media (prefers-contrast: high) {
  :root {
    --menu-hover-bg: rgba(235, 103, 83, 0.15);
    --menu-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    --menu-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.25);
  }
}

/* Corrections pour les menus mobiles - Harmonisation avec le desktop */

/* Correction de la classe avec faute de frappe */
.mobilie_header_nav {
  background-color: #fff;
  border-bottom: 1px solid #e9ecef;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Harmonisation du menu mobile principal avec le desktop */
.mobilie_header_nav .my-custom-class {
  margin-bottom: 0;
}

.mobilie_header_nav .my-custom-class .ps-menu-root ul li {
  font-size: 16px;
  font-weight: 500;
  color: #181a20;
  border-bottom: 1px solid #f8f9fa;
}

.mobilie_header_nav .my-custom-class .ps-menu-root > ul > li > .ps-menu-button {
  padding: 15px 30px;
  color: #181a20;
  font-family: var(--title-font-family);
  font-weight: 600;
}

.mobilie_header_nav
  .my-custom-class
  .ps-menu-root
  > ul
  > li
  > .ps-menu-button:hover {
  background-color: rgba(0, 177, 64, 0.07);
  color: #00b140;
}

.mobilie_header_nav
  .my-custom-class
  .ps-menuitem-root.active
  > .ps-menu-button
  span {
  color: #00b140;
}

/* Amélioration du header mobile */
.mobilie_header_nav .mobile-menu .header {
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  height: 70px;
  line-height: 70px;
}

.mobilie_header_nav .mobile_menu_bar {
  padding: 0 20px;
  height: 70px;
}

.mobilie_header_nav .mobile_logo img {
  max-height: 40px;
  width: auto;
}

/* Harmonisation du menu mobile des dashboards */
.dashboard_navigationbar {
  margin-bottom: 20px;
}

.dashboard_navigationbar .dropbtn {
  background-color: #fff;
  color: #181a20;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  height: 60px;
  padding: 15px 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.dashboard_navigationbar .dropbtn:hover,
.dashboard_navigationbar .dropbtn:focus {
  background-color: #00b140;
  color: #fff;
  border-color: #00b140;
}

.dashboard_navigationbar .dropbtn i {
  font-size: 18px;
  margin-right: 10px;
}

.dashboard_navigationbar .show {
  background-color: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-top: 5px;
}

.dashboard_navigationbar .dropdown-content {
  padding: 10px 0;
}

.dashboard_navigationbar .dropdown-content li {
  border-bottom: 1px solid #f8f9fa;
}

.dashboard_navigationbar .dropdown-content li:last-child {
  border-bottom: none;
}

.dashboard_navigationbar .dropdown-content li a {
  color: #181a20;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 20px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.dashboard_navigationbar .dropdown-content li a:hover {
  background-color: rgba(0, 177, 64, 0.07);
  color: #00b140;
}

.dashboard_navigationbar .dropdown-content li a.-is-active,
.dashboard_navigationbar .dropdown-content li.active a {
  background-color: #00b140;
  color: #fff;
}

.dashboard_navigationbar .dropdown-content li a i {
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

/* Amélioration du sidebar mobile */
.rightside-hidden-bar {
  background-color: #fff;
}

.rightside-hidden-bar .hsidebar-header {
  background: linear-gradient(135deg, #00b140 0%, #00a038 100%);
  color: #fff;
  padding: 20px 30px;
}

.rightside-hidden-bar .hsidebar-header .title {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.rightside-hidden-bar .hsidebar-header .sidebar-close-icon {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.rightside-hidden-bar .hsidebar-header .sidebar-close-icon:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

/* Amélioration du contenu du sidebar */
.rightside-hidden-bar .hsidebar-content {
  padding: 0;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.rightside-hidden-bar .hiddenbar_navbar_content {
  padding: 20px 0;
}

/* Amélioration du footer du sidebar */
.rightside-hidden-bar .hiddenbar_footer {
  background-color: #f8f9fa;
  margin-top: auto;
  padding: 20px 30px;
}

.rightside-hidden-bar .hiddenbar_footer h6 {
  color: #181a20;
  font-weight: 600;
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 575.98px) {
  .mobile_menu-canvas {
    width: 300px !important;
  }

  .mobilie_header_nav .mobile_menu_bar {
    padding: 0 15px;
  }

  .dashboard_navigationbar .dropbtn {
    padding: 12px 15px;
    font-size: 14px;
  }
}

/* Animation pour les menus déroulants */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dashboard_navigationbar .show {
  animation: slideDown 0.3s ease-out;
}

/* Amélioration de l'accessibilité */
.dashboard_navigationbar .dropbtn:focus,
.rightside-hidden-bar .hsidebar-header .sidebar-close-icon:focus {
  outline: 2px solid #00b140;
  outline-offset: 2px;
}

/* Cohérence des couleurs avec le design system */
:root {
  --mobile-menu-bg: #fff;
  --mobile-menu-text: #181a20;
  --mobile-menu-hover: rgba(0, 177, 64, 0.07);
  --mobile-menu-active: #00b140;
  --mobile-menu-border: #e9ecef;
  --mobile-menu-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Notification Center - Styles minimalistes avec Tailwind */

/* Suppression de la flèche du dropdown Bootstrap */
.dropdown-toggle::after {
  display: none !important;
}

/* Positionnement du dropdown Bootstrap */
.dropdown-menu {
  transform: none !important;
}

/* Badge personnalisé pour Tailwind */
.w-4\.5 {
  width: 1.125rem;
}

.h-4\.5 {
  height: 1.125rem;
}

/* Scrollbar personnalisée */
.overflow-y-auto::-webkit-scrollbar {
  width: 4px;
}

.overflow-y-auto::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.overflow-y-auto::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 2px;
}

.overflow-y-auto::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Assurer que les liens ne sont pas soulignés */
.no-underline {
  text-decoration: none !important;
}

.no-underline:hover {
  text-decoration: none !important;
}

 
