/* Logo Zkriva - Switching between light and dark themes */
.zkriva-logo-light {
  display: none !important;
}
.zkriva-logo-dark {
  display: inline-block !important;
  transition: filter 0.3s ease;
}

html[data-theme="dark"] .zkriva-logo-light {
  display: inline-block !important;
}
html[data-theme="dark"] .zkriva-logo-dark {
  display: none !important;
}

/* Logo color by theme - using CSS filters */
/* Zkriva theme - Beige/doré tint (#d2b491) */
html[data-theme="zkriva"] .zkriva-logo-dark,
html[data-theme="zkriva"] #sidebar-mini .sidebar-logo img,
html[data-theme="zkriva"] .sidebar .sidebar-logo img {
  filter: sepia(0.35) saturate(0.7) brightness(1.0);
}

/* Lilia theme - Rose/Pink tint (#d4729c) */
html[data-theme="lilia"] .zkriva-logo-dark,
html[data-theme="lilia"] #sidebar-mini .sidebar-logo img,
html[data-theme="lilia"] .sidebar .sidebar-logo img {
  filter: hue-rotate(280deg) saturate(0.6) brightness(1.05);
}

/* Nature theme - Green tint (#005c45) */
html[data-theme="nature"] .zkriva-logo-dark,
html[data-theme="nature"] #sidebar-mini .sidebar-logo img,
html[data-theme="nature"] .sidebar .sidebar-logo img {
  filter: hue-rotate(92deg) saturate(1.3) brightness(0.55);
}

/* Project Menu Image */
.img-menu-project {
  width: 224px;
  height: 224px;
  object-fit: contain;
  margin-bottom: 6px;
  border-radius: 29px;
}

/* Publish Announcement Button */
.btn-publier-annonce {
  background-color: var(--zk-yellow, #f2d123);
  color: #1a1a1a;
  border: none;
  padding: 0.6rem 1.4rem;
  font-weight: 600;
  border-radius: 4px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.btn-publier-annonce:hover {
  background-color: #e6c520;
  color: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(242, 209, 35, 0.4);
}

/* Dark theme - Nouveau projet button */
[data-theme="dark"] .btn-publier-annonce {
  background-color: var(--zk-yellow, #f2d123);
  color: #1a1a1a;
}

[data-theme="dark"] .btn-publier-annonce:hover {
  background-color: #ffe14d;
  color: #1a1a1a;
  box-shadow: 0 8px 16px rgba(242, 209, 35, 0.5);
}

/* Zkriva theme - Nouveau projet button */
[data-theme="zkriva"] .btn-publier-annonce {
  background-color: #d2b491;
  color: #1c1917;
}

[data-theme="zkriva"] .btn-publier-annonce:hover {
  background-color: #c9a57e;
  color: #1c1917;
  box-shadow: 0 8px 16px rgba(210, 180, 145, 0.4);
}

/* Lilia theme - Nouveau projet button */
[data-theme="lilia"] .btn-publier-annonce {
  background-color: #d4729c;
  color: #fff;
}

[data-theme="lilia"] .btn-publier-annonce:hover {
  background-color: #c95d89;
  color: #fff;
  box-shadow: 0 8px 16px rgba(212, 114, 156, 0.4);
}

/* Nature theme - Nouveau projet button */
[data-theme="nature"] .btn-publier-annonce {
  background-color: #005c45;
  color: #fff;
}

[data-theme="nature"] .btn-publier-annonce:hover {
  background-color: #004d3a;
  color: #fff;
  box-shadow: 0 8px 16px rgba(0, 92, 69, 0.4);
}

/* Register Button */
.custom-register {
  background-color: var(--zk-yellow);
  border-color: var(--zk-yellow);
  color: black;
  transition: all 0.3s ease;
}

/* ============================================================================
   MENU MODE CORRECTION / BETA-LECTURE
   ============================================================================ */

/* Menu Correction - Nav links */
#menuCorrection .nav-link {
  color: #6b7280;
  font-size: 0.92rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: all 0.2s ease;
}

#menuCorrection .nav-link:hover {
  color: var(--zk-yellow);
  background: var(--zk-yellow-light);
}

#menuCorrection .nav-link i {
  font-size: 1rem;
}

/* Dropdown Correction */
.correction-dropdown {
  min-width: 280px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.correction-dropdown .dropdown-item-box {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  transition: all 0.15s ease;
}

.correction-dropdown .dropdown-item-box:hover {
  background: var(--zk-yellow-light);
}

.correction-dropdown .dropdown-item-box:hover .fw-semibold {
  color: var(--zk-yellow);
}

.correction-dropdown .dropdown-item-box i {
  color: var(--zk-yellow);
}

/* Dark Theme - Menu Correction */
[data-theme="dark"] #menuCorrection .nav-link {
  color: #9ca3af;
}

[data-theme="dark"] #menuCorrection .nav-link:hover {
  color: var(--zk-yellow);
  background: var(--zk-yellow-light);
}

[data-theme="dark"] .correction-dropdown {
  background: #1f2937;
  border-color: #374151;
}

[data-theme="dark"] .correction-dropdown .dropdown-item-box:hover {
  background: var(--zk-yellow-light);
}

[data-theme="dark"] .correction-dropdown .dropdown-item-box:hover .fw-semibold {
  color: var(--zk-yellow);
}

[data-theme="dark"] .correction-dropdown .dropdown-item-box i {
  color: var(--zk-yellow);
}

[data-theme="dark"] .correction-dropdown .fw-semibold {
  color: #e5e7eb;
}

[data-theme="dark"] .correction-dropdown .text-muted {
  color: #9ca3af !important;
}

/* Zkriva Theme - Topbar */
[data-theme="zkriva"] .navbar {
  border-bottom: 1px solid #e7e5e4;
}

/* Zkriva Theme - Menu Correction */
[data-theme="zkriva"] #menuCorrection .nav-link {
  color: #78716c;
}

[data-theme="zkriva"] #menuCorrection .nav-link:hover {
  color: #d2b491;
  background: rgba(210, 180, 145, 0.12);
}

[data-theme="zkriva"] .correction-dropdown {
  background: #faf9f7;
  border-color: #e7e5e4;
}

[data-theme="zkriva"] .correction-dropdown .dropdown-item-box:hover {
  background: rgba(210, 180, 145, 0.12);
}

[data-theme="zkriva"] .correction-dropdown .dropdown-item-box:hover .fw-semibold {
  color: #d2b491;
}

[data-theme="zkriva"] .correction-dropdown .dropdown-item-box i {
  color: #78716c;
}

[data-theme="zkriva"] .correction-dropdown .dropdown-item-box:hover i {
  color: #d2b491;
}

.custom-register:hover {
  background-color: var(--zk-btn-primary-hover);
  border-color: var(--zk-btn-primary-hover);
  color: white;
  transform: scale(1.05);
}

/* Dark Button */
.btn-dark {
  background-color: black;
  color: white;
  border-color: black;
  transition: all 0.3s ease;
}

/* Search Bar */
.searchbar {
  width: 200px;
}

/* Main Content */
.main-content {
  padding: 2rem;
  padding-top: 0px;
  overflow-y: auto;
}

/* Navigation Link */
.nav-link {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  color: #2c3e50;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  background-color: rgba(242, 209, 35, 0.15);
  color: #2c3e50;
}

.nav-link i {
  font-size: 0.75rem;
}

/* Login Button */
.btn-login {
  color: #2c3e50;
  transition: all 0.3s ease;
  font-weight: 500;
}

.btn-login:hover {
  background-color: rgba(242, 209, 35, 0.15);
  border-radius: 0.5rem;
  color: #000;
  transform: scale(1.03);
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 999;
  min-width: 250px;
  background-color: #fff;
  border-radius: 0.75rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  padding: 1rem;
}

/* Dropdown s'ouvre au clic (classe .show ajoutée par Bootstrap) */
.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Compiler Dropdown */
.compiler-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 320px;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 1000;
}

.dropdown-item-box {
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  transition: background 0.2s ease;
  color: inherit;
}

.dropdown-item-box:hover {
  background-color: rgba(242, 209, 35, 0.15);
  text-decoration: none;
  color: inherit;
}

.compiler-dropdown .bi {
  flex-shrink: 0;
}

/* Separator Line */
.separator-line {
  height: 1px;
  width: 75%;
  background-color: #e5e5e5;
  margin: 0 auto;
  border-radius: 1px;
}

/* Project Dropdown */
.project-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 400px;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 1000;
}

.project-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.project-item {
  text-decoration: none;
  color: inherit;
  border-radius: 0.75rem;
  padding: 0.5rem;
  transition: background 0.2s ease;
}

.project-item:hover {
  background-color: rgba(242, 209, 35, 0.15);
  text-decoration: none;
}

/* Publier Dropdown */
.publier-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 400px;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.2s ease;
  z-index: 1000;
}

.publier-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.publier-item {
  text-decoration: none;
  color: inherit;
  border-radius: 0.75rem;
  padding: 0.5rem;
  transition: background 0.2s ease;
}

.publier-item:hover {
  background-color: rgba(242, 209, 35, 0.15);
}

/* Search Clear Button */
.zkriva-search-clear-btn {
  border-radius: 50%;
  transition: background 0.15s;
}

.zkriva-search-clear-btn:hover,
.zkriva-search-clear-btn:focus {
  background: rgba(242, 209, 35, 0.19) !important;
}

.zkriva-search-clear-btn .bi {
  transition: color 0.15s;
}

.zkriva-search-clear-btn:hover .bi,
.zkriva-search-clear-btn:focus .bi {
  color: #c0a200;
}

/* Network Dot (legacy) */
.zk-net-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  top: 2px;
  right: 6px;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06);
  z-index: 2;
}

html.zk-offline .zk-net-dot {
  background: #dc3545;
}

html:not(.zk-offline) .zk-net-dot {
  background: #28a745;
}

/* Badge Row */
.zk4-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .5rem;
}

/* Badge Type */
.zk4-type {
  font-size: .78em;
  width: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  height: 27px;
  border: 1px solid var(--zk-yellow-border, rgba(242, 209, 35, 0.26));
  color: var(--zk-yellow);
  background: var(--zk-yellow-soft, rgba(242, 209, 35, 0.14));
}

