.celinedesign_validationbat-upload {
  display: none;
}

.celinedesign_validationbat-enregistrements {
  margin-top: .75rem;
}

pdfjs-viewer-element {
  aspect-ratio: 29.7 / 21;
}

.nav {
  margin-bottom: -2px;
}

.pdf-viewer-tabs {
  margin-bottom: 2rem;
}

.pdf-viewer-tabs .nav-tabs {
  border-bottom: 2px solid #e9ecef;
}

.pdf-viewer-tabs .nav-link {
  border: none;
  border-bottom: 2px solid transparent;
  color: #6c757d;
  font-weight: 500;
  padding: 1rem 1.5rem;
}

.pdf-viewer-tabs .nav-link:hover {
  border-bottom-color: #dee2e6;
  color: #495057;
}

.pdf-viewer-tabs .nav-link.active {
  border-bottom-color: #007bff;
  color: #007bff;
  background: none;
}

.pdf-viewer-tabs .nav-link i {
  margin-right: 0.5rem;
  vertical-align: middle;
}

.pdf-3d-viewer,
.pdf-2d-viewer {
  position: relative;
}

.loading-3d {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
}

#pdf-3d-iframe {
  transition: opacity 0.3s ease;
}

/* Wrapper principal avec hauteur fixe */
.feedback-wrapper {
  display: flex;
  width: 100%;
  height: auto;
  /* Hauteur fixe */
  min-height: auto;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-top: 2rem;
  transition: all 0.3s ease;
  position: relative;
  font-family: 'lato', sans-serif;
  overflow: hidden;
  /* Empêche le débordement */
}

.sidebar {
  width: 260px;
  min-width: 260px;
  /* Empêche le rétrécissement */
  max-width: 260px;
  /* Empêche l'agrandissement */
  background: #f1f5f9;
  border-right: 1px solid #d1d5db;
  transition: width 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 2rem 0 1rem;
  position: relative;
  height: 100%;
  /* Prend toute la hauteur du conteneur */
  overflow-y: auto;
  /* Scroll si nécessaire */
}

.sidebar.collapsed {
  width: 72px;
  min-width: 72px;
  max-width: 72px;
}

.sidebar .nav-tabs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0 0.5rem;
  list-style: none;
  width: 100%;
  flex-shrink: 0;
}

.sidebar .nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
  padding: 26px;
  font-size: 15px;
  font-weight: 500;
  color: #1f2937;
  border-radius: 6px;
  transition: all 0.2s ease;
  text-decoration: none;
  line-height: 1.2;
  word-break: break-word;
  width: 100%;
  height: 72px;
  min-height: 72px;
  max-height: 72px;
  /* Hauteur maximale fixe */
  box-sizing: border-box;
  flex-shrink: 0;
  /* Empêche la compression */
}

.sidebar .nav-link i {
  font-size: 24px;
  display: block;
  margin-bottom: 4px;
}

.sidebar .nav-link span {
  display: block;
  width: 100%;
  font-size: 12px;
  line-height: 1.2;
}


.sidebar .nav-link.active {
  background-color: #007b9f;
  color: #ffffff;
}

.sidebar .nav-link.active {
  background-color: #007b9f;
  color: #ffffff;
}

.sidebar.collapsed .nav-link span,
.collapsed .menu-actions,
.collapsed .nav-item:last-child {
  display: none !important;
  max-width: 42px;
}

.sidebar.collapsed .nav-link i {
  display: block !important;
  margin: 0 !important;
  font-size: 24px;
}

.sidebar.collapsed .nav-item {
  display: block !important;
}

#sidebar-toggle {
  position: absolute;
  top: 16px;
  right: 0px;
  background: #007b9f;
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  z-index: 10;
  transition: opacity 0.3s ease;
}

.collapsed+#sidebar-toggle {
  opacity: 0;
  pointer-events: none;
}

#content {
  flex-grow: 1;
  padding: 2rem 2.5rem;
  background-color: #fafafa;
  overflow-y: auto;
}

.feedback-form textarea.form-control {
  width: 100%;
  border-radius: 6px;
  border: 1px solid #d1d5db;
  padding: 0.75rem;
  font-size: 15px;
  resize: vertical;
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.2s;
}

.feedback-form textarea.form-control:focus {
  border-color: #007b9f;
  outline: none;
}

