body {
  font-family: 'Inter', sans-serif;
  background-color: #f8fafc;
}

.date-from, .date-to {
      padding: 5px;
    border: 1px solid #d1d5db;
}

/* Styles pour la liste des fichiers en attente d'upload */
.upload-list {
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.3s ease;
}




.upload-list .file-item {
  padding: 0.75rem;
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.2s;
}

.upload-list .file-item:hover {
  background-color: #f3f4f6;
}

.upload-list .file-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  display: flex;
  align-items: center;
}

.upload-list .file-size {
  font-size: 0.75rem;
  color: #6b7280;
  margin-left: 0.5rem;
}

.upload-list .remove-button {
  color: #ef4444;
  background: none;
  border: none;
  padding: 0.25rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s;
}

.upload-list .remove-button:hover {
  color: #b91c1c;
  background-color: #fee2e2;
}


.custom-file-label {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background-color: #f3f4f6;
  color: #4b5563;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.custom-file-label:hover {
  background-color: #e5e7eb;
}

.custom-file-label:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

.file-input-wrapper {
  position: relative;
  flex: 1;
}

.upload-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background-color: #4f46e5;
  transition: width 0.3s ease;
  width: 0;
}

/* Système de notification */
.notification {
  position: fixed;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 400px;
  padding: 12px 16px;
  background-color: white;
  border-left: 4px solid #3b82f6;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transform: translateX(120%);
  opacity: 0;
  transition: all 0.3s ease-out;
  z-index: 1000;
}

.notification.show {
  transform: translateX(0);
  opacity: 1;
}

.notification.success {
  border-left-color: #10b981;
}

.notification.error {
  border-left-color: #ef4444;
}

.notification.warning {
  border-left-color: #f59e0b;
}

.notification.info {
  border-left-color: #3b82f6;
}

.notification-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
}

.notification.success .notification-icon {
  color: #10b981;
}

.notification.error .notification-icon {
  color: #ef4444;
}

.notification.warning .notification-icon {
  color: #f59e0b;
}

.notification.info .notification-icon {
  color: #3b82f6;
}

.notification-message {
  flex: 1;
  font-size: 0.875rem;
}

.notification-close {
  cursor: pointer;
  color: #9ca3af;
  transition: color 0.2s;
}

.notification-close:hover {
  color: #6b7280;
}

.app-header {
  background: white;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

nav a {
  font-weight: 500;
  transition: color 0.2s ease-in-out;
}

nav a:hover {
  color: #1a1a1a;
}

.nav-button {
  padding: 0.5rem;
  border-radius: 9999px;
  transition: all 0.2s ease-in-out;
}

.nav-button:hover {
  background-color: #f3f4f6;
}

.file-input-wrapper {
  position: relative;
  width: 100%;
}

.custom-file-input {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 2.5rem;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.custom-file-label {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1;
  height: 2.5rem;
  padding: 0.5rem 1rem;
  font-weight: 500;
  line-height: 1.5;
  color: #6B7280;
  background-color: #fff;
  border: 1px solid #D1D5DB;
  border-radius: 0.5rem;
  transition: all 0.2s ease-in-out;
}

.custom-file-input:hover ~ .custom-file-label {
  border-color: #818CF8;
}

.upload-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: #4F46E5;
  transition: width 0.3s ease-in-out;
}

.upload-success {
  animation: successPulse 1s ease-in-out;
}

.upload-list {

  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #4F46E5 #E5E7EB;
}

.upload-list::-webkit-scrollbar {
  width: 6px;
}

.upload-list::-webkit-scrollbar-track {
  background: #E5E7EB;
  border-radius: 3px;
}

.upload-list::-webkit-scrollbar-thumb {
  background-color: #4F46E5;
  border-radius: 3px;
}

.search-pdf-extractedText, .search-pdf-date-key {
  text-align: left;
}

.search-pdf-icon {
  margin-top:37px;
}

@keyframes successPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}

/* Animation de suppression de fichier */
.fade-out {
  animation: fadeOut 0.3s ease-out forwards;
  opacity: 1;
}

@keyframes fadeOut {
  0% { 
    opacity: 1;
    transform: translateY(0);
  }
  100% { 
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* Styles pour les options des fichiers dans la liste d'upload */
.upload-list .file-options {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid #e5e7eb;
}

.upload-list .file-options label {
  font-size: 0.75rem;
  color: #4b5563;
  transition: color 0.2s;
}

.upload-list .file-options label:hover {
  color: #1f2937;
}

.upload-list .file-options input[type="checkbox"] {
  margin-right: 0.25rem;
  accent-color: #4f46e5;
}

.upload-list .file-options input[type="checkbox"]:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

/* Styles pour les boutons de contrôle global */
.upload-list .control-buttons button {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  transition: all 0.2s;
}

.upload-list .control-buttons button:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