/* Vertical Separator */
.zk4-sep-v {
  width: 1px;
  height: 22px;
  background: rgba(0,0,0,.08);
  border-radius: 1px;
}

/* Badges Group */
.zk4-badges {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.zk4-badge {
  --h: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--h);
  min-width: var(--h);
  padding: 0 .45rem;
  border-radius: 8px;
  border: 1px solid #adc4ee;
  background: #f8fafc;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
  cursor: default;
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}

.zk4-badge i {
  font-size: 1em;
  line-height: 1;
}

.zk4-badge:hover {
  transform: translateY(-1px);
  filter: brightness(.98);
  box-shadow: 0 2px 6px rgba(15,23,42,.08);
}

.zk4-badge.goldpen {
  background: rgba(254,239,160,.38);
  border-color: rgba(254,239,160,.65);
}

.zk4-badge.goldpen i {
  color: #f2c100;
}

.zk4-badge.premiumcrown {
  background: rgba(247,202,70,.18);
  border-color: rgba(247,202,70,.45);
}

.zk4-badge.premiumcrown i {
  color: #d2b013;
}

.zk4-badge.star {
  background: rgba(250,223,122,.16);
  border-color: rgba(250,223,122,.42);
}

.zk4-badge.star i {
  color: #ffc600;
}

.zk4-badge.streak {
  background: rgba(210,222,250,.20);
  border-color: rgba(210,222,250,.6);
}

.zk4-badge.streak i {
  color: #6c63ff;
}

/* User Sidebar Header */
.user-sb-header {
  box-shadow: var(--bs-box-shadow-sm) !important;
}

/* User Sidebar Footer */
.zk-sb-footer {
  position: sticky;
  bottom: 0;
  background: #fff;
  z-index: 2;
  box-shadow: 0 -0.125rem 0.25rem rgba(0,0,0,.075) !important;
  border-top-left-radius: .5rem;
  border-top-right-radius: .5rem;
}

/* Segment Switch Disabled */
.seg-switch[aria-disabled="true"],
.seg-switch[data-disabled="1"],
.seg-switch.is-disabled {
  opacity: .55;
  pointer-events: none;
}

.seg-switch[aria-disabled="true"] .seg-thumb,
.seg-switch[data-disabled="1"] .seg-thumb {
  filter: grayscale(1);
}

/* Zkriva Search Form */
.zkriva-search-form {
  --zk-search-collapsed: 190px;
  --zk-search-expanded: 520px;
  position: relative;
  flex: 0 1 auto;
  width: var(--zk-search-collapsed);
  transition: width .28s ease;
}

.zkriva-search-form:focus-within,
.zkriva-search-form.is-open {
  width: min(var(--zk-search-expanded), calc(100vw - 380px));
}

/* Limiter davantage la largeur pour les utilisateurs déconnectés (plus de boutons à droite) */
.zkriva-search-form.user-guest:focus-within,
.zkriva-search-form.user-guest.is-open {
  width: min(350px, calc(100vw - 750px));
}

/* Element Title Display - Affichage du titre de l'élément sélectionné */
.element-title-display {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) translateY(-20px);
  display: none; /* Caché par défaut (mobile) */
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: transparent;
  border: none;
  border-radius: 8px;
  max-width: 320px;
  opacity: 0;
  transition: opacity 0.3s ease-out, transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 101;
}

.element-title-display.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) translateY(-20px);
  display: none !important;
}

/* Animation d'entrée - slide down from top */
.element-title-display.visible {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0);
}

/* Animation de sortie - slide up (avant changement) */
.element-title-display.exiting {
  opacity: 0;
  transform: translate(-50%, -50%) translateY(-20px);
  transition: opacity 0.2s ease-in, transform 0.2s ease-in;
}

/* Animation d'entrée après changement - slide down */
.element-title-display.entering {
  opacity: 0;
  transform: translate(-50%, -50%) translateY(-20px);
}

.element-title-display.entering.visible {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0);
  transition: opacity 0.3s ease-out, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Tablettes (768px - 991px): version compacte, icône seulement */
@media (min-width: 768px) and (max-width: 991px) {
  .element-title-display:not(.hidden) {
    display: flex;
    max-width: 200px;
    padding: 4px 10px;
    gap: 8px;
  }

  .element-title-display.visible {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
  }

  .element-title-display.exiting {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(-20px);
  }

  .element-title-display .element-title-content {
    display: none; /* Cacher le texte, garder seulement l'icône */
  }

  .element-title-display .element-title-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 16px;
  }
}

/* Desktop (992px+): version complète */
@media (min-width: 992px) {
  .element-title-display:not(.hidden) {
    display: flex;
  }

  .element-title-display.visible {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
  }

  .element-title-display.exiting {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(-20px);
  }
}

/* Grand écrans (1200px+): plus d'espace */
@media (min-width: 1200px) {
  .element-title-display {
    max-width: 400px;
  }

  .element-title-label {
    font-size: 14px;
  }
}

.element-title-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  background: #f0f0f0;
  border-radius: 6px;
  color: #6b7280;
  font-size: 14px;
}

/* Indicateur de sync (point) */
.element-title-icon::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #005c45;
  border: 2px solid #fff;
  box-shadow: 0 0 0 0 rgba(0, 92, 69, 0.4);
  animation: syncPulse 2s infinite;
}

/* État: synchronisation en cours */
.element-title-display.syncing .element-title-icon::after {
  background: #e5cdb3;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
  animation: syncPulse 1s infinite;
}

/* État: erreur de sync */
.element-title-display.sync-error .element-title-icon::after {
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
  animation: syncPulse 1.5s infinite;
}

/* État: pas de sync (offline) */
.element-title-display.offline .element-title-icon::after {
  background: #9ca3af;
  animation: none;
}

@keyframes syncPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 92, 69, 0.4);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(0, 92, 69, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 92, 69, 0);
  }
}

.element-title-display.syncing .element-title-icon::after {
  animation-name: syncPulseSyncing;
}

@keyframes syncPulseSyncing {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
  }
}

.element-title-display.sync-error .element-title-icon::after {
  animation-name: syncPulseError;
}

@keyframes syncPulseError {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

/* Animation pulsation pour bouton AutoSave TipTap */
#tiptapAutoSaveBtn {
  position: relative;
}

#tiptapAutoSaveBtn i {
  color: #005c45;
  text-shadow: 0 0 0 rgba(0, 92, 69, 0.4);
  animation: iconSyncPulse 2s infinite;
}

@keyframes iconSyncPulse {
  0% {
    text-shadow: 0 0 0 rgba(0, 92, 69, 0.6);
  }
  70% {
    text-shadow: 0 0 8px rgba(0, 92, 69, 0);
  }
  100% {
    text-shadow: 0 0 0 rgba(0, 92, 69, 0);
  }
}

/* État: synchronisation en cours - pulsation orange */
#tiptapAutoSaveBtn.syncing i {
  color: #e5cdb3;
  animation: iconSyncPulseSyncing 1s infinite;
}

@keyframes iconSyncPulseSyncing {
  0% {
    text-shadow: 0 0 0 rgba(245, 158, 11, 0.6);
  }
  70% {
    text-shadow: 0 0 8px rgba(245, 158, 11, 0);
  }
  100% {
    text-shadow: 0 0 0 rgba(245, 158, 11, 0);
  }
}

/* État: erreur de sync - pulsation rouge */
#tiptapAutoSaveBtn.sync-error i {
  color: #ef4444;
  animation: iconSyncPulseError 1.5s infinite;
}

@keyframes iconSyncPulseError {
  0% {
    text-shadow: 0 0 0 rgba(239, 68, 68, 0.6);
  }
  70% {
    text-shadow: 0 0 8px rgba(239, 68, 68, 0);
  }
  100% {
    text-shadow: 0 0 0 rgba(239, 68, 68, 0);
  }
}

/* État: offline - pas d'animation */
#tiptapAutoSaveBtn.offline i {
  color: #9ca3af;
  animation: none;
  text-shadow: none;
}

.element-title-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.element-title-label {
  font-size: 13px;
  font-weight: 500;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.element-title-breadcrumb {
  font-size: 11px;
  color: #9ca3af;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hover discret */
.element-title-display:hover .element-title-label {
  color: #374151;
}

.element-title-display:hover .element-title-icon {
  background: #e5e7eb;
  color: #4b5563;
}

/* Animation d'entrée */
.element-title-display.pulse {
  animation: titleFadeIn 0.4s ease-out;
}

@keyframes titleFadeIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================================================
   TOOLTIP SYNC STATUS - Style moderne fond noir (affiché en bas)
   ============================================================================ */
.sync-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 20px;
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 101;
}

.element-title-display:hover .sync-tooltip {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.sync-tooltip-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(26, 26, 26, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
}

.sync-tooltip-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sync-tooltip-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 14px;
}

/* État synchronisé (vert) */
.sync-tooltip-icon i {
  color: #005c45;
}

.sync-tooltip-text {
  color: #fff;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.sync-tooltip-desc {
  color: rgba(255, 255, 255, 0.6);
  font-size: 11px;
  font-weight: 400;
  padding-left: 38px;
}

/* Caret (triangle pointant vers le haut) */
.sync-tooltip-caret {
  position: absolute;
  top: -8px;
  left: 14px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 10px solid rgba(26, 26, 26, 0.75);
}

/* État: synchronisation en cours (orange) */
.element-title-display.syncing .sync-tooltip-icon {
  background: rgba(245, 158, 11, 0.15);
}

.element-title-display.syncing .sync-tooltip-icon i {
  color: #e5cdb3;
  animation: syncIconSpin 1s linear infinite;
}

/* État: erreur (rouge) */
.element-title-display.sync-error .sync-tooltip-icon {
  background: rgba(239, 68, 68, 0.15);
}

.element-title-display.sync-error .sync-tooltip-icon i {
  color: #ef4444;
}

/* État: hors ligne (gris) */
.element-title-display.offline .sync-tooltip-icon {
  background: rgba(156, 163, 175, 0.15);
}

.element-title-display.offline .sync-tooltip-icon i {
  color: #9ca3af;
}

@keyframes syncIconSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes syncIconPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .element-title-icon {
    background: #374151;
    color: #9ca3af;
  }

  .element-title-display:hover .element-title-icon {
    background: #4b5563;
    color: #d1d5db;
  }

  .element-title-label {
    color: #9ca3af;
  }

  .element-title-display:hover .element-title-label {
    color: #d1d5db;
  }

  .element-title-breadcrumb {
    color: #6b7280;
  }

  .element-title-icon::after {
    border-color: #1f2937;
  }
}