.menu-actions {
  margin-top: auto;
  padding: 2rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.menu-actions .celinedesign_validationbat-btn {
  width: 105%;
  height: 48px;
  padding: 0 1rem;
  border-radius: 30px;
  background: #f07e21;
  border: none;
  color: white;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-actions .celinedesign_validationbat-btn:hover {
  background-color: #1d93ab;
}

.menu-actions .celinedesign_validationbat-btn:active,
.menu-actions .celinedesign_validationbat-btn.active {
  background-color: #004d66;
}

.description {
  color: #4e93b4;
  background: white;
  border-radius: 5px;
  margin-bottom: 10px;
}

/* Audio Recorder UI */
.celinedesign_validationbat-controls {
  margin-top: 2rem;
  background-color: #f0f4f8;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #d0dbe5;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.celinedesign_validationbat-visualiser {
  background-color: #fff;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.celinedesign_validationbat-boutons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.celinedesign_validationbat-boutons button {
  font-size: 15px;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 6px;
}


.celinedesign_validationbat-boutons .btn-primary {
  background-color: #007b9f;
  border: none;
  color: white;
}

.celinedesign_validationbat-boutons .btn-primary:hover {
  background-color: #005f7a;
}

.celinedesign_validationbat-clip {
  display: flex;
  justify-content: center;
}

.celinedesign_validationbat-enregistrements {
  width: 100%;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 6px;
  background-color: #ffffff;
  border: 1px dashed #ccc;
  text-align: center;
  font-size: 15px;
  color: #555;
  display: flex;
  justify-content: center;
}


.celinedesign_validationbat-btn {
  border-radius: 10px;
  margin-left: 10px;
}

.celinedesign_validationbat-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.celinedesign_validationbat-modal-content {
  background: white;
  padding: 2rem;
  border-radius: 6px;
  text-align: center;
  max-width: 400px;
  width: 100%;
}

.modal-buttons {
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-around;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #ccc;
  border-top-color: #f07e21;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsive Styles */

@media (max-width: 768px) {
  .pdf-viewer-tabs .nav-link {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .pdf-viewer-tabs .nav-link i {
    display: block;
    margin: 0 0 0.25rem 0;
    font-size: 1.2rem;
  }

  .celinedesign_validationbat-modal-content {
    margin: 1rem;
    padding: 1.5rem;
  }

  .modal-buttons {
    flex-direction: column;
    gap: 7px;
    align-items: flex-end;
  }

  .modal-buttons .celinedesign_validationbat-btn {
    width: 100%;
  }
}

.celinedesign_validationbat-custom-mobile {
  display: none;
}

.celinedesign_validationbat-custom-desktop {
  display: block;
}

@media (max-width: 768px) {
  .celinedesign_validationbat-custom-mobile {
    display: flex;
  }

  .celinedesign_validationbat-custom-desktop {
    display: none;
  }
}

.mobile-banner {
  display: none;
}

/* Modifications pour la sidebar en mobile */
@media (max-width: 768px) {
  .feedback-wrapper {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    max-width: 100%;
    height: auto;
    position: static;
    border-right: none;
    border-bottom: 1px solid #d1d5db;
    padding: 1rem;
    flex-direction: column;
    /* Changé de row à column */
    flex-wrap: wrap;
    overflow-x: visible;
    /* Changé de auto à visible */
  }

  .sidebar .nav-tabs {
    flex-direction: column;
    /* Changé de row à column */
    gap: 0.5rem;
    justify-content: flex-start;
    width: 100%;
  }

  .sidebar .nav-item {
    flex: 1 1 auto;
    /* Changé pour permettre la croissance */
    width: 100%;
    /* Ajouté pour prendre toute la largeur */
  }

  .sidebar .nav-link {
    flex-direction: row;
    justify-content: flex-start;
    /* Changé de center à flex-start */
    align-items: center;
    height: auto;
    min-height: 60px;
    /* Ajouté une hauteur minimum */
    padding: 1rem;
    max-width: none;
    white-space: normal;
    /* Changé de nowrap à normal */
    text-align: left;
    /* Ajouté pour aligner le texte à gauche */
    width: 100%;
    /* Ajouté pour prendre toute la largeur */
  }

  .sidebar .nav-link i {
    margin-right: 0.75rem;
    /* Augmenté l'espacement */
    font-size: 24px;
    /* Augmenté la taille de l'icône */
    flex-shrink: 0;
    /* Empêche l'icône de rétrécir */
  }

  .sidebar .nav-link span {
    flex: 1;
    /* Permet au texte de prendre l'espace restant */
    line-height: 1.3;
    /* Améliore la lisibilité */
  }

  .menu-actions {
    flex-direction: column;
    /* Changé de row à column */
    padding: 1rem 0;
    gap: 1rem;
    /* Augmenté l'espacement */
    width: 100%;
  }

  .menu-actions .celinedesign_validationbat-btn {
    width: 100%;
    /* Assure que le bouton prend toute la largeur */
    margin: 0;
    /* Supprime les marges */
  }

  .menu-actions p {
    margin: 0;
    /* Supprime les marges du paragraphe */
    padding: 0.5rem 0;
    /* Ajoute un peu de padding */
    text-align: left;
    /* Aligne le texte à gauche */
  }

  .nav-tabs .menu-actions {
    display: block !important;
    width: 100%;
    padding: 0.5rem 1rem;
  }

  .nav-tabs .menu-actions button {
    display: block;
    width: 100%;
  }


  /* Bouton "Transmettre mes demandes" en bas sur mobile */
  .mobile-submit-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 1rem;
    background-color: #f07e21;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    margin-top: 2rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }

  .mobile-submit-button:hover {
    background-color: #e06d1a;
  }

  /* Message pour l'annotation sur mobile */
  .mobile-annotation-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
    text-align: center;
    color: #856404;
  }

  .mobile-annotation-message i {
    font-size: 48px;
    color: #f39c12;
    margin-bottom: 1rem;
    display: block;
  }

  .mobile-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #fff3cd;
    color: #856404;
    padding: 0.75rem 1rem;
    font-size: 14px;
    border-top: 1px solid #ffeeba;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.1);
  }

  .mobile-banner .banner-icon {
    font-size: 20px;
    margin-right: 0.5rem;
  }

  .mobile-banner p {
    flex: 1;
    margin: 0;
  }

  .mobile-banner .banner-close {
    background: none;
    border: none;
    font-size: 20px;
    line-height: 1;
    color: #856404;
    cursor: pointer;
    padding: 0;
  }

  /* Masquer le PDF viewer sur mobile */
  .mobile-annotation-message~pdfjs-viewer-element {
    display: none;
  }

  #content {
    padding: 1.5rem 1rem;
    /* Réduit le padding sur mobile */
  }

  #sidebar-toggle {
    display: none;
  }


}