/* Styles for the pastebin page, inspired by password generator */

/* Variables CSS */
:root {
  --primary-color: #48c78e; /* Couleur principale pour le pastebin (verte) */
  --primary-dark: #3a9e6b;
  --secondary-color: #3e8ed0; /* Couleur secondaire bleue */
  --accent-color: #ffdd57; /* Couleur d'accent jaune */
  --glass-bg: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(255, 255, 255, 0.2);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  --border-radius: 20px;
  --transition: all 0.2s ease-in-out;
  --code-bg: #f8f9fa;
  --code-border: #dee2e6;
}

/* Container principal */
.pastebin-container {
  background: var(--glass-bg);
  backdrop-filter: blur(15px);
  border-radius: var(--border-radius);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  transition: var(--transition);
  overflow: hidden;
  padding: 1.5rem;
  animation: fadeInUp 0.5s ease-out forwards;
}

.pastebin-container:hover {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* Animation au chargement de la page */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Zone d'édition de texte */
.paste-textarea {
  width: 100%;
  min-height: 300px;
  padding: 1.25rem;
  border-radius: 10px;
  border: 2px solid var(--code-border);
  resize: vertical;
  font-family: 'Source Code Pro', 'Courier New', monospace;
  font-size: 1rem;
  line-height: 1.5;
  transition: all 0.25s;
  background-color: white;
  color: #333;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.paste-textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(72, 199, 142, 0.2);
  outline: none;
}

.paste-textarea::placeholder {
  opacity: 0.5;
}

/* Zone d'affichage du paste - Améliorée pour une meilleure lisibilité */
.paste-content {
  background: var(--code-bg);
  background-image: linear-gradient(rgba(62, 142, 208, 0.03) 1px, transparent 1px), 
                    linear-gradient(90deg, rgba(62, 142, 208, 0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  padding: 2rem;
  border-radius: 10px;
  border: 2px dashed var(--code-border);
  font-family: 'Source Code Pro', 'Courier New', monospace;
  font-size: 1rem;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  transition: var(--transition);
  position: relative;
  overflow-x: auto;
  margin: 1.5rem 0;
  max-height: 600px;
  overflow-y: auto;
  tab-size: 4;
  text-align: left;
  box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.05);
}

.paste-content:hover {
  border-color: var(--primary-color);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

/* Conteneur principal pour le contenu du paste */
.content-card {
  padding: 1.5rem;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Barre d'outils pour le contenu du paste */
.paste-content-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  background-color: rgba(248, 249, 250, 0.8);
  border-radius: 8px;
  border: 1px solid var(--code-border);
  margin-bottom: 0.5rem;
}

.paste-content-container {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

/* Styles pour les numéros de ligne */
.line-numbers {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3rem;
  background-color: rgba(248, 249, 250, 0.9);
  border-right: 1px solid var(--code-border);
  padding: 2rem 0.5rem;
  text-align: right;
  font-family: 'Source Code Pro', 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #999;
  user-select: none;
  overflow: hidden;
}

.paste-content.with-line-numbers {
  padding-left: 3.5rem;
}

/* Styles pour le contrôle de la taille de la police */
.font-size-control {
  display: flex;
  gap: 0.5rem;
}

.font-size-control .button {
  padding: 0 0.5rem;
  height: 2rem;
}

.line-numbers-toggle {
  display: flex;
  align-items: center;
}

.line-numbers-toggle .checkbox {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.line-numbers-toggle .icon {
  margin: 0 0.5rem;
}

/* Actions sur le paste */
.paste-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  margin-top: 1rem;
}

/* Actions des pastes - inspiré du générateur de mot de passe */
.paste-actions button,
.paste-actions .button {
  flex-grow: 1;
  flex-basis: 0;
  min-width: 120px;
  position: relative;
  overflow: hidden;
}

.paste-actions button:hover,
.paste-actions .button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Boutons stylisés - compatibles avec Bulma */
.paste-actions .button {
  transition: var(--transition);
  border-radius: 8px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: auto;
  padding: 0.5rem 1rem;
  position: relative;
  overflow: hidden;
}

.paste-actions .button::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 5px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  filter: blur(3px);
  transition: var(--transition);
  opacity: 0;
}

.paste-actions .button:hover {
  transform: translateY(-2px);
}

.paste-actions .button:hover::after {
  opacity: 1;
}

/* Notification fixe en haut à droite - Style Bulma natif simple */
#notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  max-width: 350px;
  transition: all 0.3s ease;
  animation: slideIn 0.3s ease-out;
  display: none;
  opacity: 0;
  transform: translateX(100%);
}

#notification.is-hidden {
  opacity: 0;
  transform: translateX(100%);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Animation de pulsation lors de la copie */
@keyframes pulse {
  0% { background-color: var(--primary-color); color: white; }
  50% { background-color: var(--primary-color); color: white; }
  100% { background-color: var(--code-bg); color: inherit; }
}

.paste-click-effect {
  animation: pulse 0.7s;
  position: relative;
}

.paste-click-effect::after {
  content: "Copied!";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 1rem;
  opacity: 0;
  animation: fadeInOut 1s forwards;
}

@keyframes fadeInOut {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
  20% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  80% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
}

/* Spinner pour le chargement */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.spinner {
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  margin-left: 8px;
}

/* Métadonnées */
.paste-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 8px;
  font-size: 0.9rem;
  color: #666;
  border-left: 4px solid var(--primary-color);
}

.paste-meta i {
  margin-right: 0.5rem;
  color: var(--primary-dark);
}

/* Options de partage */
.share-dropdown {
  position: relative;
  display: inline-block;
}

.share-options {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  padding: 0.5rem;
  z-index: 10;
  min-width: 200px;
  display: none;
}

.share-options.is-active {
  display: block;
  animation: fadeIn 0.2s;
}

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

.share-option {
  display: block;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  transition: background-color 0.2s;
}

.share-option:hover {
  background-color: #f5f5f5;
}

.share-option .icon {
  margin-right: 0.5rem;
}

/* Adaptation responsive */
@media (max-width: 768px) {
  .paste-actions {
    flex-direction: column;
  }
  
  .paste-actions .button {
    width: 100%;
  }
}

/* Animations améliorées pour les notifications */
@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOutSlide {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

.notification-animated {
  animation: slideIn 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
}

.notification-animated.fade-out {
  animation: fadeOutSlide 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards;
}

/* Nouveaux styles inspirés du générateur de mot de passe */
/* Informations sur le paste */
.paste-info-card {
  background: rgba(248, 249, 250, 0.6);
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.paste-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  background: none;
  border-left: none;
  padding: 0;
}

.paste-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.meta-label {
  font-weight: 600;
  color: #555;
}

.meta-value {
  color: #333;
}

/* Améliorations des boutons d'action */
.paste-actions button, 
.paste-actions a.button {
  border-radius: 8px;
  transition: all 0.2s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.paste-actions button:hover, 
.paste-actions a.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Options de partage dans un panneau - style amélioré harmonisé avec le générateur de mot de passe */
.share-options-panel {
  display: none;
  position: absolute;
  background: white;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  border: 1px solid var(--glass-border);
  padding: 10px;
  z-index: 100;
  min-width: 200px;
  margin-top: 5px;
  transition: opacity 0.3s ease, transform 0.3s ease;
  top: 100%;
  right: 0;
}

.share-options-panel.is-active {
  display: block;
}

.share-options-panel:before {
  content: '';
  position: absolute;
  top: -6px;
  right: 15px;
  width: 12px;
  height: 12px;
  background: white;
  transform: rotate(45deg);
  border-left: 1px solid var(--glass-border);
  border-top: 1px solid var(--glass-border);
}

.share-options-content {
  display: flex;
  flex-direction: column;
}

/* Options de partage avec style amélioré - harmonisé avec le mot de passe */
.share-option {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
  transition: all 0.2s;
  border-radius: 6px;
  margin-bottom: 2px;
  position: relative;
  overflow: hidden;
}

.share-option:hover {
  background-color: rgba(72, 199, 142, 0.1);
  color: var(--primary-color);
  text-decoration: none;
}

.share-option:active {
  background-color: rgba(72, 199, 142, 0.2);
  transform: scale(0.98);
}

.share-option i {
  margin-right: 10px;
  font-size: 1.1em;
  min-width: 24px;
  text-align: center;
  color: #555;
  transition: color 0.2s;
}

.share-option:hover i {
  color: var(--primary-color);
}

/* Effet de ripple sur les options de partage */
.share-option::after {
  content: '';
  position: absolute;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0);
  transition: transform 0.5s, opacity 0.5s;
  pointer-events: none;
}

.share-option:active::after {
  transform: scale(2);
  opacity: 0;
  transition: 0s;
}

/* Animation de clic pour les options de partage */
@keyframes shareOptionClick {
  0% { background-color: transparent; }
  50% { background-color: rgba(72, 199, 142, 0.2); }
  100% { background-color: transparent; }
}

.share-option-clicked {
  animation: shareOptionClick 0.5s;
}

/* Amélioration de l'affichage du contenu */
.paste-content {
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Carte des options */
.option-card {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 12px;
  border: 1px solid #e9ecef;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.2s;
}

.option-card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.section-title {
  color: var(--primary-dark);
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 10px;
  margin-bottom: 15px;
  font-weight: 600;
}

.input-styled {
  border-radius: 8px;
  border: 2px solid #e9ecef;
  padding: 10px 15px;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.input-styled:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(72, 199, 142, 0.25);
  outline: none;
}

/* Style amélioré pour les champs de formulaire */
.paste-textarea {
  /* Styles existants */
  border: 2px solid var(--code-border);
  transition: all 0.25s;
}

.paste-textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(72, 199, 142, 0.2);
}

/* Animation lors du focus sur les éléments interactifs */
.button.is-success {
  background-color: var(--primary-color);
  border-color: transparent;
  transition: all 0.25s;
}

.button.is-success:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(72, 199, 142, 0.3);
}

.select select {
  border-radius: 8px;
  border: 2px solid #e9ecef;
  transition: all 0.25s;
}

.select select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(72, 199, 142, 0.2);
}