/* Zkriva Search Input */
.zkriva-search-input {
  position: relative;
  z-index: 1;
  height: 36px;
  border-radius: 999px;
  padding-left: 2.0rem;
  padding-right: 5.2rem;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.04);
}

/* Search Left Button */
.zks-left-btn {
  position: absolute;
  left: .55rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0;
  border: 0;
  background: transparent;
  line-height: 1;
  color: #8b8b8b;
  cursor: pointer;
  z-index: 3;
}

.zks-left-btn:hover {
  color: #5f5f5f;
}

/* Search Right Icons Group */
.zks-right {
  position: absolute;
  right: .35rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  pointer-events: none;
  z-index: 3;
}

.zks-right .btn {
  pointer-events: auto;
  padding: .15rem .35rem;
  -moz-appearance: none;
}

/* Search Separator */
.zks-sep {
  width: 1px;
  height: 18px;
  background: #e5e5e5;
  display: inline-block;
  margin: 0 .15rem;
}

/* Search Clear Button */
#zkriva-search-clear {
  border-radius: 8px;
  padding: .15rem .35rem;
  transition: background-color .18s ease, color .18s ease, transform .12s ease;
  width: 30px;
}

#zkriva-search-clear i {
  color: #9a9a9a;
  transition: color .18s ease;
}

#zkriva-search-clear:hover,
#zkriva-search-clear:focus-visible {
  background-color: rgba(0,0,0,.06) !important;
}

#zkriva-search-clear:hover i,
#zkriva-search-clear:focus-visible i {
  color: #6b6b6b;
}

#zkriva-search-clear:active {
  transform: translateY(1px);
}

/* Search Suggestions Panel */
.zkriva-search-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid #ececec;
  border-radius: .65rem;
  box-shadow: 0 10px 24px rgba(0,0,0,.08);
  padding: .35rem;
  z-index: 1000 !important;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition:
    max-height .28s cubic-bezier(.22,.61,.36,1),
    opacity .20s ease,
    transform .20s ease;
}

.zkriva-search-suggest.open {
  max-height: 420px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Search Suggestions Content */
.zks-section-title {
  font-size: .75rem;
  color: #8b8b8b;
  padding: .25rem .5rem .15rem;
}

.zks-item {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .45rem .55rem;
  border-radius: .5rem;
  cursor: pointer;
}

.zks-item:hover {
  background: rgba(242, 209, 35, .12);
}

.zks-text {
  flex: 1 1 auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #2c2c2c;
}

.zks-del {
  color: #a5a5a5;
  padding: .15rem;
  line-height: 1;
}

.zks-del:hover {
  color: #dc3545;
}

/* User Suggestions */
.zks-user-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.15s ease;
}

.zks-user-item:hover {
  background: rgba(242, 209, 35, 0.12);
}

.zks-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.zks-user-info {
  flex: 1;
  min-width: 0;
}

.zks-user-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: #2c2c2c;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zks-user-username {
  font-size: 0.75rem;
  color: #6c757d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zks-empty {
  padding: 1rem;
  text-align: center;
  color: #9a9a9a;
  font-size: 0.875rem;
}

/* Search Filter Button */
#zkriva-search-filter {
  border-radius: 8px;
  padding: .15rem .35rem;
  transition: background-color .18s ease, color .18s ease, transform .12s ease;
  width: 30px;
}

#zkriva-search-filter i {
  color: #9a9a9a;
  transition: color .18s ease;
}

#zkriva-search-filter:hover,
#zkriva-search-filter:focus-visible {
  background-color: rgba(0,0,0,.06);
}

#zkriva-search-filter:hover i,
#zkriva-search-filter:focus-visible i {
  color: #6b6b6b;
}

#zkriva-search-filter:active {
  transform: translateY(1px);
}

/* Form Control */
.form-control:focus {
  color: #51596c;
  background-color: #fff !important;
  border-color: rgba(140,152,164,.25) !important;
  outline: 0 !important;
  box-shadow: 0 0 1rem 0 rgba(140,152,164,.25) !important;
}

.form-control {
  display: block;
  width: 100%;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #51596c;
  background-color: #fff;
  background-clip: padding-box;
  border: .0625rem solid rgba(0,34,28,.1);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

/* Responsive */
@media (max-width: 992px) {
  .zkriva-search-form {
    --zk-search-expanded: 92vw;
  }
}

/* Dark Theme */
@media (prefers-color-scheme: dark) {
  .zkriva-search-suggest {
    background: #111418;
    border-color: #1f242a;
    box-shadow: 0 10px 24px rgba(0,0,0,.5);
  }

  .zks-section-title {
    color: #9aa4af;
  }

  .zks-item:hover {
    background: rgba(242,209,35,.16);
  }

  .zks-text {
    color: #e9edf3;
  }

  .zks-sep {
    background: #2c333b;
  }

  .zks-left-btn {
    color: #a7b0ba;
  }

  .zks-left-btn:hover {
    color: #cbd3db;
  }
}

/* Inline Styles from HTML (converted to classes) */
.topbar-navbar-height {
  height: 56px;
  position: relative;
}

.topbar-project-dropdown-width {
  min-width: 600px;
}

.topbar-search-icon-size {
  font-size: 1.05rem;
}

.topbar-search-clear-icon {
  font-size: 1.1rem;
  color: #9a9a9a;
}

/* ============================================================================
   TOPBAR RIGHT - Style minimaliste
   ============================================================================ */

/* Boutons icône (Bug, Notifications) */
.topbar-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: 50%;
  color: #6b7280;
  font-size: 1.25rem;
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease, transform 0.15s ease, color 0.2s ease;
}

.topbar-icon-btn:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #374151;
  transform: scale(1.08);
}

.topbar-icon-btn:active {
  transform: scale(0.95);
}

/* Point de notification (petit dot rouge) */
.topbar-notif-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid #fff;
}

/* Bouton Avatar */
.topbar-avatar-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

/* Image avatar - cercle avec border fin */
.topbar-avatar-img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  transition: border-color 0.2s ease, transform 0.15s ease;
  padding: 2px;
}

.topbar-avatar-btn:hover .topbar-avatar-img {
  border-color: #9ca3af;
  transform: scale(1.08);
}

.topbar-avatar-btn:active .topbar-avatar-img {
  transform: scale(0.98);
}

/* Point de statut (connecté/déconnecté) en haut du cercle */
.topbar-status-dot {
  position: absolute;
  top: -1px;
  right: 1px;
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  border: 2px solid #fff;
  pointer-events: none;
}

html.zk-offline .topbar-status-dot {
  background: #ef4444;
}

/* ============================================================================
   TOPBAR RIGHT - Dark theme
   ============================================================================ */
[data-theme="dark"] .topbar-icon-btn {
  color: #9ca3af;
}

[data-theme="dark"] .topbar-icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #e5e7eb;
}

[data-theme="dark"] .topbar-avatar-img {
  border-color: #4b5563;
}

[data-theme="dark"] .topbar-avatar-btn:hover .topbar-avatar-img {
  border-color: #9ca3af;
}

[data-theme="dark"] .topbar-notif-dot,
[data-theme="dark"] .topbar-status-dot {
  border-color: #1f2937;
}

/* ============================================================================
   TOPBAR RIGHT - Zkriva theme
   ============================================================================ */
[data-theme="zkriva"] .topbar-icon-btn {
  color: #78716c;
}

[data-theme="zkriva"] .topbar-icon-btn:hover {
  background: rgba(210, 180, 145, 0.15);
  color: #d2b491;
}

[data-theme="zkriva"] .topbar-avatar-img {
  border-color: #d2b491;
}

[data-theme="zkriva"] .topbar-avatar-btn:hover .topbar-avatar-img {
  border-color: #b89a73;
}

[data-theme="zkriva"] .topbar-status-dot {
  border-color: #fffbeb;
}

/* ============================================================================
   TOPBAR RIGHT - Lilia theme
   ============================================================================ */
[data-theme="lilia"] .topbar-icon-btn {
  color: #9d7a8c;
}

[data-theme="lilia"] .topbar-icon-btn:hover {
  background: rgba(212, 114, 156, 0.1);
  color: #d4729c;
}

[data-theme="lilia"] .topbar-avatar-img {
  border-color: #e9d5e0;
}

[data-theme="lilia"] .topbar-avatar-btn:hover .topbar-avatar-img {
  border-color: #d4729c;
}

[data-theme="lilia"] .topbar-notif-dot,
[data-theme="lilia"] .topbar-status-dot {
  border-color: #fdf2f8;
}

/* ============================================================================
   TOPBAR RIGHT - Nature theme
   ============================================================================ */
[data-theme="nature"] .topbar-icon-btn {
  color: #6b7a6f;
}

[data-theme="nature"] .topbar-icon-btn:hover {
  background: rgba(0, 92, 69, 0.1);
  color: #005c45;
}

[data-theme="nature"] .topbar-avatar-img {
  border-color: #c6dcd0;
}

[data-theme="nature"] .topbar-avatar-btn:hover .topbar-avatar-img {
  border-color: #005c45;
}

[data-theme="nature"] .topbar-notif-dot,
[data-theme="nature"] .topbar-status-dot {
  border-color: #f0fdf4;
}

/* ============================================================================
   LEGACY - Ancien styles (compatibilité)
   ============================================================================ */
.topbar-notif-btn {
  border-radius: 50%;
}

.topbar-profile-btn {
  border-radius: 50%;
  transition: all 0.2s ease;
}

.topbar-profile-btn:hover {
  transform: translateY(-2px);
}

.topbar-notif-badge {
  font-size: 0.4em;
}

.topbar-user-sidebar-width {
  width: 320px;
}

.topbar-user-sidebar-header {
  box-shadow: var(--bs-box-shadow-sm) !important;
}

