/*
 * Additional styles for specific features
 * Tailwind CSS is imported via app/assets/tailwind/application.css
 */

/* Styles pour le bouton d'enregistrement vocal */
.speech-note-btn {
  transition: all 0.3s ease;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  position: relative;
  margin: 1rem 0;
  padding: 1rem 2rem;
  box-shadow: 
    8px 8px 16px rgba(0, 0, 0, 0.1),
    -8px -8px 16px rgba(255, 255, 255, 0.8);
}

/* Bouton navbar avec largeur fixe */
nav .speech-note-btn {
  width: 140px; /* Largeur fixe pour éviter le changement de taille */
  text-align: center;
  margin: 0;
  padding: 0.5rem 1rem;
}

/* Message de test microphone juste en-dessous de la navbar */
#mic-test-message {
  animation: slideDownFadeIn 0.5s ease-out;
  margin-top: 0.5rem;
  backdrop-filter: blur(10px);
  background: rgba(219, 234, 254, 0.95);
}

@keyframes slideDownFadeIn {
  0% { 
    opacity: 0; 
    transform: translateX(-50%) translateY(-20px) scale(0.95); 
  }
  100% { 
    opacity: 1; 
    transform: translateX(-50%) translateY(0) scale(1); 
  }
}

.speech-note-btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    10px 10px 20px rgba(0, 0, 0, 0.15),
    -10px -10px 20px rgba(255, 255, 255, 0.9);
}

.speech-note-btn:active,
.speech-note-btn.recording {
  transform: translateY(1px);
  background-color: #dc2626 !important;
  color: white !important;
  animation: pulse 1s infinite;
  box-shadow: 
    inset 4px 4px 8px rgba(0, 0, 0, 0.2),
    inset -4px -4px 8px rgba(255, 255, 255, 0.1);
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: translateY(1px) scale(1);
  }
  50% {
    opacity: 0.8;
    transform: translateY(1px) scale(0.98);
  }
}

/* Empêcher la sélection de texte lors du maintien */
.speech-note-btn:active,
.speech-note-btn.recording {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}


/* Styles pour les séparateurs dans la modale */
.modal-section-divider {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  margin: 2rem 0;
  padding-top: 2rem;
  position: relative;
}

.modal-section-divider::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.8);
}

/* Personnalisation du champ de texte Lexxy */
lexxy-editor {
  min-height: 200px;
  padding: 1.5rem;
  line-height: 1.6;
}


/* Animation pour la disparition des notifications flash */
.flash-fade-out {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

/* Styles pour les notifications flash avec cursor pointer */
.flash-notification {
  cursor: pointer;
  transition: all 0.2s ease;
}

.flash-notification:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