/* Effet de flottement sur les cartes */
.option-card, .paste-info-card {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Styles pour les boutons actifs et effets d'interaction - amélioration */
.button.is-active {
  box-shadow: 0 0 0 2px rgba(72, 199, 142, 0.5);
  transform: translateY(-2px);
  position: relative;
  z-index: 2;
}

.button#share-btn.is-active {
  background-color: var(--primary-dark);
  color: white;
  animation: shareBtnPulse 1s infinite alternate;
}

@keyframes shareBtnPulse {
  0% {
    box-shadow: 0 0 0 2px rgba(72, 199, 142, 0.5);
  }
  100% {
    box-shadow: 0 0 0 4px rgba(72, 199, 142, 0.3);
  }
}

.button#share-btn.is-active::before {
  content: '';
  position: absolute;
  bottom: -8px;
  left: calc(50% - 8px);
  width: 16px;
  height: 16px;
  background-color: white;
  transform: rotate(45deg);
  border-radius: 2px;
  box-shadow: 1px 1px 3px rgba(0,0,0,0.1);
  z-index: -1;
}

.share-options-panel {
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.18);
  border: none;
  border-radius: 12px;
}

/* Badge visuel pour les boutons */
.button.is-success::after,
.button.is-info::after,
.button.is-primary::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border-radius: inherit;
  opacity: 0;
  box-shadow: 0 0 15px rgba(72, 199, 142, 0.5);
  transition: opacity 0.3s ease;
}