.topbar-avatar-card {
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.topbar-user-info-container {
  min-width: 0;
}

.topbar-user-name {
  font-size: 1.05em;
}

/* Conteneur des boutons close + logout en haut à droite (vertical) */
.topbar-sidebar-header-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  z-index: 2;
}

.topbar-close-btn {
  position: relative;
  top: auto;
  right: auto;
  color: #6c6c6c;
  font-size: 1.35em;
  z-index: 2;
}

/* Avatar cliquable */
.topbar-avatar-link {
  display: block;
  border-radius: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.topbar-avatar-link:hover {
  transform: scale(1.05);
}

.topbar-avatar-link .topbar-avatar-card {
  border: 3px solid var(--zk-yellow);
  box-shadow: 0 2px 8px rgba(242, 209, 35, 0.25);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.topbar-avatar-link:hover .topbar-avatar-card {
  border-color: #d4b820;
  box-shadow: 0 4px 16px rgba(242, 209, 35, 0.4);
}

[data-theme="dark"] .topbar-avatar-link .topbar-avatar-card {
  border-color: var(--zk-yellow);
  box-shadow: 0 2px 8px rgba(242, 209, 35, 0.3);
}

[data-theme="dark"] .topbar-avatar-link:hover .topbar-avatar-card {
  box-shadow: 0 4px 16px rgba(242, 209, 35, 0.5);
}

[data-theme="zkriva"] .topbar-avatar-link .topbar-avatar-card {
  border-color: #d2b491;
  box-shadow: 0 2px 8px rgba(210, 180, 145, 0.25);
}

[data-theme="zkriva"] .topbar-avatar-link:hover .topbar-avatar-card {
  border-color: #b89a73;
  box-shadow: 0 4px 16px rgba(210, 180, 145, 0.4);
}

[data-theme="lilia"] .topbar-avatar-link .topbar-avatar-card {
  border-color: #d4729c;
  box-shadow: 0 2px 8px rgba(212, 114, 156, 0.25);
}

[data-theme="lilia"] .topbar-avatar-link:hover .topbar-avatar-card {
  border-color: #c45d8a;
  box-shadow: 0 4px 16px rgba(196, 93, 138, 0.4);
}

[data-theme="lilia"] .topbar-username-link:hover {
  color: #d4729c;
}

/* Username cliquable */
.topbar-username-link {
  display: block;
  font-size: 1.1em;
  font-weight: 600;
  color: var(--pp-text, #374151);
  text-decoration: none;
  transition: color 0.15s ease;
}

.topbar-username-link:hover {
  color: var(--zk-yellow);
  text-decoration: none;
}

[data-theme="dark"] .topbar-username-link {
  color: #e5e7eb;
}

[data-theme="dark"] .topbar-username-link:hover {
  color: var(--zk-yellow);
}

[data-theme="zkriva"] .topbar-username-link:hover {
  color: #d2b491;
}

.topbar-hr-custom {
  border-color: #aaa;
  margin-top: 6px !important;
  margin-bottom: 6px !important;
}

.topbar-logout-btn {
  font-size: 1.1em;
  line-height: 1;
  width: 28px;
  height: 28px;
  min-width: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  flex-shrink: 0;
  transition: all 0.15s ease;
  color: #dc3545 !important;
  text-decoration: none !important;
}

.topbar-logout-btn:hover {
  background: rgba(220, 53, 69, 0.1);
  color: #bb2d3b !important;
  transform: scale(1.05);
}

.topbar-logout-btn:active {
  transform: scale(0.95);
}

/* Dark mode */
[data-theme="dark"] .topbar-logout-btn {
  color: #f87171 !important;
}

[data-theme="dark"] .topbar-logout-btn:hover {
  background: rgba(248, 113, 113, 0.15);
  color: #fca5a5 !important;
}

.topbar-menu-min-height {
  min-height: 120px;
}

.topbar-premium-link {
  border: 1px solid var(--zk-yellow);
  border-radius: 0.5rem;
  background: rgba(242, 209, 35, 0.05);
}

.topbar-premium-icon {
  color: var(--zk-yellow);
}

.topbar-premium-text {
  color: var(--zk-yellow);
  font-weight: 600;
}

.topbar-search-hidden {
  display: none;
}

/* ============================================================================
   OVERLAY RECHERCHE MOBILE
   ============================================================================ */
.mobile-search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: none !important; /* Caché par défaut */
  opacity: 0;
  transition: opacity 0.3s ease, backdrop-filter 0.3s ease;
  pointer-events: none;
}

.mobile-search-overlay.active {
  display: block !important; /* Visible quand actif */
  opacity: 1;
  pointer-events: auto;
}

.mobile-search-container {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 2rem 1.5rem;
}

.mobile-search-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 2rem;
}

.mobile-search-form {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.mobile-search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 50px;
  padding: 1rem 1.5rem;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.1);
}

.mobile-search-icon {
  font-size: 1.5rem;
  color: var(--zk-yellow);
  margin-right: 1rem;
}

.mobile-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.25rem;
  background: transparent;
  color: #222;
}

.mobile-search-input::placeholder {
  color: #999;
}

.mobile-search-clear {
  background: none;
  border: none;
  padding: 0;
  color: #999;
  font-size: 1.25rem;
  cursor: pointer;
  transition: color 0.2s;
}

.mobile-search-clear:hover {
  color: var(--zk-yellow);
}

.mobile-search-suggestions {
  margin-top: 2rem;
  background: #fff;
  border-radius: 12px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  max-height: 60vh;
  overflow-y: auto;
}

/* Bouton recherche mobile */
#mobileSearchBtn {
  color: #222;
  transition: color 0.2s;
}

#mobileSearchBtn:hover {
  color: var(--zk-yellow);
}

/* ============================================================================
   RESPONSIVE MEDIA QUERIES
   ============================================================================ */

/* Système de recherche responsive */
/* Mobile uniquement (< 992px) */
@media (max-width: 991.98px) {
  /* Cacher la recherche desktop */
  #zkriva-search-form {
    display: none !important;
  }

  /* Afficher le bouton icône recherche */
  #mobileSearchBtn {
    display: inline-block !important;
  }

  /* Cacher l'overlay par défaut */
  #mobileSearchOverlay {
    display: none;
  }

  #mobileSearchOverlay.active {
    display: block !important;
  }
}

/* Desktop (≥ 992px) */
@media (min-width: 992px) {
  /* Afficher la recherche desktop */
  #zkriva-search-form {
    display: flex !important;
  }

  /* Cacher le bouton mobile */
  #mobileSearchBtn {
    display: none !important;
  }

  /* Cacher l'overlay mobile */
  #mobileSearchOverlay {
    display: none !important;
  }
}

/* Tablettes et petits écrans (992px et moins) */
@media (max-width: 992px) {
  /* Navbar parent doit être relative */
  .navbar {
    position: relative;
  }

  /* Bootstrap navbar collapse en position absolue */
  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-top: 1px solid #eee;
    z-index: 9000;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }

  /* Topbar lui-même doit être au-dessus */
  .navbar {
    z-index: 9001;
  }

  .navbar-collapse.collapsing,
  .navbar-collapse.show {
    display: block;
  }

  .navbar-collapse .navbar-nav {
    gap: 0.5rem;
  }

  .navbar-collapse .nav-link {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: background 0.2s ease;
  }

  .navbar-collapse .nav-link:hover {
    background: rgba(242, 209, 35, 0.15);
  }

  /* Dropdown dans collapse */
  .navbar-collapse .dropdown {
    width: 100%;
  }

  .navbar-collapse .dropdown-menu {
    position: static !important;
    transform: none !important;
    box-shadow: none;
    border: 1px solid #eee;
    margin-top: 0.5rem;
  }

  /* Garder le layout 2 colonnes pour project-dropdown même en mobile */
  .navbar-collapse .project-dropdown {
    min-width: 100%;
    width: 100%;
  }

  .navbar-collapse .project-dropdown > .row {
    display: flex !important;
    flex-wrap: nowrap !important;
  }

  .navbar-collapse .project-dropdown > .row > .col-6 {
    flex: 0 0 50% !important;
    max-width: 50% !important;
  }

  /* Bouton hamburger discret gris */
  .topbar-hamburger-btn {
    border: none !important;
    padding: 0.25rem 0.5rem;
    background: transparent;
    box-shadow: none !important;
  }

  .topbar-hamburger-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 6px;
  }

  .topbar-hamburger-btn:active {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 6px;
  }

  .topbar-hamburger-btn .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23666' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
    width: 20px;
    height: 20px;
  }

  /* Réduit l'espace autour du logo */
  .navbar-brand {
    margin-right: 1rem !important;
  }

  /* Recherche plus compacte */
  .zkriva-search-form {
    --zk-search-collapsed: 140px !important;
    --zk-search-expanded: 280px !important;
  }

}

/* Mobiles (768px et moins) */
@media (max-width: 768px) {
  /* Topbar fixe en haut */
  #topbar-wrapper {
    position: sticky;
    top: 0;
    z-index: 9001;
    background: #fff;
  }

  /* Topbar plus compact */
  .navbar {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }

  /* Logo plus petit */
  .navbar-brand {
    margin-right: 0.5rem !important;
  }

  .navbar-brand img {
    height: 28px !important;
  }

  /* Recherche compacte mais visible */
  .zkriva-search-form {
    --zk-search-collapsed: 80px !important;
    --zk-search-expanded: 180px !important;
  }

  .zkriva-search-input {
    font-size: 13px;
    height: 32px;
  }

  /* Boutons Connexion/Inscription plus petits */
  #topbarLogin, #topbarRegister {
    font-size: 0.875rem;
    padding: 0.4rem 0.8rem !important;
  }

  /* Icône filtre recherche */
  #zkriva-search-filter {
    display: none !important;
  }

  /* Boutons notifications et avatar plus petits */
  .topbar-notif-btn,
  .topbar-profile-btn {
    padding: 0.4rem !important;
  }

  .topbar-avatar-img {
    width: 28px !important;
    height: 28px !important;
  }

  /* Espacement réduit */
  .ms-auto.d-flex {
    gap: 0.5rem !important;
  }
}

