/* Notifications trigger - Style épuré et moderne */
.notifications-trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-right: 0.75rem;
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.15s ease;
  color: hsl(var(--muted-foreground));
  background: transparent;
  border: none;
}

.notifications-trigger:hover {
  background-color: hsl(var(--muted));
  color: hsl(var(--foreground));
  transform: scale(1.05);
}

.notifications-badge {
  position: absolute;
  top: -1px;
  right: -1px;
  min-width: 14px;
  height: 14px;
  padding: 0 2px;
  background: hsl(var(--destructive));
  color: hsl(var(--destructive-foreground));
  border-radius: 7px;
  font-size: 0.5625rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid hsl(var(--background));
  box-shadow: 0 2px 8px hsl(var(--destructive) / 0.3);
}

/* Panel de notifications - Design moderne et épuré */
.notifications-panel {
  position: fixed;
  top: 60px;
  right: 1rem;
  width: 380px;
  max-height: 500px;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideInDown 0.2s ease-out;
}

@keyframes slideInDown {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.notifications-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid hsl(var(--border));
  background: hsl(var(--muted) / 0.3);
}

.notifications-panel-title {
  font-size: 1rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin: 0;
  letter-spacing: -0.01em;
}

.notifications-panel-close {
  background: transparent;
  border: none;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  padding: 0.375rem;
  border-radius: 0.5rem;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.notifications-panel-close:hover {
  background-color: hsl(var(--destructive) / 0.1);
  color: hsl(var(--destructive));
}

.notifications-panel-close:active {
  transform: scale(0.95);
}

.notifications-panel-content {
  flex: 1;
  overflow-y: auto;
  padding: 0.5rem;
  max-height: 400px;
}

.notifications-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  color: hsl(var(--muted-foreground));
  text-align: center;
}

.notifications-empty svg {
  width: 40px;
  height: 40px;
  margin-bottom: 0.75rem;
  opacity: 0.4;
  color: hsl(var(--muted-foreground));
}

.notifications-empty p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: hsl(var(--muted-foreground));
}

.notifications-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.5rem;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  transition: all 0.15s ease;
  position: relative;
  margin-bottom: 0.25rem;
}

.notification-item:hover {
  background-color: hsl(var(--muted) / 0.5);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.notification-pending,
.notification-processing {
  background: hsl(var(--primary-light));
  border-color: hsl(var(--primary) / 0.3);
}

.notification-completed {
  background: hsl(var(--success-light));
  border-color: hsl(var(--success) / 0.3);
}

.notification-failed {
  background: hsl(var(--destructive) / 0.1);
  border-color: hsl(var(--destructive) / 0.3);
}

.notification-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
}

.notification-pending .notification-icon,
.notification-processing .notification-icon {
  background: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
}

.notification-completed .notification-icon {
  background: hsl(var(--success) / 0.1);
  color: hsl(var(--success));
}

.notification-failed .notification-icon {
  background: hsl(var(--destructive) / 0.1);
  color: hsl(var(--destructive));
}

.notification-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.notification-content {
  flex: 1;
  min-width: 0;
}

.notification-message {
  font-size: 0.875rem;
  font-weight: 500;
  color: hsl(var(--foreground));
  margin-bottom: 0.375rem;
  line-height: 1.3;
}

.notification-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
}

.notification-type {
  font-weight: 500;
  padding: 0.125rem 0.375rem;
  background: hsl(var(--background));
  border-radius: 0.375rem;
  border: 1px solid hsl(var(--border));
  font-size: 0.6875rem;
}

.notification-time {
  font-weight: 400;
  color: hsl(var(--muted-foreground));
}

.notification-error {
  margin-top: 0.5rem;
  padding: 0.5rem;
  background-color: hsl(var(--destructive) / 0.1);
  border-left: 2px solid hsl(var(--destructive));
  border-radius: 0.25rem;
  font-size: 0.75rem;
  color: hsl(var(--destructive));
}

.notification-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.notification-action-btn {
  background: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  padding: 0.375rem;
  border-radius: 0.5rem;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.notification-action-btn:hover {
  background-color: hsl(var(--muted));
  color: hsl(var(--foreground));
  border-color: hsl(var(--border));
  transform: scale(1.05);
}

.notification-action-btn:active {
  transform: scale(0.95);
}

.notification-action-view:hover {
  background-color: hsl(var(--primary) / 0.1);
  color: hsl(var(--primary));
  border-color: hsl(var(--primary) / 0.3);
}

.notification-action-close:hover {
  background-color: hsl(var(--destructive) / 0.1);
  color: hsl(var(--destructive));
  border-color: hsl(var(--destructive) / 0.3);
}

/* Flash notifications - Style toast moderne */
#job-flash-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 3001;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.job-flash-notification {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  animation: slideInUp 0.25s ease-out;
  max-width: 350px;
  min-width: 280px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  color: hsl(var(--foreground));
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideOutDown {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(20px);
  }
}

.job-flash-close {
  background: transparent;
  border: none;
  color: hsl(var(--muted-foreground));
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 0.375rem;
  transition: all 0.15s ease;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.job-flash-close:hover {
  background: hsl(var(--destructive) / 0.1);
  color: hsl(var(--destructive));
}

.job-flash-close:active {
  transform: scale(0.9);
}