.button.is-success:hover::after,
.button.is-info:hover::after,
.button.is-primary:hover::after {
  opacity: 1;
}

/* Métadonnées du paste - Design moderne */
.paste-metadata {
  display: flex;
  gap: 1.5rem;
  margin: 1.5rem 0;
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 249, 250, 0.9) 100%);
  border-radius: 15px;
  border: 1px solid rgba(222, 226, 230, 0.5);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.paste-metadata:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.metadata-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.metadata-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.metadata-label i {
  color: var(--primary-color);
  font-size: 1rem;
}

.metadata-item span:not(.metadata-label) {
  font-size: 1rem;
  font-weight: 500;
  color: #212529;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(222, 226, 230, 0.6);
  font-family: 'Source Code Pro', monospace;
  min-width: 0;
  word-break: break-word;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.metadata-item span:not(.metadata-label):hover {
  background: rgba(255, 255, 255, 1);
  border-color: var(--primary-color);
  transform: scale(1.02);
}

/* Couleurs spécifiques pour les icônes */
.metadata-item:first-child .metadata-label i {
  color: #28a745; /* Vert pour création */
}

.metadata-item:last-child .metadata-label i {
  color: #ffc107; /* Jaune pour expiration */
}

/* Design responsive pour mobile */
@media (max-width: 768px) {
  .paste-metadata {
    flex-direction: column;
    gap: 1rem;
  }
  
  .metadata-item {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }
  
  .metadata-label {
    min-width: 100px;
    flex-shrink: 0;
  }
}

/* Animation au survol des métadonnées */
.paste-metadata .metadata-item {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.paste-metadata .metadata-item:hover {
  transform: scale(1.02);
}

/* Style spécial pour "Jamais" dans l'expiration */
.metadata-item span:not(.metadata-label):contains("Jamais"),
.metadata-item span:not(.metadata-label):contains("Never") {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
  border-color: #c3e6cb;
  font-weight: 600;
}

/* === Historique Pastebin === */
#pastebin-history-section {
  margin-top: 2.5rem;
}
.history-item {
  background: var(--glass-bg);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.5rem;
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.history-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  border-color: var(--primary-color);
}

/* Carte d'information sur les suppressions */
.deletion-info-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.deletion-info-card {
  flex: 1;
  min-width: 280px;
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.9) 100%);
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.deletion-info-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.deletion-info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  width: 50px;
  height: 50px;
  min-width: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--glass-bg) 0%, rgba(255, 255, 255, 0.8) 100%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: var(--primary-color);
  border: 2px solid rgba(72, 199, 142, 0.3);
}