/* Très petits mobiles (576px et moins) */
@media (max-width: 576px) {
  /* Masque le texte de recherche, garde juste l'icône */
  .zkriva-search-form {
    width: 40px !important;
    min-width: 40px;
  }

  .zkriva-search-form:focus-within,
  .zkriva-search-form.is-open {
    width: calc(100vw - 160px) !important;
  }

  .zkriva-search-input {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }

  /* Masque le séparateur et le filtre sur très petits écrans */
  .zks-sep,
  #zkriva-search-filter {
    display: none !important;
  }

  /* Cache le badge de notifications */
  .topbar-notif-badge {
    font-size: 0.3em !important;
  }

  /* Hamburger menu plus grand et visible */
  #mobileMenuToggle {
    font-size: 1.8rem !important;
  }
}

/* Mode paysage mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .navbar-menu-items {
    max-height: 80vh;
  }
}

/* ============================================================================
   DARK THEME SUPPORT
   ============================================================================ */

[data-theme="dark"] .nav-link {
  color: #e5e5e5;
}

[data-theme="dark"] .nav-link:hover {
  background-color: rgba(242, 209, 35, 0.15);
  color: #fff;
}

[data-theme="dark"] .btn-login {
  color: #e5e5e5;
}

[data-theme="dark"] .btn-login:hover {
  background-color: rgba(242, 209, 35, 0.15);
  color: #fff;
}

[data-theme="dark"] .dropdown .dropdown-menu,
[data-theme="dark"] .compiler-dropdown,
[data-theme="dark"] .project-dropdown,
[data-theme="dark"] .publier-dropdown {
  background: #1a1a1a;
  border-color: #2d2d2d;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .dropdown-item-box,
[data-theme="dark"] .project-item,
[data-theme="dark"] .publier-item {
  color: #e5e5e5;
}

[data-theme="dark"] .dropdown-item-box:hover,
[data-theme="dark"] .project-item:hover,
[data-theme="dark"] .publier-item:hover {
  background-color: rgba(242, 209, 35, 0.15);
  color: #fff;
}

[data-theme="dark"] .separator-line {
  background-color: #333;
}

[data-theme="dark"] .zk4-badge {
  background: #262626;
  border-color: #444;
}

[data-theme="dark"] .zk-sb-footer {
  background: #1a1a1a;
  box-shadow: 0 -0.125rem 0.25rem rgba(0,0,0,.3) !important;
}

[data-theme="dark"] .element-title-icon {
  background: #374151;
  color: #9ca3af;
}

[data-theme="dark"] .element-title-display:hover .element-title-icon {
  background: #4b5563;
  color: #d1d5db;
}

[data-theme="dark"] .element-title-label {
  color: #9ca3af;
}

[data-theme="dark"] .element-title-display:hover .element-title-label {
  color: #d1d5db;
}

[data-theme="dark"] .element-title-breadcrumb {
  color: #6b7280;
}

[data-theme="dark"] .element-title-icon::after {
  border-color: #1f2937;
}

[data-theme="dark"] .zkriva-search-input {
  background: #262626;
  border-color: #333;
  color: #e5e5e5;
}

[data-theme="dark"] .zkriva-search-suggest {
  background: #1a1a1a;
  border-color: #2d2d2d;
  box-shadow: 0 10px 24px rgba(0,0,0,.5);
}

[data-theme="dark"] .zks-section-title {
  color: #9aa4af;
}

[data-theme="dark"] .zks-item:hover {
  background: rgba(242, 209, 35, 0.16);
}

[data-theme="dark"] .zks-text {
  color: #e9edf3;
}

[data-theme="dark"] .zks-user-item:hover {
  background: rgba(242, 209, 35, 0.16);
}

[data-theme="dark"] .zks-user-name {
  color: #e9edf3;
}

[data-theme="dark"] .zks-user-username {
  color: #9aa4af;
}

[data-theme="dark"] .zks-empty {
  color: #6c757d;
}

[data-theme="dark"] .zks-sep {
  background: #2c333b;
}

[data-theme="dark"] .zks-left-btn {
  color: #a7b0ba;
}

[data-theme="dark"] .zks-left-btn:hover {
  color: #cbd3db;
}

[data-theme="dark"] #zkriva-search-clear i,
[data-theme="dark"] #zkriva-search-filter i {
  color: #9ca3af;
}

[data-theme="dark"] #zkriva-search-clear:hover i,
[data-theme="dark"] #zkriva-search-filter:hover i {
  color: #e5e5e5;
}

[data-theme="dark"] .form-control {
  background-color: #1a1a1a;
  border-color: #333;
  color: #e5e5e5;
}

[data-theme="dark"] .form-control:focus {
  background-color: #1a1a1a !important;
  border-color: rgba(242, 209, 35, 0.5) !important;
  color: #e5e5e5;
}

[data-theme="dark"] .navbar-collapse {
  background: #1a1a1a;
  border-top-color: #2d2d2d;
}

[data-theme="dark"] .navbar-collapse .dropdown-menu {
  border-color: #333;
}

[data-theme="dark"] #topbar-wrapper {
  background: #1a1a1a;
}

[data-theme="dark"] .mobile-search-input-wrapper {
  background: #262626;
}

[data-theme="dark"] .mobile-search-input {
  color: #e5e5e5;
}

[data-theme="dark"] .mobile-search-suggestions {
  background: #1a1a1a;
}

[data-theme="dark"] .zk-net-dot {
  border-color: #1a1a1a;
}

[data-theme="dark"] .topbar-avatar-img {
  border-color: #444;
}

/* ============================================================================
   ZKRIVA THEME SUPPORT (warm tones)
   ============================================================================ */

[data-theme="zkriva"] .nav-link {
  color: #1c1917;
}

[data-theme="zkriva"] .nav-link:hover {
  background-color: rgba(210, 180, 145, 0.12);
}

[data-theme="zkriva"] .btn-login {
  color: #1c1917;
}

[data-theme="zkriva"] .btn-login:hover {
  background-color: rgba(210, 180, 145, 0.12);
}

[data-theme="zkriva"] .dropdown-item-box:hover,
[data-theme="zkriva"] .project-item:hover,
[data-theme="zkriva"] .publier-item:hover {
  background-color: rgba(210, 180, 145, 0.12);
  color: #d2b491;
}

[data-theme="zkriva"] .dropdown-item-box:hover i,
[data-theme="zkriva"] .project-item:hover i,
[data-theme="zkriva"] .publier-item:hover i {
  color: #d2b491;
}

[data-theme="zkriva"] .zkriva-search-clear-btn:hover,
[data-theme="zkriva"] .zkriva-search-clear-btn:focus {
  background: rgba(210, 180, 145, 0.12) !important;
}

[data-theme="zkriva"] .zkriva-search-clear-btn:hover .bi,
[data-theme="zkriva"] .zkriva-search-clear-btn:focus .bi {
  color: #d2b491;
}

[data-theme="zkriva"] .zks-item:hover {
  background: rgba(210, 180, 145, 0.12);
}

[data-theme="zkriva"] .zks-user-item:hover {
  background: rgba(210, 180, 145, 0.12);
}

[data-theme="zkriva"] .zks-user-name {
  color: #1c1917;
}

[data-theme="zkriva"] .zks-user-username {
  color: #78716c;
}

[data-theme="zkriva"] .zks-empty {
  color: #78716c;
}

[data-theme="zkriva"] .zk4-badge.goldpen {
  background: rgba(210, 180, 145, 0.18);
  border-color: rgba(210, 180, 145, 0.45);
}

[data-theme="zkriva"] .zk4-badge.goldpen i {
  color: #d2b491;
}

[data-theme="zkriva"] .mobile-search-icon {
  color: #d2b491;
}

[data-theme="zkriva"] .mobile-search-clear:hover {
  color: #d2b491;
}

/* ============================================================================
   LILIA THEME - Topbar
   ============================================================================ */

[data-theme="lilia"] .dropdown-item-box:hover,
[data-theme="lilia"] .project-item:hover,
[data-theme="lilia"] .publier-item:hover {
  background-color: rgba(212, 114, 156, 0.12);
  color: #c45d8a;
}

[data-theme="lilia"] .dropdown-item-box:hover i,
[data-theme="lilia"] .project-item:hover i,
[data-theme="lilia"] .publier-item:hover i {
  color: #c45d8a;
}

[data-theme="lilia"] .dropdown-item-box:hover .fw-semibold {
  color: #c45d8a;
}

[data-theme="lilia"] .separator-line {
  background-color: #f0dce4;
}

[data-theme="lilia"] .correction-dropdown .dropdown-item-box:hover {
  background-color: rgba(212, 114, 156, 0.12);
}

[data-theme="lilia"] .correction-dropdown .dropdown-item-box:hover .fw-semibold {
  color: #c45d8a;
}

[data-theme="lilia"] .correction-dropdown .dropdown-item-box i {
  color: #8b6b78;
}

[data-theme="lilia"] .correction-dropdown .dropdown-item-box:hover i {
  color: #c45d8a;
}

[data-theme="lilia"] .zkriva-search-clear-btn:hover,
[data-theme="lilia"] .zkriva-search-clear-btn:focus {
  background: rgba(212, 114, 156, 0.12) !important;
}

[data-theme="lilia"] .zkriva-search-clear-btn:hover .bi,
[data-theme="lilia"] .zkriva-search-clear-btn:focus .bi {
  color: #c45d8a;
}

[data-theme="lilia"] .zks-item:hover {
  background: rgba(212, 114, 156, 0.12);
}

[data-theme="lilia"] .zks-user-item:hover {
  background: rgba(212, 114, 156, 0.12);
}

[data-theme="lilia"] .zks-user-name {
  color: #3d2732;
}

[data-theme="lilia"] .zks-user-username {
  color: #8b6b78;
}

[data-theme="lilia"] .zks-empty {
  color: #8b6b78;
}

[data-theme="lilia"] .zk4-badge.goldpen {
  background: rgba(212, 114, 156, 0.18);
  border-color: rgba(212, 114, 156, 0.45);
}

[data-theme="lilia"] .zk4-badge.goldpen i {
  color: #d4729c;
}

[data-theme="lilia"] .mobile-search-icon {
  color: #d4729c;
}

[data-theme="lilia"] .mobile-search-clear:hover {
  color: #d4729c;
}

[data-theme="lilia"] .btn-login:hover {
  background-color: rgba(212, 114, 156, 0.12);
}

