.actions-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  
  .selection-info {
    .selection-count {
      color: #495057;
      font-weight: 500;
      padding: 8px 16px;
      background: #e3f2fd;
      border-radius: 20px;
      font-size: 14px;
      animation: fadeIn 0.3s ease;
    }
  }
  
  .action-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
    
    .action-button {
      display: flex;
      align-items: center;
      gap: 8px;
      transition: all 0.2s ease;
      
      mat-icon {
        font-size: 18px;
        width: 18px;
        height: 18px;
      }
      
      .button-text {
        font-weight: 500;
      }
      
      &:hover:not(:disabled) {
        transform: translateY(-1px);
      }
      
      &:disabled {
        opacity: 0.6;
        cursor: not-allowed;
      }
      
      // Styles par action
      &[data-action="create"] {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border: none;
        color: white;
        
        &:hover:not(:disabled) {
          background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
          box-shadow: 0 4px 8px rgba(102, 126, 234, 0.3);
        }
      }
      
      &[data-action="delete"] {
        background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
        border: none;
        color: white;
        
        &:hover:not(:disabled) {
          background: linear-gradient(135deg, #ff5252 0%, #e53935 100%);
          box-shadow: 0 4px 8px rgba(255, 107, 107, 0.3);
        }
      }
      
      &[data-action="update"] {
        background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
        border: none;
        color: white;
        
        &:hover:not(:disabled) {
          background: linear-gradient(135deg, #2196f3 0%, #00bcd4 100%);
          box-shadow: 0 4px 8px rgba(79, 172, 254, 0.3);
        }
      }
      
      &[data-action="export"],
      &[data-action="import"] {
        border-color: #dee2e6;
        color: #495057;
        background: white;
        
        &:hover:not(:disabled) {
          background: #f8f9fa;
          border-color: #adb5bd;
          box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }
      }
      
      &[data-action="refresh"] {
        color: #6c757d;
        
        &:hover:not(:disabled) {
          background: #f8f9fa;
          color: #495057;
        }
      }
    }
    
    .icon-button {
      color: #6c757d;
      
      &:hover:not(:disabled) {
        background: #f8f9fa;
        color: #495057;
      }
    }
    
    .loading-spinner {
      margin-left: 8px;
    }
  }
}

// Responsive design
@media (max-width: 768px) {
  .actions-toolbar {
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px;
    
    .selection-info {
      align-self: stretch;
      text-align: center;
    }
    
    .action-buttons {
      flex-wrap: wrap;
      justify-content: center;
      
      .action-button {
        font-size: 13px;
        padding: 8px 12px;
        
        mat-icon {
          font-size: 16px;
          width: 16px;
          height: 16px;
        }
        
        .button-text {
          display: none; // Masquer le texte sur mobile, garder seulement les icônes
        }
      }
    }
  }
}

@media (max-width: 480px) {
  .actions-toolbar {
    .action-buttons {
      .action-button {
        min-width: 44px; // Taille minimum pour les boutons tactiles
        padding: 10px;
        
        .button-text {
          display: none;
        }
      }
    }
  }
}

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

// Mode sombre
@media (prefers-color-scheme: dark) {
  .actions-toolbar {
    background: #1e1e1e;
    color: #ffffff;
    
    .selection-info .selection-count {
      background: #263238;
      color: #ffffff;
    }
    
    .action-buttons .action-button {
      &[data-action="export"],
      &[data-action="import"] {
        background: #2d2d2d;
        border-color: #404040;
        color: #ffffff;
        
        &:hover:not(:disabled) {
          background: #333333;
          border-color: #555555;
        }
      }
    }
  }
}