.deletion-info-card:first-child .deletion-info-icon {
  color: #3e8ed0;
  border-color: rgba(62, 142, 208, 0.3);
}

.deletion-info-content {
  flex: 1;
}

.deletion-info-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
}

.deletion-info-text {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #666;
  margin: 0;
}

@media (max-width: 768px) {
  .deletion-info-container {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Amélioration du bouton de suppression */
.history-item .button.remove-history-item {
  margin-left: 1rem;
  opacity: 0.6;
  transition: all 0.3s ease;
  border-radius: 50%;
  height: 32px;
  width: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(241, 70, 104, 0.2);
  background-color: rgba(241, 70, 104, 0.1);
}

.history-item .button.remove-history-item i {
  font-size: 0.85rem;
  transition: all 0.3s ease;
  color: #f14668;
}

.history-item .button.remove-history-item:hover {
  opacity: 1;
  transform: scale(1.15);
  background-color: rgba(241, 70, 104, 0.15);
  box-shadow: 0 0 0 4px rgba(241, 70, 104, 0.2);
}

.history-item .button.remove-history-item:active {
  transform: scale(0.95);
}

/* Animation pour l'élément supprimé */
.history-item.deleting {
  animation: removeHistoryItem 0.5s ease-out forwards;
  border-color: #f14668;
  pointer-events: none;
}

@keyframes removeHistoryItem {
  0% {
    opacity: 1;
    max-height: 80px;
    margin-bottom: 0.5rem;
    transform: translateX(0);
  }
  30% {
    opacity: 0.8;
    transform: translateX(10px);
  }
  100% {
    opacity: 0;
    max-height: 0;
    margin-bottom: 0;
    transform: translateX(100%);
  }
}

/* Effet de confirmation au survol du bouton de suppression */
.history-item .button.remove-history-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle, rgba(241, 70, 104, 0.15) 0%, rgba(241, 70, 104, 0) 70%);
  border-radius: 50%;
  transform: scale(0);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: -1;
}

.history-item .button.remove-history-item:hover::before {
  transform: scale(2.5);
  opacity: 1;
}

#pastebin-history-list {
  min-height: 10px;
}

#pastebin-history-empty {
  margin-top: 0.5rem;
}

/* Amélioration du bouton clear-pastebin-history */
#clear-pastebin-history {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

#clear-pastebin-history::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(241, 70, 104, 0.2) 0%, rgba(241, 70, 104, 0) 60%);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

#clear-pastebin-history:hover::before {
  transform: translateX(0);
}

/* Effet de pulse pour attirer l'attention sur le bouton de confirmation */
#clear-pastebin-history.is-danger {
  animation: pulse-danger 1.5s infinite;
}

@keyframes pulse-danger {
  0% {
    box-shadow: 0 0 0 0 rgba(241, 70, 104, 0.6);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(241, 70, 104, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(241, 70, 104, 0);
  }
}