/* ============================================================================
   NATURE THEME - Topbar
   ============================================================================ */

[data-theme="nature"] .topbar-avatar-link .topbar-avatar-card {
  border-color: #005c45;
  box-shadow: 0 2px 8px rgba(0, 92, 69, 0.25);
}

[data-theme="nature"] .topbar-avatar-link:hover .topbar-avatar-card {
  border-color: #007a5c;
  box-shadow: 0 4px 16px rgba(0, 92, 69, 0.4);
}

[data-theme="nature"] .topbar-username-link:hover {
  color: #005c45;
}

[data-theme="nature"] .dropdown-item-box:hover,
[data-theme="nature"] .project-item:hover,
[data-theme="nature"] .publier-item:hover {
  background-color: rgba(0, 92, 69, 0.12);
  color: #007a5c;
}

[data-theme="nature"] .dropdown-item-box:hover i,
[data-theme="nature"] .project-item:hover i,
[data-theme="nature"] .publier-item:hover i {
  color: #007a5c;
}

[data-theme="nature"] .dropdown-item-box:hover .fw-semibold {
  color: #007a5c;
}

[data-theme="nature"] .separator-line {
  background-color: #a8e6cf;
}

[data-theme="nature"] .correction-dropdown .dropdown-item-box:hover {
  background-color: rgba(0, 92, 69, 0.12);
}

[data-theme="nature"] .correction-dropdown .dropdown-item-box:hover .fw-semibold {
  color: #007a5c;
}

[data-theme="nature"] .correction-dropdown .dropdown-item-box i {
  color: #2d8a6e;
}

[data-theme="nature"] .correction-dropdown .dropdown-item-box:hover i {
  color: #007a5c;
}

[data-theme="nature"] .zkriva-search-clear-btn:hover,
[data-theme="nature"] .zkriva-search-clear-btn:focus {
  background: rgba(0, 92, 69, 0.12) !important;
}

[data-theme="nature"] .zkriva-search-clear-btn:hover .bi,
[data-theme="nature"] .zkriva-search-clear-btn:focus .bi {
  color: #007a5c;
}

[data-theme="nature"] .zks-item:hover {
  background: rgba(0, 92, 69, 0.12);
}

[data-theme="nature"] .zks-user-item:hover {
  background: rgba(0, 92, 69, 0.12);
}

[data-theme="nature"] .zks-user-name {
  color: #003d2e;
}

[data-theme="nature"] .zks-user-username {
  color: #2d8a6e;
}

[data-theme="nature"] .zks-empty {
  color: #2d8a6e;
}

[data-theme="nature"] .zk4-badge.goldpen {
  background: rgba(0, 92, 69, 0.18);
  border-color: rgba(0, 92, 69, 0.45);
}

[data-theme="nature"] .zk4-badge.goldpen i {
  color: #005c45;
}

[data-theme="nature"] .mobile-search-icon {
  color: #005c45;
}

[data-theme="nature"] .mobile-search-clear:hover {
  color: #005c45;
}

[data-theme="nature"] .btn-login:hover {
  background-color: rgba(0, 92, 69, 0.12);
}

/* ============================================================================
   THEME SELECTOR - User Sidebar
   ============================================================================ */

.theme-selector {
  margin-bottom: 0.5rem;
}

.theme-cards {
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.theme-card {
  flex: 1;
  background: transparent;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  min-height: 80px;
}

.theme-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  border-color: #9ca3af;
}

.theme-card:active {
  transform: translateY(-2px);
}

.theme-card.active {
  border-color: var(--zk-yellow);
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.theme-card-preview {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.theme-card:hover .theme-card-preview {
  transform: scale(1.05);
}

.theme-preview-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-bottom: 4px;
}

.theme-preview-line {
  height: 4px;
  border-radius: 2px;
  width: 100%;
}

.theme-preview-line.short {
  width: 60%;
}

/* Light Theme Preview */
.theme-preview-light {
  background: #ffffff;
}

.theme-preview-light .theme-preview-dot {
  background: #000000;
}

.theme-preview-light .theme-preview-line {
  background: #d1d5db;
}

/* Light Theme - Active State */
.theme-card[data-theme="light"].active {
  border-color: var(--zk-yellow);
  box-shadow: 0 4px 16px rgba(242, 209, 35, 0.3);
}

.theme-card[data-theme="light"].active .theme-card-check {
  color: var(--zk-yellow);
}

/* Dark Theme Preview */
.theme-preview-dark {
  background: #1e293b;
}

.theme-preview-dark .theme-preview-dot {
  background: var(--zk-yellow);
}

.theme-preview-dark .theme-preview-line {
  background: #475569;
}

/* Zkriva Theme Preview */
.theme-preview-zkriva {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.theme-preview-zkriva .theme-preview-dot {
  background: #d2b491;
}

.theme-preview-zkriva .theme-preview-line {
  background: var(--zk-yellow);
}

/* Check Icon */
.theme-card-check {
  position: absolute;
  top: 6px;
  right: 6px;
  color: var(--zk-yellow);
  font-size: 16px;
  opacity: 0;
  transition: all 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.theme-card.active .theme-card-check {
  opacity: 1;
  transform: scale(1.1);
}

/* Dark Theme Adjustments */
html[data-theme="dark"] .theme-card {
  border-color: #334155;
}

html[data-theme="dark"] .theme-card:hover {
  border-color: #64748b;
  box-shadow: 0 8px 20px rgba(242, 209, 35, 0.15);
}

html[data-theme="dark"] .theme-card.active {
  border-color: var(--zk-yellow);
  box-shadow: 0 4px 16px rgba(242, 209, 35, 0.3);
}

html[data-theme="dark"] .theme-card-check {
  color: var(--zk-yellow);
}

/* Zkriva Theme Adjustments */
html[data-theme="zkriva"] .theme-card {
  border-color: #e7e5e4;
}

html[data-theme="zkriva"] .theme-card:hover {
  border-color: #d2b491;
  box-shadow: 0 8px 20px rgba(210, 180, 145, 0.15);
}

html[data-theme="zkriva"] .theme-card.active {
  border-color: #d2b491;
  box-shadow: 0 4px 16px rgba(210, 180, 145, 0.3);
}

html[data-theme="zkriva"] .theme-card-check {
  color: #d2b491;
}

/* Theme More Link */
.theme-more-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  padding: 8px 12px;
  font-size: 12px;
  color: #6b7280;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.theme-more-link:hover {
  color: #374151;
  background: rgba(0, 0, 0, 0.04);
}

.theme-more-link i {
  font-size: 11px;
  transition: transform 0.2s ease;
}

.theme-more-link:hover i {
  transform: translateX(3px);
}

/* Dark theme */
html[data-theme="dark"] .theme-more-link {
  color: #94a3b8;
}

html[data-theme="dark"] .theme-more-link:hover {
  color: var(--zk-yellow);
  background: rgba(242, 209, 35, 0.08);
}

/* Zkriva theme */
html[data-theme="zkriva"] .theme-more-link {
  color: #78716c;
}

html[data-theme="zkriva"] .theme-more-link:hover {
  color: #d2b491;
  background: rgba(210, 180, 145, 0.08);
}

/* Lilia theme */
html[data-theme="lilia"] .theme-more-link {
  color: #8b6b78;
}

html[data-theme="lilia"] .theme-more-link:hover {
  color: #d4729c;
  background: rgba(212, 114, 156, 0.08);
}

/* Nature theme */
html[data-theme="nature"] .theme-more-link {
  color: #2d8a6e;
}

html[data-theme="nature"] .theme-more-link:hover {
  color: #005c45;
  background: rgba(0, 92, 69, 0.08);
}

/* ============================================================================
   MODAL CENTRE D'AIDE
   ============================================================================ */

.help-center-modal {
  border-radius: 16px;
  overflow: hidden;
  border: none;
}

.help-center-header {
  background: linear-gradient(135deg, var(--zk-yellow) 0%, var(--zk-yellow-dark, var(--zk-yellow)) 100%);
  border: none;
  padding: 1.5rem;
}

.help-center-header-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.help-center-icon {
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.help-center-icon i {
  font-size: 1.5rem;
  color: white;
}

.help-center-header-text .modal-title {
  color: white;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.help-center-subtitle {
  color: rgba(255,255,255,0.85);
  font-size: 0.875rem;
  margin: 0.25rem 0 0;
}

.help-center-header .btn-close {
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.help-center-header .btn-close:hover {
  opacity: 1;
}

/* Grille des catégories */
.help-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.help-category-card {
  cursor: pointer;
}

.help-category-card input {
  display: none;
}

.help-category-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: #f8fafc;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  transition: all 0.2s ease;
  text-align: center;
}

.help-category-content i {
  font-size: 1.5rem;
  color: #6b7280;
}

.help-category-content span {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #374151;
}

.help-category-card input:checked + .help-category-content {
  background: #eff6ff;
  border-color: var(--zk-yellow);
}

.help-category-card input:checked + .help-category-content i {
  color: var(--zk-yellow);
}

.help-category-card:hover .help-category-content {
  border-color: #93c5fd;
  background: #f0f9ff;
}

/* Section formulaire */
.help-form-section {
  border-top: 1px solid #e5e7eb;
  padding-top: 1.5rem;
}

/* Priorité */
.help-priority-row {
  margin-bottom: 1rem;
}

.help-priority-options {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.help-priority-option {
  cursor: pointer;
}

.help-priority-option input {
  display: none;
}

.priority-badge {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 500;
  border: 2px solid transparent;
  transition: all 0.2s;
}

.priority-low {
  background: #e8f5f0;
  color: #004a38;
  border-color: #a8e6cf;
}

.priority-normal {
  background: #eff6ff;
  color: #1e40af;
  border-color: #bfdbfe;
}

.priority-high {
  background: #fef3c7;
  color: #92400e;
  border-color: #fcd34d;
}

.priority-urgent {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

.help-priority-option input:checked + .priority-badge {
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

/* Zone pièces jointes */
.help-attachments-zone {
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 120px;
}

.help-attachments-zone:hover,
.help-attachments-zone.dragover {
  border-color: var(--zk-yellow);
  background: #eff6ff;
}

.help-attachments-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.help-attachments-placeholder i {
  font-size: 2rem;
  color: #9ca3af;
}

.help-attachments-placeholder span {
  color: #6b7280;
  font-size: 0.875rem;
}

.help-attachments-placeholder small {
  color: #9ca3af;
  font-size: 0.75rem;
}

.help-attachments-preview {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.attachment-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.attachment-item i {
  font-size: 1.25rem;
  color: #6b7280;
}

.attachment-name {
  flex: 1;
  font-size: 0.875rem;
  color: #374151;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-size {
  font-size: 0.75rem;
  color: #9ca3af;
}

.attachment-remove {
  background: none;
  border: none;
  color: #ef4444;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Footer */
.help-center-footer {
  background: #f8fafc;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}

.help-footer-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6b7280;
  font-size: 0.8125rem;
}

.help-footer-info i {
  color: var(--zk-yellow);
}

.help-footer-actions {
  display: flex;
  gap: 0.75rem;
}

/* Responsive */
@media (max-width: 576px) {
  .help-category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .help-center-footer {
    flex-direction: column;
    gap: 1rem;
  }

  .help-footer-actions {
    width: 100%;
  }

  .help-footer-actions .btn {
    flex: 1;
  }
}

/* ============================================================================
   DARK THEME - Centre d'aide
   ============================================================================ */

html[data-theme="dark"] .help-center-modal {
  background: #1a1a1a;
}

html[data-theme="dark"] .help-center-header {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
}

html[data-theme="dark"] .help-category-content {
  background: #262626;
  border-color: #404040;
}

html[data-theme="dark"] .help-category-content span {
  color: #e5e5e5;
}

html[data-theme="dark"] .help-category-card input:checked + .help-category-content {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--zk-yellow);
}

html[data-theme="dark"] .help-category-card:hover .help-category-content {
  background: #333;
  border-color: #525252;
}

html[data-theme="dark"] .help-form-section {
  border-color: #404040;
}

html[data-theme="dark"] .priority-low {
  background: rgba(22, 163, 74, 0.15);
  border-color: rgba(22, 163, 74, 0.3);
}

html[data-theme="dark"] .priority-normal {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
}

html[data-theme="dark"] .priority-high {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.3);
}

html[data-theme="dark"] .priority-urgent {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
}

html[data-theme="dark"] .help-attachments-zone {
  border-color: #404040;
  background: #1f1f1f;
}

html[data-theme="dark"] .help-attachments-zone:hover,
html[data-theme="dark"] .help-attachments-zone.dragover {
  border-color: var(--zk-yellow);
  background: rgba(59, 130, 246, 0.1);
}

html[data-theme="dark"] .attachment-item {
  background: #262626;
  border-color: #404040;
}

html[data-theme="dark"] .attachment-name {
  color: #e5e5e5;
}

html[data-theme="dark"] .help-center-footer {
  background: #1f1f1f;
  border-color: #404040;
}

/* ============================================================================
   ZKRIVA THEME - Centre d'aide
   ============================================================================ */

html[data-theme="zkriva"] .help-center-header {
  background: linear-gradient(135deg, #d2b491 0%, #b89a73 100%);
}

html[data-theme="zkriva"] .help-category-content {
  background: #faf8f5;
  border-color: #e7e5e4;
}

html[data-theme="zkriva"] .help-category-card input:checked + .help-category-content {
  background: #fef7ed;
  border-color: #d2b491;
}

html[data-theme="zkriva"] .help-category-card input:checked + .help-category-content i {
  color: #d2b491;
}

html[data-theme="zkriva"] .help-category-card:hover .help-category-content {
  background: #fefce8;
  border-color: #fcd34d;
}

html[data-theme="zkriva"] .help-form-section {
  border-color: #e7e5e4;
}

html[data-theme="zkriva"] .help-attachments-zone {
  border-color: #d6d3d1;
}

html[data-theme="zkriva"] .help-attachments-zone:hover,
html[data-theme="zkriva"] .help-attachments-zone.dragover {
  border-color: #d2b491;
  background: #fef7ed;
}

html[data-theme="zkriva"] .help-footer-info i {
  color: #d2b491;
}

html[data-theme="zkriva"] .help-center-footer {
  background: #faf8f5;
  border-color: #e7e5e4;
}

/* ============================================================================
   CSP-COMPATIBLE STYLES (migrated from inline styles)
   ============================================================================ */

/* Project dropdown layout */
.project-dropdown {
  min-width: 600px;
  width: 600px;
}

.project-dropdown > .row {
  display: flex !important;
  flex-wrap: nowrap !important;
}

.project-dropdown > .row > .col-6 {
  flex: 0 0 50% !important;
  max-width: 50% !important;
  width: 50% !important;
}

/* Mode menu popup */
#modeMenu {
  position: fixed;
  z-index: 99999;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  min-width: 280px;
}

/* Mode menu arrow */
#modeMenuArrow {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #fff;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.1));
}

/* Report Bug Screenshot Zone */
.report-screenshot-zone {
  position: relative;
  width: 100px;
  height: 100px;
  border: 2px dashed var(--bs-border-color, #dee2e6);
  border-radius: 12px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.2s ease;
  background: var(--bs-tertiary-bg, #f8f9fa);
}

.report-screenshot-zone:hover {
  border-color: var(--bs-primary, #0d6efd);
  background: var(--bs-primary-bg-subtle, #e7f1ff);
}

.report-screenshot-zone.has-image {
  border-style: solid;
  border-color: var(--bs-primary, #0d6efd);
}

.report-screenshot-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-secondary-color, #6c757d);
  font-size: 2rem;
  transition: all 0.2s ease;
}

.report-screenshot-zone:hover .report-screenshot-placeholder {
  color: var(--bs-primary, #0d6efd);
  transform: scale(1.1);
}

.report-screenshot-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.report-screenshot-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: rgba(220, 53, 69, 0.9);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.report-screenshot-zone:hover .report-screenshot-remove:not(.d-none) {
  opacity: 1;
}

.report-screenshot-remove:hover {
  background: #dc3545;
}

/* ============================================================================
   MOBILE MENU SLIDE-IN
   Menu mobile adapté pour remplacer le collapse Bootstrap
   ============================================================================ */

/* Overlay backdrop */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  -webkit-transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
  z-index: 1040;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Sidebar container */
.mobile-menu-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 320px;
  max-width: calc(100vw - 56px);
  background: #fff;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
  -webkit-transform: translateX(-100%);
  transform: translateX(-100%);
  -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1050;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  overflow: hidden;
}

.mobile-menu-sidebar.active {
  -webkit-transform: translateX(0);
  transform: translateX(0);
}

/* Très petits écrans: plein écran */
@media (max-width: 379px) {
  .mobile-menu-sidebar {
    width: 100vw;
    max-width: 100vw;
  }
}

/* Desktop: cacher le menu mobile */
@media (min-width: 992px) {
  .mobile-menu-overlay,
  .mobile-menu-sidebar {
    display: none !important;
  }
}

/* Header */
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.mobile-menu-logo {
  display: flex;
  align-items: center;
}

.mobile-menu-logo img {
  height: 28px;
  width: auto;
}

.mobile-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: #f3f4f6;
  border-radius: 10px;
  color: #6b7280;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-menu-close:hover {
  background: #e5e7eb;
  color: #374151;
}

.mobile-menu-close:active {
  transform: scale(0.95);
}

/* Content scrollable */
.mobile-menu-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 12px;
  -webkit-overflow-scrolling: touch;
}

/* Mode indicator */
.mobile-menu-mode-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  margin-bottom: 12px;
  background: var(--zk-yellow-soft, rgba(242, 209, 35, 0.12));
  border: 1px solid var(--zk-yellow-border, rgba(242, 209, 35, 0.3));
  border-radius: 10px;
  color: #374151;
  font-weight: 600;
  font-size: 14px;
}

.mobile-menu-mode-indicator i {
  color: var(--zk-yellow, #f2d123);
  font-size: 18px;
}

/* Sections */
.mobile-menu-section {
  display: none;
}

.mobile-menu-section.active {
  display: block;
}

/* Accordéons */
.mobile-menu-accordion {
  margin-bottom: 4px;
}

.mobile-menu-accordion-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: none;
  background: transparent;
  border-radius: 10px;
  color: #374151;
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s ease;
  min-height: 48px;
}

.mobile-menu-accordion-trigger:hover {
  background: #f3f4f6;
}

.mobile-menu-accordion-trigger:active {
  background: #e5e7eb;
}

.mobile-menu-accordion-trigger i:first-child {
  font-size: 18px;
  color: #6b7280;
  width: 24px;
  text-align: center;
}

.mobile-menu-accordion-trigger span {
  flex: 1;
}

.mobile-menu-accordion-icon {
  font-size: 14px;
  color: #9ca3af;
  transition: transform 0.25s ease;
}

.mobile-menu-accordion-trigger[aria-expanded="true"] .mobile-menu-accordion-icon {
  transform: rotate(180deg);
}

/* Accordéon content */
.mobile-menu-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding-left: 20px;
}

.mobile-menu-accordion-trigger[aria-expanded="true"] + .mobile-menu-accordion-content {
  max-height: 300px;
}

/* Menu items */
.mobile-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  color: #4b5563;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  transition: all 0.2s ease;
  min-height: 48px;
}

.mobile-menu-item:hover {
  background: rgba(242, 209, 35, 0.12);
  color: #374151;
  text-decoration: none;
}

.mobile-menu-item:active {
  background: rgba(242, 209, 35, 0.2);
}

.mobile-menu-item i {
  font-size: 16px;
  color: #9ca3af;
  width: 20px;
  text-align: center;
}

.mobile-menu-item:hover i {
  color: var(--zk-yellow, #f2d123);
}

/* Footer */
.mobile-menu-footer {
  padding: 12px 20px;
  border-top: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.mobile-menu-version {
  font-size: 12px;
  color: #9ca3af;
}

/* ============================================================================
   MOBILE MENU - DARK THEME
   ============================================================================ */
[data-theme="dark"] .mobile-menu-overlay {
  background: rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] .mobile-menu-sidebar {
  background: #1f2937;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .mobile-menu-header {
  border-color: #374151;
}

[data-theme="dark"] .mobile-menu-close {
  background: #374151;
  color: #9ca3af;
}

[data-theme="dark"] .mobile-menu-close:hover {
  background: #4b5563;
  color: #e5e7eb;
}

[data-theme="dark"] .mobile-menu-mode-indicator {
  background: rgba(242, 209, 35, 0.1);
  border-color: rgba(242, 209, 35, 0.2);
  color: #e5e7eb;
}

[data-theme="dark"] .mobile-menu-accordion-trigger {
  color: #e5e7eb;
}

[data-theme="dark"] .mobile-menu-accordion-trigger:hover {
  background: #374151;
}

[data-theme="dark"] .mobile-menu-accordion-trigger i:first-child {
  color: #9ca3af;
}

[data-theme="dark"] .mobile-menu-item {
  color: #d1d5db;
}

[data-theme="dark"] .mobile-menu-item:hover {
  background: rgba(242, 209, 35, 0.15);
  color: #f3f4f6;
}

[data-theme="dark"] .mobile-menu-item i {
  color: #6b7280;
}

[data-theme="dark"] .mobile-menu-footer {
  border-color: #374151;
}

[data-theme="dark"] .mobile-menu-version {
  color: #6b7280;
}

/* ============================================================================
   MOBILE MENU - ZKRIVA THEME
   ============================================================================ */
[data-theme="zkriva"] .mobile-menu-sidebar {
  background: #faf9f7;
}

[data-theme="zkriva"] .mobile-menu-header {
  border-color: #e7e5e4;
}

[data-theme="zkriva"] .mobile-menu-close {
  background: #f5f5f4;
  color: #78716c;
}

[data-theme="zkriva"] .mobile-menu-close:hover {
  background: #e7e5e4;
  color: #57534e;
}

[data-theme="zkriva"] .mobile-menu-mode-indicator {
  background: rgba(210, 180, 145, 0.15);
  border-color: rgba(210, 180, 145, 0.3);
  color: #44403c;
}

[data-theme="zkriva"] .mobile-menu-mode-indicator i {
  color: #d2b491;
}

[data-theme="zkriva"] .mobile-menu-accordion-trigger {
  color: #44403c;
}

[data-theme="zkriva"] .mobile-menu-accordion-trigger:hover {
  background: #f5f5f4;
}

[data-theme="zkriva"] .mobile-menu-accordion-trigger i:first-child {
  color: #78716c;
}

[data-theme="zkriva"] .mobile-menu-item {
  color: #57534e;
}

[data-theme="zkriva"] .mobile-menu-item:hover {
  background: rgba(210, 180, 145, 0.15);
  color: #44403c;
}

[data-theme="zkriva"] .mobile-menu-item i {
  color: #a8a29e;
}

[data-theme="zkriva"] .mobile-menu-item:hover i {
  color: #d2b491;
}

[data-theme="zkriva"] .mobile-menu-footer {
  border-color: #e7e5e4;
}

/* ============================================================================
   MOBILE MENU - LILIA THEME
   ============================================================================ */
[data-theme="lilia"] .mobile-menu-sidebar {
  background: #fdf2f8;
}

[data-theme="lilia"] .mobile-menu-header {
  border-color: #fce7f3;
}

[data-theme="lilia"] .mobile-menu-close {
  background: #fce7f3;
  color: #9d174d;
}

[data-theme="lilia"] .mobile-menu-close:hover {
  background: #fbcfe8;
  color: #831843;
}

[data-theme="lilia"] .mobile-menu-mode-indicator {
  background: rgba(212, 114, 156, 0.12);
  border-color: rgba(212, 114, 156, 0.3);
  color: #831843;
}

[data-theme="lilia"] .mobile-menu-mode-indicator i {
  color: #d4729c;
}

[data-theme="lilia"] .mobile-menu-accordion-trigger {
  color: #831843;
}

[data-theme="lilia"] .mobile-menu-accordion-trigger:hover {
  background: #fce7f3;
}

[data-theme="lilia"] .mobile-menu-accordion-trigger i:first-child {
  color: #be185d;
}

[data-theme="lilia"] .mobile-menu-item {
  color: #9d174d;
}

[data-theme="lilia"] .mobile-menu-item:hover {
  background: rgba(212, 114, 156, 0.15);
  color: #831843;
}

[data-theme="lilia"] .mobile-menu-item i {
  color: #f472b6;
}

[data-theme="lilia"] .mobile-menu-item:hover i {
  color: #d4729c;
}

[data-theme="lilia"] .mobile-menu-footer {
  border-color: #fce7f3;
}

/* ============================================================================
   MOBILE MENU - NATURE THEME
   ============================================================================ */
[data-theme="nature"] .mobile-menu-sidebar {
  background: #f0fdf4;
}

[data-theme="nature"] .mobile-menu-header {
  border-color: #dcfce7;
}

[data-theme="nature"] .mobile-menu-close {
  background: #dcfce7;
  color: #166534;
}

[data-theme="nature"] .mobile-menu-close:hover {
  background: #bbf7d0;
  color: #14532d;
}

[data-theme="nature"] .mobile-menu-mode-indicator {
  background: rgba(0, 92, 69, 0.1);
  border-color: rgba(0, 92, 69, 0.25);
  color: #14532d;
}

[data-theme="nature"] .mobile-menu-mode-indicator i {
  color: #005c45;
}

[data-theme="nature"] .mobile-menu-accordion-trigger {
  color: #14532d;
}

[data-theme="nature"] .mobile-menu-accordion-trigger:hover {
  background: #dcfce7;
}

[data-theme="nature"] .mobile-menu-accordion-trigger i:first-child {
  color: #166534;
}

[data-theme="nature"] .mobile-menu-item {
  color: #166534;
}

[data-theme="nature"] .mobile-menu-item:hover {
  background: rgba(0, 92, 69, 0.12);
  color: #14532d;
}

[data-theme="nature"] .mobile-menu-item i {
  color: #22c55e;
}

[data-theme="nature"] .mobile-menu-item:hover i {
  color: #005c45;
}

[data-theme="nature"] .mobile-menu-footer {
  border-color: #dcfce7;
}

/* ============================================================================
   CLASSIFIED FILTERS DROPDOWN (style like search suggestions)
   ============================================================================ */

.zkriva-classified-filters {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: var(--zk-bg, #fff);
  border: 1px solid var(--zk-border, #e5e7eb);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(17,24,39,.12), 0 4px 8px rgba(17,24,39,.08);
  z-index: 1060;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition:
    max-height .28s cubic-bezier(.22,.61,.36,1),
    opacity .20s ease,
    transform .20s ease;
}

.zkriva-classified-filters.open {
  max-height: 280px;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Header */
.zkriva-classified-filters .zks-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--zk-border-light, #f3f4f6);
}

.zkriva-classified-filters .zks-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--zk-text-secondary, #6b7280);
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.zkriva-classified-filters .zks-close-btn {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #9ca3af;
  border-radius: 6px;
  transition: all .15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zkriva-classified-filters .zks-close-btn:hover {
  background: rgba(0,0,0,.05);
  color: var(--zk-text, #374151);
}

/* Filters Grid - 2 lignes x 2 colonnes */
.zks-filters-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 12px;
  padding: 12px 14px;
}

.zks-filter-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.zks-filter-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--zk-text-muted, #9ca3af);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* Select avec chevron personnalisé */
.zks-filter-item .form-select {
  font-size: 13px;
  padding: 7px 32px 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--zk-border, #e5e7eb);
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%236b7280' d='M4.646 6.646a.5.5 0 0 1 .708 0L8 9.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
  transition: all .15s;
  color: var(--zk-text, #374151);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.zks-filter-item .form-select:hover {
  border-color: var(--zk-border-hover, #d1d5db);
}

.zks-filter-item .form-select:focus {
  border-color: var(--zk-primary, #667eea);
  box-shadow: 0 0 0 3px rgba(102,126,234,.1);
  outline: none;
}

/* Actions */
.zks-filters-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid var(--zk-border-light, #f3f4f6);
}

.zks-filters-actions .btn {
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 500;
}

/* Dark Theme */
[data-theme="dark"] .zkriva-classified-filters {
  background: #1a1a1a;
  border-color: #2d2d2d;
  box-shadow: 0 10px 24px rgba(0,0,0,.5);
}

[data-theme="dark"] .zkriva-classified-filters .zks-header {
  border-color: #2d2d2d;
}

[data-theme="dark"] .zkriva-classified-filters .zks-title {
  color: #a3a3a3;
}

[data-theme="dark"] .zkriva-classified-filters .zks-close-btn:hover {
  background: rgba(255,255,255,.08);
  color: #e5e5e5;
}

[data-theme="dark"] .zks-filter-label {
  color: #737373;
}

[data-theme="dark"] .zks-filter-item .form-select {
  background-color: transparent;
  border-color: #404040;
  color: #e5e5e5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%23a3a3a3' d='M4.646 6.646a.5.5 0 0 1 .708 0L8 9.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

[data-theme="dark"] .zks-filter-item .form-select:hover {
  border-color: #525252;
}

[data-theme="dark"] .zks-filter-item .form-select:focus {
  border-color: #667eea;
  background-color: rgba(255,255,255,.03);
}

[data-theme="dark"] .zks-filters-actions {
  border-color: #2d2d2d;
}

/* Zkriva Theme */
[data-theme="zkriva"] .zkriva-classified-filters {
  background: var(--zk-bg-light, #faf9f7);
  border-color: #e7e5e4;
}

[data-theme="zkriva"] .zkriva-classified-filters .zks-header {
  border-color: #e7e5e4;
}

[data-theme="zkriva"] .zkriva-classified-filters .zks-title {
  color: #78716c;
}

[data-theme="zkriva"] .zks-filter-label {
  color: #a8a29e;
}

[data-theme="zkriva"] .zks-filter-item .form-select {
  border-color: #e7e5e4;
  color: #1c1917;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%2378716c' d='M4.646 6.646a.5.5 0 0 1 .708 0L8 9.293l2.646-2.647a.5.5 0 0 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

[data-theme="zkriva"] .zks-filter-item .form-select:focus {
  border-color: #d2b491;
  box-shadow: 0 0 0 3px rgba(210,180,145,.15);
}

[data-theme="zkriva"] .zks-filters-actions {
  border-color: #e7e5e4;
}
